Brightness slider works with mouse wheel.

This commit is contained in:
2026-01-25 17:29:36 -05:00
parent fa3944d3e3
commit d34a149716
3 changed files with 55 additions and 9 deletions

View File

@ -7,14 +7,14 @@ declblock {\#if 1} {
extern void saverChosen();
extern void perfChosen();} open public map 1 after {\#endif}
} {
decl {\#include "power_console_common.h"} {selected public global
decl {\#include "power_console_common.h"} {public global
}
}
Function {make_window()} {open
} {
Fl_Window {} {open
xywh {506 191 177 183} type Double box GLEAM_UP_BOX visible
xywh {506 1271 177 183} type Double box GLEAM_UP_BOX visible
} {
Fl_Light_Button conserveButton {
label {Conserve Battery}
@ -52,6 +52,7 @@ Function {make_window()} {open
label Brightness
callback adjustBrightness
xywh {129 81 20 52} labelsize 12
class MouseWheelSlider
}
}
}