Fake brightness reimplementation (#2444)

* Fake brightness reimplementation
* indentation
* added call to the function which is caching the display settings values
* use cached values instead of pmem
This commit is contained in:
hackrfstuff 2024-12-26 23:23:02 +01:00 committed by GitHub
parent ef28e63a8c
commit bad57d1391
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 163 additions and 7 deletions

View file

@ -280,6 +280,12 @@ class SystemStatusView : public View {
Theme::getInstance()->fg_light->foreground,
Theme::getInstance()->bg_dark->background};
ImageButton button_fake_brightness{
{0, 0, 2 * 8, 1 * 16},
&bitmap_icon_brightness,
*Theme::getInstance()->status_active,
Theme::getInstance()->bg_dark->background};
SDCardStatusView sd_card_status_view{
{0, 0 * 16, 2 * 8, 1 * 16}};