config moved to c++ plugin, removed old qml + fileview implementation

This commit is contained in:
2026-08-13 02:25:26 +02:00
parent c29b91cd26
commit 3cd3209b28
341 changed files with 4851 additions and 3502 deletions
+8 -7
View File
@@ -2,7 +2,8 @@ pragma Singleton
import Quickshell
import Quickshell.Services.UPower
import qs.Config
import ZShell.Config
import qs.Services
Singleton {
id: root
@@ -10,18 +11,18 @@ Singleton {
readonly property var colors: {
if (deviceState === UPowerDeviceState.Charging || deviceState === UPowerDeviceState.FullyCharged)
return {
fg: DynamicColors.swapRG(DynamicColors.palette.m3error),
bg: DynamicColors.swapRG(DynamicColors.palette.m3onError)
fg: Colors.swapRG(Colors.palette.m3error),
bg: Colors.swapRG(Colors.palette.m3onError)
};
else if (currentPerc <= 0.2)
return {
fg: DynamicColors.palette.m3error,
bg: DynamicColors.palette.m3onError
fg: Colors.palette.m3error,
bg: Colors.palette.m3onError
};
else
return {
fg: DynamicColors.palette.m3onSurface,
bg: DynamicColors.palette.m3surface
fg: Colors.palette.m3onSurface,
bg: Colors.palette.m3surface
};
}
readonly property real currentPerc: UPower.displayDevice.percentage