Initial commit of the Quickshell desktop suite: bar, dock, launcher, settings, Control Center, dashboard, OSD, lock screen, desktop widgets, plugin host with the vendored Noctalia/Omarchy compatibility layer, helpers, packaging, tests and phase documentation. Includes the optimization work so far: usage widgets and dashboard gauges no longer animate continuously, desktop widgets pause while covered, system controls stop flickering on background polls, dock app matching uses an indexed catalog, and workspace ghosts are created only for occupied slots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
70 lines
2.2 KiB
QML
70 lines
2.2 KiB
QML
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
|
|
}
|
|
}
|