Fix some invalid colors name + avoid hard coding colors and transparency.

This commit is contained in:
Sébastien Atoch 2025-07-23 14:16:46 -04:00
parent 10b70f0c53
commit 411ed72436
4 changed files with 10 additions and 10 deletions

View file

@ -51,8 +51,8 @@ PopupWindow {
Rectangle {
id: bg
anchors.fill: parent
color: Theme.backgroundElevated || "#222"
border.color: Theme.border || "#444"
color: Theme.surfaceVariant || "#222"
border.color: Theme.outline || "#444"
border.width: 1
radius: 12
z: 0
@ -84,7 +84,7 @@ PopupWindow {
anchors.centerIn: parent
width: parent.width - 20
height: 1
color: Qt.darker(Theme.backgroundElevated || "#222", 1.4)
color: Qt.darker(Theme.surfaceVariant || "#222", 1.4)
visible: modelData?.isSeparator ?? false
}

View file

@ -1,4 +1,4 @@
import QtQuick
import QtQuick
import QtQuick.Window 2.15
import qs.Settings
@ -57,8 +57,8 @@ Window {
Rectangle {
anchors.fill: parent
radius: 6
color: "#222"
border.color: Theme.backgroundTertiary || "#444"
color: Theme.backgroundTertiary || "#222"
border.color: Theme.outline || "#444"
border.width: 1
opacity: 0.97
z: 1

View file

@ -23,6 +23,6 @@
"onAccent": "#0E0F10",
"outline": "#565758",
"shadow": "#0E0F10",
"overlay": "#0E0F10"
"shadow": "#B30E0F10",
"overlay": "#660E0F10"
}

View file

@ -97,8 +97,8 @@ Singleton {
property color outline: themeData.outline
// Shadows & Overlays
property color shadow: applyOpacity(themeData.shadow, "B3")
property color overlay: applyOpacity(themeData.overlay, "66")
property color shadow: themeData.shadow
property color overlay: themeData.overlay
// Font Properties
property string fontFamily: "Roboto" // Family for all text