feat: add laptop/display brightness modulation

This commit is contained in:
daniel committed 2026-10-02 12:14:40 +02:00
1 parent ef1e69ae83
commit 7979acc2eb
34 files changed
+1308 -78

No files matched your search

+12
View File
@@ -227,6 +227,18 @@ struct DesktopState {
montauk::abi::BatteryInfo battery_info;
uint64_t battery_last_poll;
// Display brightness. Present only while the active output has a
// controllable backlight (laptop panel, or a monitor answering DDC/CI).
SvgIcon icon_brightness;
bool brightness_present;
bool brightness_popup_open;
Rect brightness_icon_rect;
int brightness_level; // 0-100, as shown on the slider
bool brightness_dragging;
int brightness_pending; // drag sample not yet sent, -1 none
uint64_t brightness_last_send;
uint64_t brightness_last_poll;
bool vol_popup_open;
Rect vol_icon_rect;
int vol_level; // 0-100