mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 02:28:37 +02:00
Put all the QML colors into a single standalone configurable file
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import QtQuick
|
||||
import QtQuick.Shapes
|
||||
import "../../theme" as Theme
|
||||
import "../.."
|
||||
|
||||
Rectangle {
|
||||
@@ -7,7 +8,7 @@ Rectangle {
|
||||
implicitHeight: 18
|
||||
implicitWidth: 18
|
||||
radius: 3
|
||||
color: checkState == Qt.Checked ? "#C5E3EE" : "#90ACAD"
|
||||
color: checkState == Qt.Checked ? Theme.Colors.menuCheckBoxChecked1 : Theme.Colors.menuCheckBoxChecked2
|
||||
|
||||
Shape {
|
||||
visible: checkState == Qt.Checked
|
||||
@@ -18,8 +19,8 @@ Rectangle {
|
||||
ShapePath {
|
||||
strokeWidth: 2
|
||||
capStyle: ShapePath.RoundCap
|
||||
joinStyle: ShapePath.RoundJoin
|
||||
fillColor: "transparent"
|
||||
joinStyle: ShapePath.RoundJoin
|
||||
fillColor: Theme.Colors.menuCheckBoxShapePath
|
||||
|
||||
startX: start.x
|
||||
startY: start.y
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import QtQuick
|
||||
import QtQuick.Shapes
|
||||
import Quickshell
|
||||
import "../../theme" as Theme
|
||||
|
||||
Item {
|
||||
property bool expanded: false;
|
||||
@@ -37,7 +38,7 @@ Item {
|
||||
strokeWidth: 2
|
||||
capStyle: ShapePath.RoundCap
|
||||
joinStyle: ShapePath.MiterJoin
|
||||
fillColor: "transparent"
|
||||
fillColor: Theme.Colors.menuChildrenRevealerShapePath
|
||||
|
||||
startX: xStart
|
||||
startY: yStart
|
||||
|
||||
@@ -3,6 +3,7 @@ import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
import Quickshell.DBusMenu
|
||||
import "../../theme" as Theme
|
||||
import "../.."
|
||||
|
||||
MouseArea {
|
||||
@@ -34,7 +35,7 @@ MouseArea {
|
||||
anchors.fill: parent
|
||||
visible: root.containsMouse || childrenRevealer.expanded
|
||||
|
||||
color: "#824524"
|
||||
color: Theme.Colors.menuItemColor1
|
||||
}
|
||||
ColumnLayout {
|
||||
id: row
|
||||
@@ -71,7 +72,7 @@ MouseArea {
|
||||
|
||||
Text {
|
||||
text: entry.text
|
||||
color: entry.enabled ? "white" : "#bbbbbb"
|
||||
color: entry.enabled ? Theme.Colors.menuItemColor2 : Theme.Colors.menuItemColor3
|
||||
}
|
||||
|
||||
Item {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import QtQuick
|
||||
import "../../theme" as Theme
|
||||
import "../.."
|
||||
|
||||
Rectangle {
|
||||
@@ -6,7 +7,7 @@ Rectangle {
|
||||
implicitHeight: 18
|
||||
implicitWidth: 18
|
||||
radius: width / 2
|
||||
color: checkState == Qt.Checked ? "#C5E3EE" : "#90ACAD"
|
||||
color: checkState == Qt.Checked ? Theme.Colors.menuRadioButtonColor1 : Theme.Colors.menuRadioButtonColor2
|
||||
|
||||
Rectangle {
|
||||
x: parent.width * 0.25
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import "../../theme" as Theme
|
||||
|
||||
ColumnLayout {
|
||||
id: root
|
||||
@@ -60,7 +61,7 @@ ColumnLayout {
|
||||
|
||||
property var separator: Component {
|
||||
Rectangle {
|
||||
color: "#824524"
|
||||
color: Theme.Colors.menuViewColor
|
||||
implicitHeight: 4
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ import QtQuick.Layouts
|
||||
import QtQuick.Effects
|
||||
import Quickshell
|
||||
import Quickshell.Services.SystemTray
|
||||
import "../../theme" as Theme
|
||||
import ".."
|
||||
import "../.."
|
||||
import "../../components"
|
||||
@@ -121,11 +122,11 @@ Rectangle {
|
||||
|
||||
implicitWidth: Math.max(1, menuView.implicitWidth)
|
||||
implicitHeight: Math.max(1, menuView.implicitHeight)
|
||||
color: "transparent"
|
||||
color: Theme.Colors.sysTrayColor1
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "#9B5B36"
|
||||
color: Theme.Colors.sysTrayColor2
|
||||
MenuView {
|
||||
id: menuView
|
||||
anchors.fill: parent
|
||||
|
||||
Reference in New Issue
Block a user