Merge branch 'main' into module/wifi
C++ / fmt (pull_request) Successful in 7s
C++ / build (pull_request) Failing after 12s
C++ / clang-tidy (pull_request) Failing after 11s
JS/TS / fmt (pull_request) Successful in 13s
JS/TS / lint (pull_request) Successful in 9s
Python / static (pull_request) Successful in 35s
Rust / build (pull_request) Successful in 1m0s
Python / verify (pull_request) Successful in 1m44s
Rust / fmt (pull_request) Successful in 45s
Rust / clippy (pull_request) Successful in 1m7s

This commit is contained in:
2026-10-22 23:21:20 +02:00
469 changed files with 40652 additions and 7947 deletions
+5 -9
View File
@@ -13,21 +13,17 @@ import qs.Paths
Singleton {
id: root
readonly property M3Palette current: M3Palette {
}
readonly property M3Palette current: M3Palette {}
property bool currentLight
property string flavour
readonly property bool light: showPreview ? previewLight : currentLight
readonly property M3Palette palette: showPreview ? preview : current
readonly property M3Palette preview: M3Palette {
}
readonly property M3Palette preview: M3Palette {}
property bool previewLight
property string scheme
property bool showPreview
readonly property M3TPalette tPalette: M3TPalette {
}
readonly property Transparency transparency: Transparency {
}
readonly property M3TPalette tPalette: M3TPalette {}
readonly property Transparency transparency: Transparency {}
readonly property alias wallLuminance: analyser.luminance
function alterColor(c: color, a: real, layer: int): color {
@@ -112,7 +108,7 @@ Singleton {
function setMode(mode: string): void {
Quickshell.execDetached(["zshell-cli", "scheme", "generate", "--mode", mode]);
Config.general.color.mode = mode;
Config.colors.mode = mode;
}
function swapRG(c: color): color {
+40
View File
@@ -0,0 +1,40 @@
pragma Singleton
import QtQuick
import Quickshell
import qs.Components
import qs.Helpers
Singleton {
function allStates(): list<ScreenState> {
return [...states.instances];
}
function anySidebarOpen(): bool {
return states.instances.some(s => s.sidebar);
}
function forActive(): ScreenState {
const mon = Hypr.focusedMonitor;
for (const s of states.instances)
if (Hypr.monitorFor(s.modelData) === mon)
return s;
return null;
}
function forScreen(screen: ShellScreen): ScreenState {
for (const s of states.instances)
if (s.modelData === screen)
return s;
return null;
}
Variants {
id: states
model: Quickshell.screens
ScreenState {
}
}
}