Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ActivitiesView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound

import QtQuick
import qs.Commons
import qs.Commons as Commons
import qs.Ui
import "Model.js" as Model

Expand All @@ -13,8 +14,8 @@ Column {
property bool imperial: false
property bool panelCursorActive: false
property bool hasCursor: false
property color foreground: Color.foreground
property color urgent: Color.urgent
property color foreground: Commons.Color.foreground
property color urgent: Commons.Color.urgent
property color dim: Qt.darker(foreground, 1.5)
property string fontFamily: Style.font.family
property int periodIndex: 1
Expand Down Expand Up @@ -747,7 +748,7 @@ Column {

implicitHeight: metricColumn.implicitHeight + Style.space(16)
color: Qt.rgba(root.foreground.r, root.foreground.g, root.foreground.b, 0.035)
borderSpec: Border.controlSpec("normal", root.foreground, Color.accent)
borderSpec: Border.controlSpec("normal", root.foreground, Commons.Color.accent)
radius: Style.cornerRadius

Column {
Expand Down
5 changes: 3 additions & 2 deletions ActivityTimeChart.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound

import QtQuick
import qs.Commons
import qs.Commons as Commons
import qs.Ui
import "Model.js" as Model

Expand All @@ -11,8 +12,8 @@ Column {
property var period: null
property string metricKey: "durationSeconds"
property bool imperial: false
property color foreground: Color.foreground
property color dim: Color.muted
property color foreground: Commons.Color.foreground
property color dim: Commons.Color.muted
property string fontFamily: Style.font.family

readonly property var points: period && Array.isArray(period.points) ? period.points : []
Expand Down
7 changes: 4 additions & 3 deletions DomainStatusRow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ pragma ComponentBehavior: Bound

import QtQuick
import qs.Commons
import qs.Commons as Commons
import qs.Ui

Grid {
id: root

property var service: null
property color foreground: Color.foreground
property color urgent: Color.urgent
property color foreground: Commons.Color.foreground
property color urgent: Commons.Color.urgent
property string fontFamily: Style.font.family

readonly property color dim: Qt.darker(foreground, 1.5)
Expand Down Expand Up @@ -82,7 +83,7 @@ Grid {

implicitHeight: stampColumn.implicitHeight + Style.space(12)
color: Qt.rgba(root.foreground.r, root.foreground.g, root.foreground.b, 0.035)
borderSpec: Border.controlSpec("normal", root.foreground, Color.accent)
borderSpec: Border.controlSpec("normal", root.foreground, Commons.Color.accent)
radius: Style.cornerRadius

Column {
Expand Down
9 changes: 5 additions & 4 deletions OverviewShellPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound

import QtQuick
import qs.Commons
import qs.Commons as Commons
import qs.Ui
import "Model.js" as Model

Expand All @@ -13,8 +14,8 @@ Column {
property bool imperial: false
property bool panelCursorActive: false
property bool hasCursor: false
property color foreground: Color.foreground
property color urgent: Color.urgent
property color foreground: Commons.Color.foreground
property color urgent: Commons.Color.urgent
property color dim: Qt.darker(foreground, 1.5)
property string fontFamily: Style.font.family

Expand Down Expand Up @@ -227,7 +228,7 @@ Column {
width: parent.width
implicitHeight: overviewUnavailableColumn.implicitHeight + Style.space(14)
color: Qt.rgba(root.foreground.r, root.foreground.g, root.foreground.b, 0.025)
borderSpec: Border.controlSpec("normal", root.foreground, Color.accent)
borderSpec: Border.controlSpec("normal", root.foreground, Commons.Color.accent)
radius: Style.cornerRadius

Column {
Expand Down Expand Up @@ -385,7 +386,7 @@ Column {

implicitHeight: signalColumn.implicitHeight + Style.space(16)
color: Qt.rgba(root.foreground.r, root.foreground.g, root.foreground.b, 0.035)
borderSpec: Border.controlSpec("normal", root.foreground, Color.accent)
borderSpec: Border.controlSpec("normal", root.foreground, Commons.Color.accent)
radius: Style.cornerRadius

Column {
Expand Down
9 changes: 5 additions & 4 deletions Panel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Controls as Controls
import qs.Commons
import qs.Commons as Commons
import qs.Ui
import "Model.js" as Model

Expand Down Expand Up @@ -38,9 +39,9 @@ Panel {
}
readonly property var listActivities: currentPage ? currentPage.activities : []
readonly property var detailActivity: service ? service.activityDetail : null
readonly property color foreground: bar ? bar.foreground : Color.foreground
readonly property color foreground: bar ? bar.foreground : Commons.Color.foreground
readonly property color dim: Qt.darker(foreground, 1.5)
readonly property color urgent: bar ? bar.urgent : Color.urgent
readonly property color urgent: bar ? bar.urgent : Commons.Color.urgent
readonly property string fontFamily: bar ? bar.fontFamily : Style.font.family
readonly property string unitsSetting: String(setting("units", "auto"))
readonly property bool imperial: unitsSetting === "imperial"
Expand Down Expand Up @@ -1038,8 +1039,8 @@ Panel {
property string value: "—"

implicitHeight: metricColumn.implicitHeight + Style.space(16)
color: Style.normalFillFor(root.foreground, Color.accent)
borderSpec: Border.controlSpec("normal", root.foreground, Color.accent)
color: Style.normalFillFor(root.foreground, Commons.Color.accent)
borderSpec: Border.controlSpec("normal", root.foreground, Commons.Color.accent)
radius: Style.cornerRadius

Column {
Expand Down
7 changes: 4 additions & 3 deletions PanelShell.qml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Controls as Controls
import qs.Commons
import qs.Commons as Commons
import qs.Ui

Panel {
Expand All @@ -18,8 +19,8 @@ Panel {
property int navCursorIndex: 0
property var scrollPositions: ({})

readonly property color foreground: bar ? bar.foreground : Color.foreground
readonly property color urgent: bar ? bar.urgent : Color.urgent
readonly property color foreground: bar ? bar.foreground : Commons.Color.foreground
readonly property color urgent: bar ? bar.urgent : Commons.Color.urgent
readonly property color dim: Qt.darker(foreground, 1.5)
readonly property string fontFamily: bar ? bar.fontFamily : Style.font.family
readonly property string unitsSetting: String(setting("units", "auto"))
Expand Down Expand Up @@ -549,7 +550,7 @@ Panel {
cancelText: "Cancel"
confirmText: root.confirmationButtonText()
foreground: root.foreground
background: Color.popups.background
background: Commons.Color.popups.background
selectedText: session.confirmationKind === "collection" ? root.foreground : root.urgent
fontFamily: root.fontFamily
onCanceled: root.cancelConfirmation()
Expand Down
7 changes: 4 additions & 3 deletions SettingsView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound

import QtQuick
import qs.Commons
import qs.Commons as Commons
import qs.Ui

Column {
Expand All @@ -13,8 +14,8 @@ Column {
property bool wideLayout: true
property bool panelCursorActive: false
property bool hasCursor: false
property color foreground: Color.foreground
property color urgent: Color.urgent
property color foreground: Commons.Color.foreground
property color urgent: Commons.Color.urgent
property color dim: Qt.darker(foreground, 1.5)
property string fontFamily: Style.font.family
property int cursorIndex: 0
Expand Down Expand Up @@ -137,7 +138,7 @@ Column {
width: parent.width
implicitHeight: preferenceColumn.implicitHeight + Style.space(20)
color: Qt.rgba(root.foreground.r, root.foreground.g, root.foreground.b, 0.035)
borderSpec: Border.controlSpec("normal", root.foreground, Color.accent)
borderSpec: Border.controlSpec("normal", root.foreground, Commons.Color.accent)
radius: Style.cornerRadius

Column {
Expand Down
9 changes: 5 additions & 4 deletions WellnessShellPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound

import QtQuick
import qs.Commons
import qs.Commons as Commons
import qs.Ui
import "Model.js" as Model

Expand All @@ -14,8 +15,8 @@ Column {
property bool panelCursorActive: false
property bool hasCursor: false
property double nowMs: Date.now()
property color foreground: Color.foreground
property color urgent: Color.urgent
property color foreground: Commons.Color.foreground
property color urgent: Commons.Color.urgent
property color dim: Qt.darker(foreground, 1.5)
property string fontFamily: Style.font.family
property int cursorIndex: 0
Expand Down Expand Up @@ -452,7 +453,7 @@ Column {
width: parent.width
implicitHeight: unavailableColumn.implicitHeight + Style.space(18)
color: Qt.rgba(root.foreground.r, root.foreground.g, root.foreground.b, 0.025)
borderSpec: Border.controlSpec("normal", root.foreground, Color.accent)
borderSpec: Border.controlSpec("normal", root.foreground, Commons.Color.accent)
radius: Style.cornerRadius

Column {
Expand Down Expand Up @@ -696,7 +697,7 @@ Column {

implicitHeight: cardColumn.implicitHeight + Style.space(18)
color: Qt.rgba(root.foreground.r, root.foreground.g, root.foreground.b, 0.035)
borderSpec: Border.controlSpec("normal", root.foreground, Color.accent)
borderSpec: Border.controlSpec("normal", root.foreground, Commons.Color.accent)
radius: Style.cornerRadius

Column {
Expand Down
5 changes: 3 additions & 2 deletions WellnessTrendChart.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pragma ComponentBehavior: Bound

import QtQuick
import qs.Commons
import qs.Commons as Commons
import qs.Ui
import "Model.js" as Model

Expand All @@ -14,7 +15,7 @@ Column {
property string sleepMetric: "score"
property int selectedIndex: 6
property bool cursorActive: false
property color foreground: Color.foreground
property color foreground: Commons.Color.foreground
property color dim: Qt.darker(foreground, 1.5)
property string fontFamily: Style.font.family

Expand Down Expand Up @@ -663,7 +664,7 @@ Column {
implicitHeight: selectedText.implicitHeight + Style.space(14)
color: root.alpha(root.foreground, 0.025)
borderSpec: Border.controlSpec(root.cursorActive ? "hover-cursor" : "normal",
root.foreground, Color.accent)
root.foreground, Commons.Color.accent)
radius: Style.cornerRadius

Text {
Expand Down