watch rework

This commit is contained in:
galister
2026-01-08 01:06:54 +09:00
parent 89e8d606a8
commit 4d1154cdcb
25 changed files with 376 additions and 730 deletions

View File

@@ -75,9 +75,18 @@ impl OverlayList {
);
("App", apps_root)
}
OverlayCategory::Dashboard => {
let overlay_button = parser_state
.fetch_component_as::<ComponentButton>("btn_dashboard")?;
OverlayCategory::Dashboard | OverlayCategory::Keyboard => {
let key = if matches!(meta.category, OverlayCategory::Dashboard) {
"btn_dashboard"
} else {
"btn_keyboard"
};
let Ok(overlay_button) =
parser_state.fetch_component_as::<ComponentButton>(key)
else {
continue;
};
if meta.visible {
let mut com = CallbackDataCommon {