Add notch opacity and colour; open plugin panels from the notch strip
- Settings → Notch → Look: opacity (0% glass to 100% solid) and colour for the notch, the open notch and the notch-mode launcher. - Bar popouts and plugin panels add the open notch's screen offset, so tooltips and panels from the strip land under their module. - Opening a plugin panel keeps the notch open; the notch hands keyboard focus to the panel and takes it back when it closes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
73de4b06a8
commit
e4ca1f5d9c
12 files changed
+98
-14
No files matched your search
@@ -72,6 +72,47 @@ SettingsPage {
|
||||
setting: "notch.enabled"
|
||||
}
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Look"
|
||||
description: "0% is the normal glass. Raise the opacity towards a solid colour: e.g. 50% with a purple colour, or 100% black for OLED."
|
||||
enabled: root.options.enabled
|
||||
PreferenceSlider {
|
||||
label: "Notch opacity"
|
||||
icon: ""
|
||||
setting: "notch.opacity"
|
||||
from: 0
|
||||
to: 100
|
||||
step: 1
|
||||
unit: "%"
|
||||
}
|
||||
SettingRow {
|
||||
title: "Notch colour"
|
||||
description: root.options.color ? "Custom colour" : "Glass tint (Appearance)"
|
||||
icon: ""
|
||||
setting: "notch.color"
|
||||
GlassTextField {
|
||||
Layout.preferredWidth: 120
|
||||
color: Theme.text
|
||||
selectByMouse: true
|
||||
placeholderText: "Glass tint"
|
||||
text: root.options.color
|
||||
validator: RegularExpressionValidator {
|
||||
regularExpression: /(#[0-9a-fA-F]{6})?/
|
||||
}
|
||||
onEditingFinished: if (acceptableInput)
|
||||
ConfigService.setValue("notch.color", text)
|
||||
}
|
||||
GlassButton {
|
||||
text: "Black"
|
||||
onClicked: ConfigService.setValue("notch.color", "#000000")
|
||||
}
|
||||
below: GlassColorPicker {
|
||||
Layout.fillWidth: true
|
||||
selectedColor: root.options.color || Theme.tint
|
||||
onChosen: color => ConfigService.setValue("notch.color", color.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Opening"
|
||||
enabled: root.options.enabled
|
||||
|
||||
Reference in new issue
Block a user