sleep screen filled with cover image's perimeter dominant color prior to being drawn

This commit is contained in:
cottongin
2026-01-24 03:29:34 -05:00
parent 1e20d30875
commit 2f21f55512
4 changed files with 209 additions and 14 deletions

View File

@@ -1,6 +1,8 @@
#pragma once
#include "../Activity.h"
#include <string>
class Bitmap;
class SleepActivity final : public Activity {
@@ -14,6 +16,10 @@ class SleepActivity final : public Activity {
void renderDefaultSleepScreen() const;
void renderCustomSleepScreen() const;
void renderCoverSleepScreen() const;
void renderBitmapSleepScreen(const Bitmap& bitmap) const;
void renderBitmapSleepScreen(const Bitmap& bitmap, const std::string& bmpPath) const;
void renderBlankSleepScreen() const;
// Perimeter detection caching helpers
static std::string getPerimeterCachePath(const std::string& bmpPath);
bool getPerimeterIsBlack(const Bitmap& bitmap, const std::string& bmpPath) const;
};