import QtQuick import QtQuick.Layouts import "../controls" import "../../controlcenter/modules" as Modules import "../../components" import "../../services" SettingsPage { SettingNote { Layout.leftMargin: 4 text: "Backlight brightness and Night Light. Display modes remain managed by Hyprland." } Modules.Brightness { Layout.fillWidth: true } Modules.NightLight { Layout.fillWidth: true } SettingsSection { title: "Brightness" PreferenceChoice { label: "Backlight device" icon: "󰃠" setting: "system.brightness.device" choices: ["auto"].concat(SystemService.state.brightness && SystemService.state.brightness.devices ? SystemService.state.brightness.devices.map(d => d.id) : []) } } SettingsSection { title: "Night Light" PreferenceSlider { label: "Night temperature" icon: "󰖔" setting: "system.nightLight.temperature" from: 1000 to: 6500 step: 100 unit: " K" } } SettingsSection { title: "Providers" description: "Optional providers: status commands return JSON; set commands accept {value} (brightness percent or temperature) and {enabled} (Night Light boolean). Empty arrays use brightnessctl and an already running wl-gammarelay. Commands run only when a control is used or while its panel is open." padded: true CommandPreference { label: "Brightness status arguments" setting: "system.brightness.statusCommand" } CommandPreference { label: "Brightness set arguments" setting: "system.brightness.setCommand" } CommandPreference { label: "Night Light status arguments" setting: "system.nightLight.statusCommand" } CommandPreference { label: "Night Light set arguments" setting: "system.nightLight.setCommand" } GlassButton { text: "Refresh providers" onClicked: SystemService.refresh() } } SettingNote { warning: true text: SystemService.error } }