mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Feat: add screen_auto_brightness
This commit is contained in:
@@ -51,6 +51,8 @@ export global SystemPageData {
|
||||
callback cb_panel_overdrive(int);
|
||||
in-out property <int> boot_sound;
|
||||
callback cb_boot_sound(int);
|
||||
in-out property <int> screen_auto_brightness;
|
||||
callback cb_screen_auto_brightness(int);
|
||||
in-out property <int> mini_led_mode;
|
||||
callback cb_mini_led_mode(int);
|
||||
|
||||
@@ -300,6 +302,14 @@ export component PageSystem inherits Rectangle {
|
||||
SystemPageData.cb_boot_sound(SystemPageData.boot_sound)
|
||||
}
|
||||
}
|
||||
|
||||
if SystemPageData.screen_auto_brightness != -1: SystemToggleInt {
|
||||
text: @tr("Screen Auto Brightness");
|
||||
checked_int <=> SystemPageData.screen_auto_brightness;
|
||||
toggled => {
|
||||
SystemPageData.cb_screen_auto_brightness(SystemPageData.screen_auto_brightness)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (SystemPageData.ppt_pl1_spl.max > 0 && SystemPageData.ppt_pl1_spl.current != -1) || (SystemPageData.ppt_pl2_sppt.max > 0 && SystemPageData.ppt_pl2_sppt.current != -1) || (SystemPageData.ppt_pl3_fppt.max > 0 && SystemPageData.ppt_pl3_fppt.current != -1) || (SystemPageData.ppt_fppt.max > 0 && SystemPageData.ppt_fppt.current != -1) || (SystemPageData.ppt_apu_sppt.max > 0 && SystemPageData.ppt_apu_sppt.current != -1) || (SystemPageData.nv_temp_target.max > 0 && SystemPageData.nv_temp_target.current != -1) || (SystemPageData.nv_dynamic_boost.max > 0 && SystemPageData.nv_dynamic_boost.current != -1): HorizontalLayout {
|
||||
|
||||
Reference in New Issue
Block a user