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
@@ -32,6 +32,14 @@ Singleton {
|
||||
// opacity, controls and cards are translucent shades of it (never grey overlays).
|
||||
readonly property color tint: ConfigService.ready && /^#[0-9a-fA-F]{6}$/.test(ConfigService.data.appearance.glassTint) ? ConfigService.data.appearance.glassTint : "#000000"
|
||||
readonly property color surface: tint
|
||||
// Notch mode's fill: at opacity 0 it is the normal glass; raising it moves
|
||||
// towards a solid colour (the glass tint unless a notch colour is set).
|
||||
readonly property color notchFill: {
|
||||
const n = ConfigService.ready ? ConfigService.data.notch : null;
|
||||
const c = n && /^#[0-9a-fA-F]{6}$/.test(n.color) ? n.color : tint;
|
||||
const o = n ? Math.max(0, Math.min(100, n.opacity)) / 100 : 0;
|
||||
return Qt.alpha(c, glassOpacity + (1 - glassOpacity) * o);
|
||||
}
|
||||
readonly property color surfaceVariant: Qt.alpha(tint, 0.38)
|
||||
readonly property color fill: Qt.alpha(tint, 0.22)
|
||||
readonly property color hover: Qt.alpha(text, 0.09)
|
||||
|
||||
Reference in new issue
Block a user