|
@@ -3,6 +3,7 @@ import QtQuick.Controls 2.15
|
|
|
import QtQuick.Layouts 1.15
|
|
import QtQuick.Layouts 1.15
|
|
|
import DuneWeaver 1.0
|
|
import DuneWeaver 1.0
|
|
|
import "../components"
|
|
import "../components"
|
|
|
|
|
+import "../components" as Components
|
|
|
|
|
|
|
|
Page {
|
|
Page {
|
|
|
id: page
|
|
id: page
|
|
@@ -59,14 +60,14 @@ Page {
|
|
|
|
|
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
anchors.fill: parent
|
|
anchors.fill: parent
|
|
|
- color: "#f5f5f5"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.backgroundColor
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// Playlist List View (shown by default)
|
|
// Playlist List View (shown by default)
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
id: playlistListView
|
|
id: playlistListView
|
|
|
anchors.fill: parent
|
|
anchors.fill: parent
|
|
|
- color: "#f5f5f5"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.backgroundColor
|
|
|
visible: !showingPlaylistDetail
|
|
visible: !showingPlaylistDetail
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
ColumnLayout {
|
|
@@ -77,14 +78,14 @@ Page {
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
Layout.fillWidth: true
|
|
Layout.fillWidth: true
|
|
|
Layout.preferredHeight: 50
|
|
Layout.preferredHeight: 50
|
|
|
- color: "white"
|
|
|
|
|
-
|
|
|
|
|
|
|
+ color: Components.ThemeManager.surfaceColor
|
|
|
|
|
+
|
|
|
// Bottom border
|
|
// Bottom border
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
anchors.bottom: parent.bottom
|
|
anchors.bottom: parent.bottom
|
|
|
width: parent.width
|
|
width: parent.width
|
|
|
height: 1
|
|
height: 1
|
|
|
- color: "#e5e7eb"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.borderColor
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
RowLayout {
|
|
@@ -101,13 +102,13 @@ Page {
|
|
|
text: "Playlists"
|
|
text: "Playlists"
|
|
|
font.pixelSize: 18
|
|
font.pixelSize: 18
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
- color: "#333"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textPrimary
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
text: playlistModel.rowCount() + " playlists"
|
|
text: playlistModel.rowCount() + " playlists"
|
|
|
font.pixelSize: 12
|
|
font.pixelSize: 12
|
|
|
- color: "#999"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textTertiary
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
Item {
|
|
@@ -133,9 +134,9 @@ Page {
|
|
|
delegate: Rectangle {
|
|
delegate: Rectangle {
|
|
|
width: ListView.view.width
|
|
width: ListView.view.width
|
|
|
height: 80
|
|
height: 80
|
|
|
- color: "white"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.surfaceColor
|
|
|
radius: 12
|
|
radius: 12
|
|
|
- border.color: "#e5e7eb"
|
|
|
|
|
|
|
+ border.color: Components.ThemeManager.borderColor
|
|
|
border.width: 1
|
|
border.width: 1
|
|
|
|
|
|
|
|
// Press animation
|
|
// Press animation
|
|
@@ -155,8 +156,8 @@ Page {
|
|
|
Layout.preferredWidth: 40
|
|
Layout.preferredWidth: 40
|
|
|
Layout.preferredHeight: 40
|
|
Layout.preferredHeight: 40
|
|
|
radius: 20
|
|
radius: 20
|
|
|
- color: "#e3f2fd"
|
|
|
|
|
-
|
|
|
|
|
|
|
+ color: Components.ThemeManager.darkMode ? "#1e3a5f" : "#e3f2fd"
|
|
|
|
|
+
|
|
|
Text {
|
|
Text {
|
|
|
anchors.centerIn: parent
|
|
anchors.centerIn: parent
|
|
|
text: "♪"
|
|
text: "♪"
|
|
@@ -174,14 +175,14 @@ Page {
|
|
|
text: model.name
|
|
text: model.name
|
|
|
font.pixelSize: 16
|
|
font.pixelSize: 16
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
- color: "#333"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textPrimary
|
|
|
elide: Text.ElideRight
|
|
elide: Text.ElideRight
|
|
|
width: parent.width
|
|
width: parent.width
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
text: model.itemCount + " patterns"
|
|
text: model.itemCount + " patterns"
|
|
|
- color: "#666"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textSecondary
|
|
|
font.pixelSize: 12
|
|
font.pixelSize: 12
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -190,7 +191,7 @@ Page {
|
|
|
Text {
|
|
Text {
|
|
|
text: "▶"
|
|
text: "▶"
|
|
|
font.pixelSize: 16
|
|
font.pixelSize: 16
|
|
|
- color: "#999"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textTertiary
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -215,22 +216,22 @@ Page {
|
|
|
|
|
|
|
|
Text {
|
|
Text {
|
|
|
text: "♪"
|
|
text: "♪"
|
|
|
- color: "#ccc"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.placeholderText
|
|
|
font.pixelSize: 64
|
|
font.pixelSize: 64
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
text: "No playlists found"
|
|
text: "No playlists found"
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
- color: "#999"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textSecondary
|
|
|
font.pixelSize: 18
|
|
font.pixelSize: 18
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
text: "Create playlists to organize\\nyour pattern collections"
|
|
text: "Create playlists to organize\\nyour pattern collections"
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
- color: "#ccc"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textTertiary
|
|
|
font.pixelSize: 14
|
|
font.pixelSize: 14
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
}
|
|
}
|
|
@@ -244,7 +245,7 @@ Page {
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
id: playlistDetailView
|
|
id: playlistDetailView
|
|
|
anchors.fill: parent
|
|
anchors.fill: parent
|
|
|
- color: "#f5f5f5"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.backgroundColor
|
|
|
visible: showingPlaylistDetail
|
|
visible: showingPlaylistDetail
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
ColumnLayout {
|
|
@@ -255,14 +256,14 @@ Page {
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
Layout.fillWidth: true
|
|
Layout.fillWidth: true
|
|
|
Layout.preferredHeight: 50
|
|
Layout.preferredHeight: 50
|
|
|
- color: "white"
|
|
|
|
|
-
|
|
|
|
|
|
|
+ color: Components.ThemeManager.surfaceColor
|
|
|
|
|
+
|
|
|
// Bottom border
|
|
// Bottom border
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
anchors.bottom: parent.bottom
|
|
anchors.bottom: parent.bottom
|
|
|
width: parent.width
|
|
width: parent.width
|
|
|
height: 1
|
|
height: 1
|
|
|
- color: "#e5e7eb"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.borderColor
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
RowLayout {
|
|
@@ -287,15 +288,15 @@ Page {
|
|
|
text: selectedPlaylist
|
|
text: selectedPlaylist
|
|
|
font.pixelSize: 18
|
|
font.pixelSize: 18
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
- color: "#333"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textPrimary
|
|
|
Layout.fillWidth: true
|
|
Layout.fillWidth: true
|
|
|
elide: Text.ElideRight
|
|
elide: Text.ElideRight
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
text: currentPlaylistPatterns.length + " patterns"
|
|
text: currentPlaylistPatterns.length + " patterns"
|
|
|
font.pixelSize: 12
|
|
font.pixelSize: 12
|
|
|
- color: "#999"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textTertiary
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -313,7 +314,7 @@ Page {
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
width: parent.width * 0.4
|
|
width: parent.width * 0.4
|
|
|
height: parent.height
|
|
height: parent.height
|
|
|
- color: "white"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.surfaceColor
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
ColumnLayout {
|
|
|
anchors.fill: parent
|
|
anchors.fill: parent
|
|
@@ -324,7 +325,7 @@ Page {
|
|
|
text: "Patterns"
|
|
text: "Patterns"
|
|
|
font.pixelSize: 14
|
|
font.pixelSize: 14
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
- color: "#333"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textPrimary
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
ScrollView {
|
|
ScrollView {
|
|
@@ -341,9 +342,9 @@ Page {
|
|
|
delegate: Rectangle {
|
|
delegate: Rectangle {
|
|
|
width: patternListView.width
|
|
width: patternListView.width
|
|
|
height: 35
|
|
height: 35
|
|
|
- color: index % 2 === 0 ? "#f8f9fa" : "#ffffff"
|
|
|
|
|
|
|
+ color: index % 2 === 0 ? Components.ThemeManager.cardColor : Components.ThemeManager.surfaceColor
|
|
|
radius: 6
|
|
radius: 6
|
|
|
- border.color: "#e5e7eb"
|
|
|
|
|
|
|
+ border.color: Components.ThemeManager.borderColor
|
|
|
border.width: 1
|
|
border.width: 1
|
|
|
|
|
|
|
|
RowLayout {
|
|
RowLayout {
|
|
@@ -354,14 +355,14 @@ Page {
|
|
|
Label {
|
|
Label {
|
|
|
text: (index + 1) + "."
|
|
text: (index + 1) + "."
|
|
|
font.pixelSize: 11
|
|
font.pixelSize: 11
|
|
|
- color: "#666"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textSecondary
|
|
|
Layout.preferredWidth: 25
|
|
Layout.preferredWidth: 25
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
text: modelData
|
|
text: modelData
|
|
|
font.pixelSize: 11
|
|
font.pixelSize: 11
|
|
|
- color: "#333"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textPrimary
|
|
|
Layout.fillWidth: true
|
|
Layout.fillWidth: true
|
|
|
elide: Text.ElideRight
|
|
elide: Text.ElideRight
|
|
|
}
|
|
}
|
|
@@ -384,14 +385,14 @@ Page {
|
|
|
Text {
|
|
Text {
|
|
|
text: "♪"
|
|
text: "♪"
|
|
|
font.pixelSize: 32
|
|
font.pixelSize: 32
|
|
|
- color: "#ccc"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.placeholderText
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
text: "Empty playlist"
|
|
text: "Empty playlist"
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
- color: "#999"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textSecondary
|
|
|
font.pixelSize: 14
|
|
font.pixelSize: 14
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -403,14 +404,14 @@ Page {
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
width: 1
|
|
width: 1
|
|
|
height: parent.height
|
|
height: parent.height
|
|
|
- color: "#e5e7eb"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.borderColor
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
// Right side - Full height controls (60% of width)
|
|
// Right side - Full height controls (60% of width)
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
width: parent.width * 0.6 - 1
|
|
width: parent.width * 0.6 - 1
|
|
|
height: parent.height
|
|
height: parent.height
|
|
|
- color: "white"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.surfaceColor
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
ColumnLayout {
|
|
|
anchors.fill: parent
|
|
anchors.fill: parent
|
|
@@ -421,7 +422,7 @@ Page {
|
|
|
text: "Playlist Controls"
|
|
text: "Playlist Controls"
|
|
|
font.pixelSize: 16
|
|
font.pixelSize: 16
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
- color: "#333"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textPrimary
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Main execution buttons
|
|
// Main execution buttons
|
|
@@ -501,8 +502,8 @@ Page {
|
|
|
Layout.fillHeight: true
|
|
Layout.fillHeight: true
|
|
|
Layout.minimumHeight: 250
|
|
Layout.minimumHeight: 250
|
|
|
radius: 10
|
|
radius: 10
|
|
|
- color: "#f8f9fa"
|
|
|
|
|
- border.color: "#e5e7eb"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.cardColor
|
|
|
|
|
+ border.color: Components.ThemeManager.borderColor
|
|
|
border.width: 1
|
|
border.width: 1
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
ColumnLayout {
|
|
@@ -514,7 +515,7 @@ Page {
|
|
|
text: "Settings"
|
|
text: "Settings"
|
|
|
font.pixelSize: 14
|
|
font.pixelSize: 14
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
- color: "#333"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textPrimary
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Scrollable settings content
|
|
// Scrollable settings content
|
|
@@ -537,7 +538,7 @@ Page {
|
|
|
Label {
|
|
Label {
|
|
|
text: "Run Mode:"
|
|
text: "Run Mode:"
|
|
|
font.pixelSize: 12
|
|
font.pixelSize: 12
|
|
|
- color: "#666"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textSecondary
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -575,7 +576,7 @@ Page {
|
|
|
Label {
|
|
Label {
|
|
|
text: "Pause between patterns:"
|
|
text: "Pause between patterns:"
|
|
|
font.pixelSize: 12
|
|
font.pixelSize: 12
|
|
|
- color: "#666"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textSecondary
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -591,17 +592,17 @@ Page {
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
Layout.preferredWidth: 60
|
|
Layout.preferredWidth: 60
|
|
|
Layout.preferredHeight: 40
|
|
Layout.preferredHeight: 40
|
|
|
- color: pauseGrid.currentSelection === "0s" ? "#2196F3" : "#f0f0f0"
|
|
|
|
|
- border.color: pauseGrid.currentSelection === "0s" ? "#1976D2" : "#ccc"
|
|
|
|
|
|
|
+ color: pauseGrid.currentSelection === "0s" ? Components.ThemeManager.selectedBackground : Components.ThemeManager.buttonBackground
|
|
|
|
|
+ border.color: pauseGrid.currentSelection === "0s" ? Components.ThemeManager.selectedBorder : Components.ThemeManager.buttonBorder
|
|
|
border.width: 2
|
|
border.width: 2
|
|
|
radius: 8
|
|
radius: 8
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
anchors.centerIn: parent
|
|
anchors.centerIn: parent
|
|
|
text: "0s"
|
|
text: "0s"
|
|
|
font.pixelSize: 12
|
|
font.pixelSize: 12
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
- color: pauseGrid.currentSelection === "0s" ? "white" : "#333"
|
|
|
|
|
|
|
+ color: pauseGrid.currentSelection === "0s" ? "white" : Components.ThemeManager.textPrimary
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
MouseArea {
|
|
MouseArea {
|
|
@@ -620,17 +621,17 @@ Page {
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
Layout.preferredWidth: 60
|
|
Layout.preferredWidth: 60
|
|
|
Layout.preferredHeight: 40
|
|
Layout.preferredHeight: 40
|
|
|
- color: pauseGrid.currentSelection === "1 min" ? "#2196F3" : "#f0f0f0"
|
|
|
|
|
- border.color: pauseGrid.currentSelection === "1 min" ? "#1976D2" : "#ccc"
|
|
|
|
|
|
|
+ color: pauseGrid.currentSelection === "1 min" ? Components.ThemeManager.selectedBackground : Components.ThemeManager.buttonBackground
|
|
|
|
|
+ border.color: pauseGrid.currentSelection === "1 min" ? Components.ThemeManager.selectedBorder : Components.ThemeManager.buttonBorder
|
|
|
border.width: 2
|
|
border.width: 2
|
|
|
radius: 8
|
|
radius: 8
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
anchors.centerIn: parent
|
|
anchors.centerIn: parent
|
|
|
text: "1m"
|
|
text: "1m"
|
|
|
font.pixelSize: 12
|
|
font.pixelSize: 12
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
- color: pauseGrid.currentSelection === "1 min" ? "white" : "#333"
|
|
|
|
|
|
|
+ color: pauseGrid.currentSelection === "1 min" ? "white" : Components.ThemeManager.textPrimary
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
MouseArea {
|
|
MouseArea {
|
|
@@ -649,17 +650,17 @@ Page {
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
Layout.preferredWidth: 60
|
|
Layout.preferredWidth: 60
|
|
|
Layout.preferredHeight: 40
|
|
Layout.preferredHeight: 40
|
|
|
- color: pauseGrid.currentSelection === "5 min" ? "#2196F3" : "#f0f0f0"
|
|
|
|
|
- border.color: pauseGrid.currentSelection === "5 min" ? "#1976D2" : "#ccc"
|
|
|
|
|
|
|
+ color: pauseGrid.currentSelection === "5 min" ? Components.ThemeManager.selectedBackground : Components.ThemeManager.buttonBackground
|
|
|
|
|
+ border.color: pauseGrid.currentSelection === "5 min" ? Components.ThemeManager.selectedBorder : Components.ThemeManager.buttonBorder
|
|
|
border.width: 2
|
|
border.width: 2
|
|
|
radius: 8
|
|
radius: 8
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
anchors.centerIn: parent
|
|
anchors.centerIn: parent
|
|
|
text: "5m"
|
|
text: "5m"
|
|
|
font.pixelSize: 12
|
|
font.pixelSize: 12
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
- color: pauseGrid.currentSelection === "5 min" ? "white" : "#333"
|
|
|
|
|
|
|
+ color: pauseGrid.currentSelection === "5 min" ? "white" : Components.ThemeManager.textPrimary
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
MouseArea {
|
|
MouseArea {
|
|
@@ -678,17 +679,17 @@ Page {
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
Layout.preferredWidth: 60
|
|
Layout.preferredWidth: 60
|
|
|
Layout.preferredHeight: 40
|
|
Layout.preferredHeight: 40
|
|
|
- color: pauseGrid.currentSelection === "15 min" ? "#2196F3" : "#f0f0f0"
|
|
|
|
|
- border.color: pauseGrid.currentSelection === "15 min" ? "#1976D2" : "#ccc"
|
|
|
|
|
|
|
+ color: pauseGrid.currentSelection === "15 min" ? Components.ThemeManager.selectedBackground : Components.ThemeManager.buttonBackground
|
|
|
|
|
+ border.color: pauseGrid.currentSelection === "15 min" ? Components.ThemeManager.selectedBorder : Components.ThemeManager.buttonBorder
|
|
|
border.width: 2
|
|
border.width: 2
|
|
|
radius: 8
|
|
radius: 8
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
anchors.centerIn: parent
|
|
anchors.centerIn: parent
|
|
|
text: "15m"
|
|
text: "15m"
|
|
|
font.pixelSize: 12
|
|
font.pixelSize: 12
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
- color: pauseGrid.currentSelection === "15 min" ? "white" : "#333"
|
|
|
|
|
|
|
+ color: pauseGrid.currentSelection === "15 min" ? "white" : Components.ThemeManager.textPrimary
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
MouseArea {
|
|
MouseArea {
|
|
@@ -707,17 +708,17 @@ Page {
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
Layout.preferredWidth: 60
|
|
Layout.preferredWidth: 60
|
|
|
Layout.preferredHeight: 40
|
|
Layout.preferredHeight: 40
|
|
|
- color: pauseGrid.currentSelection === "30 min" ? "#2196F3" : "#f0f0f0"
|
|
|
|
|
- border.color: pauseGrid.currentSelection === "30 min" ? "#1976D2" : "#ccc"
|
|
|
|
|
|
|
+ color: pauseGrid.currentSelection === "30 min" ? Components.ThemeManager.selectedBackground : Components.ThemeManager.buttonBackground
|
|
|
|
|
+ border.color: pauseGrid.currentSelection === "30 min" ? Components.ThemeManager.selectedBorder : Components.ThemeManager.buttonBorder
|
|
|
border.width: 2
|
|
border.width: 2
|
|
|
radius: 8
|
|
radius: 8
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
anchors.centerIn: parent
|
|
anchors.centerIn: parent
|
|
|
text: "30m"
|
|
text: "30m"
|
|
|
font.pixelSize: 12
|
|
font.pixelSize: 12
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
- color: pauseGrid.currentSelection === "30 min" ? "white" : "#333"
|
|
|
|
|
|
|
+ color: pauseGrid.currentSelection === "30 min" ? "white" : Components.ThemeManager.textPrimary
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
MouseArea {
|
|
MouseArea {
|
|
@@ -736,17 +737,17 @@ Page {
|
|
|
Rectangle {
|
|
Rectangle {
|
|
|
Layout.preferredWidth: 60
|
|
Layout.preferredWidth: 60
|
|
|
Layout.preferredHeight: 40
|
|
Layout.preferredHeight: 40
|
|
|
- color: pauseGrid.currentSelection === "1 hour" ? "#2196F3" : "#f0f0f0"
|
|
|
|
|
- border.color: pauseGrid.currentSelection === "1 hour" ? "#1976D2" : "#ccc"
|
|
|
|
|
|
|
+ color: pauseGrid.currentSelection === "1 hour" ? Components.ThemeManager.selectedBackground : Components.ThemeManager.buttonBackground
|
|
|
|
|
+ border.color: pauseGrid.currentSelection === "1 hour" ? Components.ThemeManager.selectedBorder : Components.ThemeManager.buttonBorder
|
|
|
border.width: 2
|
|
border.width: 2
|
|
|
radius: 8
|
|
radius: 8
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
Label {
|
|
Label {
|
|
|
anchors.centerIn: parent
|
|
anchors.centerIn: parent
|
|
|
text: "1h"
|
|
text: "1h"
|
|
|
font.pixelSize: 12
|
|
font.pixelSize: 12
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
- color: pauseGrid.currentSelection === "1 hour" ? "white" : "#333"
|
|
|
|
|
|
|
+ color: pauseGrid.currentSelection === "1 hour" ? "white" : Components.ThemeManager.textPrimary
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
MouseArea {
|
|
MouseArea {
|
|
@@ -782,7 +783,7 @@ Page {
|
|
|
Label {
|
|
Label {
|
|
|
text: "Clear Pattern:"
|
|
text: "Clear Pattern:"
|
|
|
font.pixelSize: 12
|
|
font.pixelSize: 12
|
|
|
- color: "#666"
|
|
|
|
|
|
|
+ color: Components.ThemeManager.textSecondary
|
|
|
font.bold: true
|
|
font.bold: true
|
|
|
}
|
|
}
|
|
|
|
|
|