Put all the QML colors into a single standalone configurable file

This commit is contained in:
Tomas Rivera
2026-03-11 10:48:44 +01:00
parent 3bc27a2a4f
commit d374a70c9c
29 changed files with 112 additions and 883 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ import QtQuick
import Quickshell
import Quickshell.Io
import Quickshell.Wayland
import "../theme" as Theme
import "../components"
// TODO: make configurable: cursor visibility, screen freeze
@@ -76,11 +77,11 @@ PanelWindow {
ctx.reset();
// Background
ctx.fillStyle = "#44000000";
ctx.fillStyle = Theme.Colors.screenshotOverlayColor1;
ctx.fillRect(0, 0, root.width, root.height);
// Border
ctx.fillStyle = "#824524";
ctx.fillStyle = Theme.Colors.screenshotOverlayColor2;
ctx.fillRect(root.left - borderExtendX, root.top - borderWidthH, root.right - root.left + borderExtendX * 2, borderWidthH);
ctx.fillRect(root.left - borderExtendX, root.bottom, root.right - root.left + borderExtendX * 2, borderWidthH);
ctx.fillRect(root.left - borderWidthV, root.top - borderExtendY, borderWidthV, root.bottom - root.top + borderExtendY * 2);