mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
feat(l2): light theme reworked - a tint for selected, grey values, quiet edges
The light theme read as the dark one inverted. Now something selected (a tab, a segment, a tile, Fav) is a tint of the accent with the accent's text (SEL_*), the full accent fill stays for the primary action; setting values read in grey (VALUE); popups, the banner and the toast have a quiet grey edge (EDGE), the toast is a dark pill; neutral greys the RGB565 panel keeps neutral; the big clock graphite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -100,9 +100,9 @@ void UITask::channelMenu(int idx) {
|
||||
};
|
||||
for (auto& b : btns) {
|
||||
if (b.act == A_READ && !unread) continue;
|
||||
lv_obj_t* bt = barButton(acts, b.text, onChanAction, b.act, b.act == A_FAV && chanctl::favourite(_prefs, idx));
|
||||
lv_obj_t* bt = barButton(acts, b.text, onChanAction, b.act);
|
||||
if (b.act == A_DELETE) s_del_lbl = lv_obj_get_child(bt, 0);
|
||||
if (b.act == A_FAV) s_fav_btn = bt;
|
||||
if (b.act == A_FAV) { s_fav_btn = bt; styleSelected(bt, chanctl::favourite(_prefs, idx)); }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ void UITask::channelAction(uint8_t act) {
|
||||
bool on = !chanctl::favourite(_prefs, idx);
|
||||
chanctl::setFavourite(_prefs, idx, on);
|
||||
prefsSave();
|
||||
if (s_fav_btn) barButtonOn(s_fav_btn, on);
|
||||
if (s_fav_btn) styleSelected(s_fav_btn, on);
|
||||
showToast(on ? "Added to favourites" : "Removed from favourites", 1200);
|
||||
if (_screen == SCR_CHATS) { buildChats(); channelMenu(idx); } // list order / star
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user