Renamed all color names so they are shorter
This commit is contained in:
parent
9e51fdc932
commit
06f8f93f83
51 changed files with 423 additions and 440 deletions
|
|
@ -36,7 +36,7 @@ Variants {
|
|||
id: bar
|
||||
|
||||
anchors.fill: parent
|
||||
color: Colors.colorSurface
|
||||
color: Colors.mSurface
|
||||
layer.enabled: true
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,10 +51,10 @@ NPill {
|
|||
|
||||
icon: root.batteryIcon()
|
||||
text: Math.round(root.percent) + "%"
|
||||
pillColor: Colors.colorSurfaceVariant
|
||||
iconCircleColor: Colors.colorPrimary
|
||||
iconTextColor: Colors.colorSurface
|
||||
textColor: charging ? Colors.colorPrimary : Colors.colorOnSurface
|
||||
pillColor: Colors.mSurfaceVariant
|
||||
iconCircleColor: Colors.mPrimary
|
||||
iconTextColor: Colors.mSurface
|
||||
textColor: charging ? Colors.mPrimary : Colors.mOnSurface
|
||||
tooltipText: {
|
||||
let lines = []
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ Row {
|
|||
font.pointSize: Style.fontSizeLarge * scaling
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
color: Colors.colorPrimary
|
||||
color: Colors.mPrimary
|
||||
}
|
||||
|
||||
NText {
|
||||
|
|
@ -45,7 +45,7 @@ Row {
|
|||
text: "thermometer"
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pointSize: Style.fontSizeLarge * scaling
|
||||
color: Colors.colorPrimary
|
||||
color: Colors.mPrimary
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
|
@ -68,7 +68,7 @@ Row {
|
|||
text: "memory"
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pointSize: Style.fontSizeLarge * scaling
|
||||
color: Colors.colorPrimary
|
||||
color: Colors.mPrimary
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,8 +73,8 @@ PopupWindow {
|
|||
Rectangle {
|
||||
id: bg
|
||||
anchors.fill: parent
|
||||
color: Colors.colorSurface
|
||||
border.color: Colors.colorOutline
|
||||
color: Colors.mSurface
|
||||
border.color: Colors.mOutline
|
||||
border.width: Math.max(1, Style.borderThin * scaling)
|
||||
radius: Style.radiusMedium * scaling
|
||||
z: 0
|
||||
|
|
@ -112,7 +112,7 @@ PopupWindow {
|
|||
Rectangle {
|
||||
id: bg
|
||||
anchors.fill: parent
|
||||
color: mouseArea.containsMouse ? Colors.colorTertiary : "transparent"
|
||||
color: mouseArea.containsMouse ? Colors.mTertiary : "transparent"
|
||||
radius: Style.radiusSmall * scaling
|
||||
visible: !(modelData?.isSeparator ?? false)
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ PopupWindow {
|
|||
id: text
|
||||
Layout.fillWidth: true
|
||||
color: (modelData?.enabled
|
||||
?? true) ? (mouseArea.containsMouse ? Colors.colorOnSurface : Colors.colorOnSurface) : Colors.textDisabled
|
||||
?? true) ? (mouseArea.containsMouse ? Colors.mOnSurface : Colors.mOnSurface) : Colors.textDisabled
|
||||
text: modelData?.text ?? ""
|
||||
font.pointSize: Style.fontSizeSmall * scaling
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
|
@ -148,7 +148,7 @@ PopupWindow {
|
|||
font.pointSize: Style.fontSizeSmall * scaling
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
visible: modelData?.hasChildren ?? false
|
||||
color: Colors.colorOnSurface
|
||||
color: Colors.mOnSurface
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -308,8 +308,8 @@ PopupWindow {
|
|||
Rectangle {
|
||||
id: bg
|
||||
anchors.fill: parent
|
||||
color: Colors.colorSurface
|
||||
border.color: Colors.colorOutline
|
||||
color: Colors.mSurface
|
||||
border.color: Colors.mOutline
|
||||
border.width: Math.max(1, Style.borderThin * scaling)
|
||||
radius: Style.radiusMedium * scaling
|
||||
z: 0
|
||||
|
|
@ -347,10 +347,10 @@ PopupWindow {
|
|||
Rectangle {
|
||||
id: bg
|
||||
anchors.fill: parent
|
||||
color: mouseArea.containsMouse ? Colors.colorTertiary : "transparent"
|
||||
color: mouseArea.containsMouse ? Colors.mTertiary : "transparent"
|
||||
radius: Style.radiusSmall * scaling
|
||||
visible: !(modelData?.isSeparator ?? false)
|
||||
property color hoverTextColor: mouseArea.containsMouse ? Colors.colorOnSurface : Colors.colorOnSurface
|
||||
property color hoverTextColor: mouseArea.containsMouse ? Colors.mOnSurface : Colors.mOnSurface
|
||||
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
|
|
|
|||
|
|
@ -38,8 +38,8 @@ Item {
|
|||
NPill {
|
||||
id: pill
|
||||
icon: getIcon()
|
||||
iconCircleColor: Colors.colorPrimary
|
||||
collapsedIconColor: Colors.colorOnSurface
|
||||
iconCircleColor: Colors.mPrimary
|
||||
collapsedIconColor: Colors.mOnSurface
|
||||
autoHide: true
|
||||
text: Math.floor(Audio.volume * 100) + "%"
|
||||
tooltipText: "Volume: " + Math.round(
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ NLoader {
|
|||
|
||||
Rectangle {
|
||||
id: wifiMenuRect
|
||||
color: Colors.colorSurface
|
||||
color: Colors.mSurface
|
||||
radius: Style.radiusMedium * scaling
|
||||
border.color: Colors.colorSurfaceVariant
|
||||
border.color: Colors.mSurfaceVariant
|
||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||
width: 340 * scaling
|
||||
height: 320 * scaling
|
||||
|
|
@ -119,14 +119,14 @@ NLoader {
|
|||
text: "wifi"
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pointSize: Style.fontSizeXL * scaling
|
||||
color: Colors.colorPrimary
|
||||
color: Colors.mPrimary
|
||||
}
|
||||
|
||||
NText {
|
||||
text: "WiFi"
|
||||
font.pointSize: Style.fontSizeLarge * scaling
|
||||
font.bold: true
|
||||
color: Colors.colorOnSurface
|
||||
color: Colors.mOnSurface
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
|
|
@ -180,7 +180,7 @@ NLoader {
|
|||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: Style.baseWidgetSize * 1.5 * scaling
|
||||
radius: Style.radiusMedium * scaling
|
||||
color: modelData.connected ? Colors.colorPrimary : (networkMouseArea.containsMouse ? Colors.colorTertiary : "transparent")
|
||||
color: modelData.connected ? Colors.mPrimary : (networkMouseArea.containsMouse ? Colors.mTertiary : "transparent")
|
||||
|
||||
RowLayout {
|
||||
anchors.fill: parent
|
||||
|
|
@ -191,7 +191,7 @@ NLoader {
|
|||
text: network.signalIcon(modelData.signal)
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pointSize: Style.fontSizeXL * scaling
|
||||
color: modelData.connected ? Colors.colorSurface : (networkMouseArea.containsMouse ? Colors.colorSurface : Colors.colorOnSurface)
|
||||
color: modelData.connected ? Colors.mSurface : (networkMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface)
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
|
|
@ -204,7 +204,7 @@ NLoader {
|
|||
font.pointSize: Style.fontSizeNormal * scaling
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
color: modelData.connected ? Colors.colorSurface : (networkMouseArea.containsMouse ? Colors.colorSurface : Colors.colorOnSurface)
|
||||
color: modelData.connected ? Colors.mSurface : (networkMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface)
|
||||
}
|
||||
|
||||
// Security Protocol
|
||||
|
|
@ -213,14 +213,14 @@ NLoader {
|
|||
font.pointSize: Style.fontSizeTiny * scaling
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
color: modelData.connected ? Colors.colorSurface : (networkMouseArea.containsMouse ? Colors.colorSurface : Colors.colorOnSurface)
|
||||
color: modelData.connected ? Colors.mSurface : (networkMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface)
|
||||
}
|
||||
|
||||
NText {
|
||||
visible: network.connectStatusSsid === modelData.ssid && network.connectStatus === "error"
|
||||
&& network.connectError.length > 0
|
||||
text: network.connectError
|
||||
color: Colors.colorError
|
||||
color: Colors.mError
|
||||
font.pointSize: Style.fontSizeSmall * scaling
|
||||
elide: Text.ElideRight
|
||||
Layout.fillWidth: true
|
||||
|
|
@ -236,7 +236,7 @@ NLoader {
|
|||
NBusyIndicator {
|
||||
visible: network.connectingSsid === modelData.ssid
|
||||
running: network.connectingSsid === modelData.ssid
|
||||
color: Colors.colorPrimary
|
||||
color: Colors.mPrimary
|
||||
anchors.centerIn: parent
|
||||
size: Style.baseWidgetSize * 0.7 * scaling
|
||||
}
|
||||
|
|
@ -257,7 +257,7 @@ NLoader {
|
|||
text: "error"
|
||||
font.family: "Material Symbols Outlined"
|
||||
font.pointSize: Style.fontSizeSmall * scaling
|
||||
color: Colors.colorError
|
||||
color: Colors.mError
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
|
|
@ -266,7 +266,7 @@ NLoader {
|
|||
visible: modelData.connected
|
||||
text: "connected"
|
||||
font.pointSize: Style.fontSizeSmall * scaling
|
||||
color: modelData.connected ? Colors.colorSurface : (networkMouseArea.containsMouse ? Colors.colorSurface : Colors.colorOnSurface)
|
||||
color: modelData.connected ? Colors.mSurface : (networkMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -298,7 +298,7 @@ NLoader {
|
|||
Layout.preferredHeight: modelData.ssid === passwordPromptSsid && showPasswordPrompt ? 60 : 0
|
||||
Layout.margins: 8
|
||||
visible: modelData.ssid === passwordPromptSsid && showPasswordPrompt
|
||||
color: Colors.colorSurfaceVariant
|
||||
color: Colors.mSurfaceVariant
|
||||
radius: Style.radiusSmall * scaling
|
||||
|
||||
RowLayout {
|
||||
|
|
@ -314,7 +314,7 @@ NLoader {
|
|||
anchors.fill: parent
|
||||
radius: 8
|
||||
color: "transparent"
|
||||
border.color: passwordInputField.activeFocus ? Colors.colorPrimary : Colors.colorOutline
|
||||
border.color: passwordInputField.activeFocus ? Colors.mPrimary : Colors.mOutline
|
||||
border.width: 1
|
||||
|
||||
TextInput {
|
||||
|
|
@ -323,7 +323,7 @@ NLoader {
|
|||
anchors.margins: Style.marginMedium * scaling
|
||||
text: passwordInput
|
||||
font.pointSize: Style.fontSizeMedium * scaling
|
||||
color: Colors.colorOnSurface
|
||||
color: Colors.mOnSurface
|
||||
verticalAlignment: TextInput.AlignVCenter
|
||||
clip: true
|
||||
focus: true
|
||||
|
|
@ -350,8 +350,8 @@ NLoader {
|
|||
Layout.preferredWidth: 80
|
||||
Layout.preferredHeight: 36
|
||||
radius: Style.radiusMedium * scaling
|
||||
color: Colors.colorPrimary
|
||||
border.color: Colors.colorPrimary
|
||||
color: Colors.mPrimary
|
||||
border.color: Colors.mPrimary
|
||||
border.width: 0
|
||||
|
||||
Behavior on color {
|
||||
|
|
@ -363,7 +363,7 @@ NLoader {
|
|||
NText {
|
||||
anchors.centerIn: parent
|
||||
text: "Connect"
|
||||
color: Colors.colorSurface
|
||||
color: Colors.mSurface
|
||||
font.pointSize: Style.fontSizeSmall * scaling
|
||||
}
|
||||
|
||||
|
|
@ -375,8 +375,8 @@ NLoader {
|
|||
}
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
hoverEnabled: true
|
||||
onEntered: parent.color = Qt.darker(Colors.colorPrimary, 1.1)
|
||||
onExited: parent.color = Colors.colorPrimary
|
||||
onEntered: parent.color = Qt.darker(Colors.mPrimary, 1.1)
|
||||
onExited: parent.color = Colors.mPrimary
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ Item {
|
|||
property ListModel localWorkspaces: ListModel {}
|
||||
property real masterProgress: 0.0
|
||||
property bool effectsActive: false
|
||||
property color effectColor: Colors.colorPrimary
|
||||
property color effectColor: Colors.mPrimary
|
||||
|
||||
property int horizontalPadding: Math.round(16 * s)
|
||||
property int spacingBetweenPills: Math.round(8 * s)
|
||||
|
|
@ -72,7 +72,7 @@ Item {
|
|||
}
|
||||
|
||||
function triggerUnifiedWave() {
|
||||
effectColor = Colors.colorPrimary
|
||||
effectColor = Colors.mPrimary
|
||||
masterAnimation.restart()
|
||||
}
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ Item {
|
|||
const ws = localWorkspaces.get(i)
|
||||
if (ws.isFocused === true) {
|
||||
root.triggerUnifiedWave()
|
||||
root.workspaceChanged(ws.id, Colors.colorPrimary)
|
||||
root.workspaceChanged(ws.id, Colors.mPrimary)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
@ -121,12 +121,12 @@ Item {
|
|||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
radius: Math.round(12 * s)
|
||||
color: Colors.colorSurfaceVariant
|
||||
border.color: Colors.colorOutlineVariant
|
||||
color: Colors.mSurfaceVariant
|
||||
border.color: Colors.mOutlineVariant
|
||||
border.width: Math.max(1, Math.round(1 * s))
|
||||
layer.enabled: true
|
||||
layer.effect: MultiEffect {
|
||||
shadowColor: Colors.colorShadow
|
||||
shadowColor: Colors.mShadow
|
||||
shadowVerticalOffset: 0
|
||||
shadowHorizontalOffset: 0
|
||||
shadowOpacity: 0.10
|
||||
|
|
@ -166,15 +166,15 @@ Item {
|
|||
}
|
||||
color: {
|
||||
if (model.isFocused)
|
||||
return Colors.colorPrimary
|
||||
return Colors.mPrimary
|
||||
if (model.isUrgent)
|
||||
return Colors.colorError
|
||||
return Colors.mError
|
||||
if (model.isActive || model.isOccupied)
|
||||
return Colors.colorSecondary
|
||||
return Colors.mSecondary
|
||||
if (model.isUrgent)
|
||||
return Colors.colorError
|
||||
return Colors.mError
|
||||
|
||||
return Colors.colorOutline
|
||||
return Colors.mOutline
|
||||
}
|
||||
scale: model.isFocused ? 1.0 : 0.9
|
||||
z: 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue