Renamed Colors to Color
- some work on the active window
This commit is contained in:
parent
ffd9ee8efe
commit
4fcdb1543d
60 changed files with 491 additions and 455 deletions
|
|
@ -34,6 +34,8 @@ Singleton {
|
||||||
property color mOutlineVariant: customColors.mOutlineVariant
|
property color mOutlineVariant: customColors.mOutlineVariant
|
||||||
property color mShadow: customColors.mShadow
|
property color mShadow: customColors.mShadow
|
||||||
|
|
||||||
|
property color transparent: "transparent"
|
||||||
|
|
||||||
// -----------
|
// -----------
|
||||||
function applyOpacity(color, opacity) {
|
function applyOpacity(color, opacity) {
|
||||||
// Convert color to string and apply opacity
|
// Convert color to string and apply opacity
|
||||||
|
|
@ -49,7 +49,7 @@ Singleton {
|
||||||
reload()
|
reload()
|
||||||
}
|
}
|
||||||
onLoaded: function () {
|
onLoaded: function () {
|
||||||
Logger.log("Settings", "Loaded")
|
Logger.log("Settings", "OnLoaded")
|
||||||
Qt.callLater(function () {
|
Qt.callLater(function () {
|
||||||
// Only set wallpaper on initial load, not on reloads
|
// Only set wallpaper on initial load, not on reloads
|
||||||
if (isInitialLoad && adapter.wallpaper.current !== "") {
|
if (isInitialLoad && adapter.wallpaper.current !== "") {
|
||||||
|
|
@ -75,7 +75,9 @@ Singleton {
|
||||||
property bool showActiveWindow: true
|
property bool showActiveWindow: true
|
||||||
property bool showSystemInfo: false
|
property bool showSystemInfo: false
|
||||||
property bool showMedia: false
|
property bool showMedia: false
|
||||||
property bool hideBrightness: false
|
property bool showBrightness: true
|
||||||
|
property bool showNotificationsHistory: true
|
||||||
|
property bool showTray: true
|
||||||
property list<string> monitors: []
|
property list<string> monitors: []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ Singleton {
|
||||||
// Font size
|
// Font size
|
||||||
property real fontSizeTiny: 7
|
property real fontSizeTiny: 7
|
||||||
property real fontSizeSmall: 9
|
property real fontSizeSmall: 9
|
||||||
|
property real fontSizeReduced: 10
|
||||||
property real fontSizeMedium: 11
|
property real fontSizeMedium: 11
|
||||||
property real fontSizeInter: 12
|
property real fontSizeInter: 12
|
||||||
property real fontSizeLarge: 13
|
property real fontSizeLarge: 13
|
||||||
|
|
|
||||||
|
|
@ -255,19 +255,19 @@ NLoader {
|
||||||
width: Math.min(700 * scaling, parent.width * 0.75)
|
width: Math.min(700 * scaling, parent.width * 0.75)
|
||||||
height: Math.min(550 * scaling, parent.height * 0.8)
|
height: Math.min(550 * scaling, parent.height * 0.8)
|
||||||
radius: Style.radiusLarge * scaling
|
radius: Style.radiusLarge * scaling
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Style.borderThin * scaling
|
border.width: Style.borderThin * scaling
|
||||||
|
|
||||||
// Subtle gradient background
|
// Subtle gradient background
|
||||||
gradient: Gradient {
|
gradient: Gradient {
|
||||||
GradientStop {
|
GradientStop {
|
||||||
position: 0.0
|
position: 0.0
|
||||||
color: Qt.lighter(Colors.mSurface, 1.02)
|
color: Qt.lighter(Color.mSurface, 1.02)
|
||||||
}
|
}
|
||||||
GradientStop {
|
GradientStop {
|
||||||
position: 1.0
|
position: 1.0
|
||||||
color: Qt.darker(Colors.mSurface, 1.1)
|
color: Qt.darker(Color.mSurface, 1.1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -282,8 +282,8 @@ NLoader {
|
||||||
Layout.preferredHeight: Style.barHeight * scaling
|
Layout.preferredHeight: Style.barHeight * scaling
|
||||||
Layout.bottomMargin: Style.marginMedium * scaling
|
Layout.bottomMargin: Style.marginMedium * scaling
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
border.color: searchInput.activeFocus ? Colors.mPrimary : Colors.mOutline
|
border.color: searchInput.activeFocus ? Color.mPrimary : Color.mOutline
|
||||||
border.width: Math.max(
|
border.width: Math.max(
|
||||||
1,
|
1,
|
||||||
searchInput.activeFocus ? Style.borderMedium * scaling : Style.borderThin * scaling)
|
searchInput.activeFocus ? Style.borderMedium * scaling : Style.borderThin * scaling)
|
||||||
|
|
@ -297,14 +297,14 @@ NLoader {
|
||||||
text: "search"
|
text: "search"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeLarger * scaling
|
font.pointSize: Style.fontSizeLarger * scaling
|
||||||
color: searchInput.activeFocus ? Colors.mPrimary : Colors.mOnSurface
|
color: searchInput.activeFocus ? Color.mPrimary : Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
id: searchInput
|
id: searchInput
|
||||||
placeholderText: "Search applications..."
|
placeholderText: "Search applications..."
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
placeholderTextColor: Colors.mOnSurface
|
placeholderTextColor: Color.mOnSurface
|
||||||
background: null
|
background: null
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -312,8 +312,8 @@ NLoader {
|
||||||
searchText = text
|
searchText = text
|
||||||
selectedIndex = 0 // Reset selection when search changes
|
selectedIndex = 0 // Reset selection when search changes
|
||||||
}
|
}
|
||||||
selectedTextColor: Colors.mOnSurface
|
selectedTextColor: Color.mOnSurface
|
||||||
selectionColor: Colors.mPrimary
|
selectionColor: Color.mPrimary
|
||||||
padding: 0
|
padding: 0
|
||||||
verticalAlignment: TextInput.AlignVCenter
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
leftPadding: 0
|
leftPadding: 0
|
||||||
|
|
@ -322,14 +322,14 @@ NLoader {
|
||||||
bottomPadding: 0
|
bottomPadding: 0
|
||||||
font.bold: true
|
font.bold: true
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
contentItem.cursorColor = Colors.mOnSurface
|
contentItem.cursorColor = Color.mOnSurface
|
||||||
contentItem.verticalAlignment = TextInput.AlignVCenter
|
contentItem.verticalAlignment = TextInput.AlignVCenter
|
||||||
// Focus the search bar by default
|
// Focus the search bar by default
|
||||||
Qt.callLater(() => {
|
Qt.callLater(() => {
|
||||||
searchInput.forceActiveFocus()
|
searchInput.forceActiveFocus()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
onActiveFocusChanged: contentItem.cursorColor = Colors.mOnSurface
|
onActiveFocusChanged: contentItem.cursorColor = Color.mOnSurface
|
||||||
|
|
||||||
Keys.onDownPressed: selectNext()
|
Keys.onDownPressed: selectNext()
|
||||||
Keys.onUpPressed: selectPrev()
|
Keys.onUpPressed: selectPrev()
|
||||||
|
|
@ -372,9 +372,9 @@ NLoader {
|
||||||
height: 65 * scaling
|
height: 65 * scaling
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
property bool isSelected: index === selectedIndex
|
property bool isSelected: index === selectedIndex
|
||||||
color: (appCardArea.containsMouse || isSelected) ? Qt.darker(Colors.mPrimary,
|
color: (appCardArea.containsMouse || isSelected) ? Qt.darker(Color.mPrimary,
|
||||||
1.1) : Colors.mSurface
|
1.1) : Color.mSurface
|
||||||
border.color: (appCardArea.containsMouse || isSelected) ? Colors.mPrimary : "transparent"
|
border.color: (appCardArea.containsMouse || isSelected) ? Color.mPrimary : "transparent"
|
||||||
border.width: Math.max(1, (appCardArea.containsMouse
|
border.width: Math.max(1, (appCardArea.containsMouse
|
||||||
|| isSelected) ? Style.borderMedium * scaling : 0)
|
|| isSelected) ? Style.borderMedium * scaling : 0)
|
||||||
|
|
||||||
|
|
@ -406,8 +406,8 @@ NLoader {
|
||||||
Layout.preferredWidth: Style.baseWidgetSize * 1.25 * scaling
|
Layout.preferredWidth: Style.baseWidgetSize * 1.25 * scaling
|
||||||
Layout.preferredHeight: Style.baseWidgetSize * 1.25 * scaling
|
Layout.preferredHeight: Style.baseWidgetSize * 1.25 * scaling
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
color: appCardArea.containsMouse ? Qt.darker(Colors.mPrimary,
|
color: appCardArea.containsMouse ? Qt.darker(Color.mPrimary,
|
||||||
1.1) : Colors.mSurfaceVariant
|
1.1) : Color.mSurfaceVariant
|
||||||
property bool iconLoaded: (modelData.isCalculator || modelData.isClipboard
|
property bool iconLoaded: (modelData.isCalculator || modelData.isClipboard
|
||||||
|| modelData.isCommand) || (iconImg.status === Image.Ready
|
|| modelData.isCommand) || (iconImg.status === Image.Ready
|
||||||
&& iconImg.source !== ""
|
&& iconImg.source !== ""
|
||||||
|
|
@ -442,7 +442,7 @@ NLoader {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: Style.marginTiny * scaling
|
anchors.margins: Style.marginTiny * scaling
|
||||||
radius: Style.radiusTiny * scaling
|
radius: Style.radiusTiny * scaling
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
opacity: Style.opacityMedium
|
opacity: Style.opacityMedium
|
||||||
visible: !parent.iconLoaded
|
visible: !parent.iconLoaded
|
||||||
}
|
}
|
||||||
|
|
@ -454,7 +454,7 @@ NLoader {
|
||||||
text: modelData.name ? modelData.name.charAt(0).toUpperCase() : "?"
|
text: modelData.name ? modelData.name.charAt(0).toUpperCase() : "?"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on color {
|
Behavior on color {
|
||||||
|
|
@ -473,7 +473,7 @@ NLoader {
|
||||||
text: modelData.name || "Unknown"
|
text: modelData.name || "Unknown"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -481,8 +481,7 @@ NLoader {
|
||||||
NText {
|
NText {
|
||||||
text: modelData.isCalculator ? (modelData.expr + " = " + modelData.result) : modelData.isClipboard ? modelData.content : modelData.isCommand ? modelData.content : (modelData.genericName || modelData.comment || "")
|
text: modelData.isCalculator ? (modelData.expr + " = " + modelData.result) : modelData.isClipboard ? modelData.content : modelData.isCommand ? modelData.content : (modelData.genericName || modelData.comment || "")
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
color: (appCardArea.containsMouse
|
color: (appCardArea.containsMouse || isSelected) ? Color.mOnSurface : Color.mOnSurface
|
||||||
|| isSelected) ? Colors.mOnSurface : Colors.mOnSurface
|
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
visible: text !== ""
|
visible: text !== ""
|
||||||
|
|
@ -509,7 +508,7 @@ NLoader {
|
||||||
NText {
|
NText {
|
||||||
text: searchText.trim() !== "" ? "No applications found" : "No applications available"
|
text: searchText.trim() !== "" ? "No applications found" : "No applications available"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
visible: filteredEntries.length === 0
|
visible: filteredEntries.length === 0
|
||||||
|
|
@ -523,7 +522,7 @@ NLoader {
|
||||||
">calc") ? `${filteredEntries.length} result${filteredEntries.length
|
">calc") ? `${filteredEntries.length} result${filteredEntries.length
|
||||||
!== 1 ? 's' : ''}` : `${filteredEntries.length} application${filteredEntries.length !== 1 ? 's' : ''}`
|
!== 1 ? 's' : ''}` : `${filteredEntries.length} application${filteredEntries.length !== 1 ? 's' : ''}`
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
visible: searchText.trim() !== ""
|
visible: searchText.trim() !== ""
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ Item {
|
||||||
id: root
|
id: root
|
||||||
property int innerRadius: 32 * scaling
|
property int innerRadius: 32 * scaling
|
||||||
property int outerRadius: 64 * scaling
|
property int outerRadius: 64 * scaling
|
||||||
property color fillColor: Colors.mPrimary
|
property color fillColor: Color.mPrimary
|
||||||
property color strokeColor: Colors.mOnSurface
|
property color strokeColor: Color.mOnSurface
|
||||||
property int strokeWidth: 0 * scaling
|
property int strokeWidth: 0 * scaling
|
||||||
property var values: []
|
property var values: []
|
||||||
property int usableOuter: 64
|
property int usableOuter: 64
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import qs.Services
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
property color fillColor: Colors.mPrimary
|
property color fillColor: Color.mPrimary
|
||||||
property color strokeColor: Colors.mOnSurface
|
property color strokeColor: Color.mOnSurface
|
||||||
property int strokeWidth: 0
|
property int strokeWidth: 0
|
||||||
property var values: []
|
property var values: []
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ NLoader {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Qt.rgba(Colors.mSurface.r, Colors.mSurface.g, Colors.mSurface.b, 0.5)
|
color: Qt.rgba(Color.mSurface.r, Color.mSurface.g, Color.mSurface.b, 0.5)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ NLoader {
|
||||||
screen: modelData
|
screen: modelData
|
||||||
|
|
||||||
// Visible ring color
|
// Visible ring color
|
||||||
property color ringColor: Colors.mSurface
|
property color ringColor: Color.mSurface
|
||||||
// The amount subtracted from full size for the inner cutout
|
// The amount subtracted from full size for the inner cutout
|
||||||
// Inner size = full size - borderWidth (per axis)
|
// Inner size = full size - borderWidth (per axis)
|
||||||
property int borderWidth: Style.borderMedium
|
property int borderWidth: Style.borderMedium
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
|
import QtQuick.Layouts
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import qs.Commons
|
import qs.Commons
|
||||||
import qs.Services
|
import qs.Services
|
||||||
|
|
@ -39,57 +40,68 @@ Row {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Window icon
|
Rectangle {
|
||||||
NText {
|
width: row.width + Style.marginSmall * scaling * 2
|
||||||
id: windowIcon
|
height: row.height
|
||||||
text: "desktop_windows"
|
color: Color.mSurfaceVariant
|
||||||
font.family: "Material Symbols Outlined"
|
radius: Style.radiusSmall * scaling
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
color: Colors.mPrimary
|
|
||||||
visible: getDisplayText() !== ""
|
|
||||||
}
|
|
||||||
|
|
||||||
// Window title container
|
|
||||||
Item {
|
|
||||||
id: titleContainer
|
|
||||||
width: titleText.width
|
|
||||||
height: titleText.height
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
Behavior on width {
|
Item {
|
||||||
NumberAnimation {
|
id: mainContainer
|
||||||
duration: Style.animationNormal
|
|
||||||
easing.type: Easing.OutCubic
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
NText {
|
|
||||||
id: titleText
|
|
||||||
text: getDisplayText()
|
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
|
||||||
font.weight: Style.fontWeightBold
|
|
||||||
elide: Text.ElideRight
|
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mouse area for hover detection
|
|
||||||
MouseArea {
|
|
||||||
id: titleContainerMouseArea
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
anchors.leftMargin: Style.marginSmall * scaling
|
||||||
cursorShape: Qt.IBeamCursor
|
anchors.rightMargin: Style.marginSmall * scaling
|
||||||
onEntered: {
|
|
||||||
titleText.text = getDisplayText()
|
Row {
|
||||||
|
id: row
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
spacing: Style.marginTiny * scaling
|
||||||
|
|
||||||
|
// Window icon
|
||||||
|
NText {
|
||||||
|
id: windowIcon
|
||||||
|
text: "dialogs"
|
||||||
|
font.family: "Material Symbols Outlined"
|
||||||
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
visible: getDisplayText() !== ""
|
||||||
|
}
|
||||||
|
|
||||||
|
NText {
|
||||||
|
id: titleText
|
||||||
|
width: (showingFullTitle || mouseArea.containsMouse) ? 300 * scaling : 100 * scaling
|
||||||
|
text: getDisplayText()
|
||||||
|
font.pointSize: Style.fontSizeReduced * scaling
|
||||||
|
font.weight: Style.fontWeightBold
|
||||||
|
elide: Text.ElideRight
|
||||||
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
color: Color.mTertiary
|
||||||
|
Behavior on width {
|
||||||
|
NumberAnimation {
|
||||||
|
duration: Style.animationSlow
|
||||||
|
easing.type: Easing.OutBack
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
onExited: {
|
// Mouse area for hover detection
|
||||||
titleText.text = getDisplayText()
|
MouseArea {
|
||||||
|
id: mouseArea
|
||||||
|
anchors.fill: parent
|
||||||
|
hoverEnabled: true
|
||||||
|
cursorShape: Qt.IBeamCursor
|
||||||
|
onEntered: {
|
||||||
|
titleText.text = getDisplayText()
|
||||||
|
}
|
||||||
|
onExited: {
|
||||||
|
titleText.text = getDisplayText()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDisplayText() {
|
function getDisplayText() {
|
||||||
// Check if Niri service is available
|
// Check if Niri service is available
|
||||||
if (typeof NiriService === "undefined") {
|
if (typeof NiriService === "undefined") {
|
||||||
|
|
@ -117,27 +129,29 @@ Row {
|
||||||
const programName = title.split(/[\s\-_]/)[0]
|
const programName = title.split(/[\s\-_]/)[0]
|
||||||
|
|
||||||
if (programName.length <= 2 || programName === title) {
|
if (programName.length <= 2 || programName === title) {
|
||||||
return truncateTitle(title)
|
return title
|
||||||
}
|
}
|
||||||
|
|
||||||
if (showingFullTitle || titleContainerMouseArea.containsMouse || isGenericName(programName)) {
|
if (isGenericName(programName)) {
|
||||||
return truncateTitle(title)
|
return title
|
||||||
}
|
}
|
||||||
|
|
||||||
return programName
|
return programName
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use appId for program name, show full title on hover or window switch
|
return title
|
||||||
if (showingFullTitle || titleContainerMouseArea.containsMouse) {
|
|
||||||
return truncateTitle(title || appId)
|
|
||||||
}
|
|
||||||
|
|
||||||
return appId
|
// // Use appId for program name, show full title on hover or window switch
|
||||||
|
// if (showingFullTitle || mouseArea.containsMouse) {
|
||||||
|
// return truncateTitle(title || appId, 50)
|
||||||
|
// } else {
|
||||||
|
// return truncateTitle(title || appId, 20)
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
function truncateTitle(title) {
|
function truncateTitle(title, length) {
|
||||||
if (title.length > 50) {
|
if (title.length > length) {
|
||||||
return title.substring(0, 47) + "..."
|
return title.substring(0, length - 3) + "..."
|
||||||
}
|
}
|
||||||
return title
|
return title
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ Variants {
|
||||||
id: bar
|
id: bar
|
||||||
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -55,9 +55,9 @@ Variants {
|
||||||
|
|
||||||
SystemMonitor {}
|
SystemMonitor {}
|
||||||
|
|
||||||
MediaMini {}
|
|
||||||
|
|
||||||
ActiveWindow {}
|
ActiveWindow {}
|
||||||
|
|
||||||
|
MediaMini {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Center
|
// Center
|
||||||
|
|
|
||||||
|
|
@ -52,10 +52,10 @@ NPill {
|
||||||
|
|
||||||
icon: root.batteryIcon()
|
icon: root.batteryIcon()
|
||||||
text: Math.round(root.percent) + "%"
|
text: Math.round(root.percent) + "%"
|
||||||
pillColor: Colors.mSurfaceVariant
|
pillColor: Color.mSurfaceVariant
|
||||||
iconCircleColor: Colors.mPrimary
|
iconCircleColor: Color.mPrimary
|
||||||
iconTextColor: Colors.mSurface
|
iconTextColor: Color.mSurface
|
||||||
textColor: charging ? Colors.mPrimary : Colors.mOnSurface
|
textColor: charging ? Color.mPrimary : Color.mOnSurface
|
||||||
tooltipText: {
|
tooltipText: {
|
||||||
let lines = []
|
let lines = []
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,9 @@ NLoader {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: bluetoothMenuRect
|
id: bluetoothMenuRect
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
radius: Style.radiusLarge * scaling
|
radius: Style.radiusLarge * scaling
|
||||||
border.color: Colors.mOutlineVariant
|
border.color: Color.mOutlineVariant
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
width: 340 * scaling
|
width: 340 * scaling
|
||||||
height: 500 * scaling
|
height: 500 * scaling
|
||||||
|
|
@ -115,14 +115,14 @@ NLoader {
|
||||||
text: "bluetooth"
|
text: "bluetooth"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Bluetooth"
|
text: "Bluetooth"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -160,7 +160,7 @@ NLoader {
|
||||||
|
|
||||||
NBusyIndicator {
|
NBusyIndicator {
|
||||||
running: BluetoothService.isDiscovering
|
running: BluetoothService.isDiscovering
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
size: Style.baseWidgetSize * scaling
|
size: Style.baseWidgetSize * scaling
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
@ -168,7 +168,7 @@ NLoader {
|
||||||
NText {
|
NText {
|
||||||
text: "Scanning for devices..."
|
text: "Scanning for devices..."
|
||||||
font.pointSize: Style.fontSizeNormal * scaling
|
font.pointSize: Style.fontSizeNormal * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -183,21 +183,21 @@ NLoader {
|
||||||
text: "bluetooth_disabled"
|
text: "bluetooth_disabled"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Bluetooth is disabled"
|
text: "Bluetooth is disabled"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Enable Bluetooth to see available devices"
|
text: "Enable Bluetooth to see available devices"
|
||||||
font.pointSize: Style.fontSizeNormal * scaling
|
font.pointSize: Style.fontSizeNormal * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -271,7 +271,7 @@ NLoader {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: modelData.device.connected ? Colors.mPrimary : (deviceMouseArea.containsMouse ? Colors.mTertiary : "transparent")
|
color: modelData.device.connected ? Color.mPrimary : (deviceMouseArea.containsMouse ? Color.mTertiary : "transparent")
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
@ -282,7 +282,7 @@ NLoader {
|
||||||
text: BluetoothService.getDeviceIcon(modelData.device)
|
text: BluetoothService.getDeviceIcon(modelData.device)
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
color: modelData.device.connected ? Colors.mSurface : (deviceMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface)
|
color: modelData.device.connected ? Color.mSurface : (deviceMouseArea.containsMouse ? Color.mSurface : Color.mOnSurface)
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
@ -294,7 +294,7 @@ NLoader {
|
||||||
font.pointSize: Style.fontSizeNormal * scaling
|
font.pointSize: Style.fontSizeNormal * scaling
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
color: modelData.device.connected ? Colors.mSurface : (deviceMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface)
|
color: modelData.device.connected ? Color.mSurface : (deviceMouseArea.containsMouse ? Color.mSurface : Color.mOnSurface)
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
|
|
@ -308,13 +308,13 @@ NLoader {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: modelData.device.connected ? Colors.mSurface : (deviceMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurfaceVariant)
|
color: modelData.device.connected ? Color.mSurface : (deviceMouseArea.containsMouse ? Color.mSurface : Color.mOnSurfaceVariant)
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: BluetoothService.getBatteryText(modelData.device)
|
text: BluetoothService.getBatteryText(modelData.device)
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: modelData.device.connected ? Colors.mSurface : (deviceMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurfaceVariant)
|
color: modelData.device.connected ? Color.mSurface : (deviceMouseArea.containsMouse ? Color.mSurface : Color.mOnSurfaceVariant)
|
||||||
visible: modelData.device.batteryAvailable
|
visible: modelData.device.batteryAvailable
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -327,7 +327,7 @@ NLoader {
|
||||||
NBusyIndicator {
|
NBusyIndicator {
|
||||||
visible: modelData.device.pairing || modelData.device.state === 2
|
visible: modelData.device.pairing || modelData.device.state === 2
|
||||||
running: modelData.device.pairing || modelData.device.state === 2
|
running: modelData.device.pairing || modelData.device.state === 2
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
size: Style.baseWidgetSize * 0.7 * scaling
|
size: Style.baseWidgetSize * 0.7 * scaling
|
||||||
}
|
}
|
||||||
|
|
@ -337,7 +337,7 @@ NLoader {
|
||||||
visible: modelData.device.connected
|
visible: modelData.device.connected
|
||||||
text: "connected"
|
text: "connected"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: modelData.device.connected ? Colors.mSurface : (deviceMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface)
|
color: modelData.device.connected ? Color.mSurface : (deviceMouseArea.containsMouse ? Color.mSurface : Color.mOnSurface)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -370,21 +370,21 @@ NLoader {
|
||||||
text: "bluetooth_disabled"
|
text: "bluetooth_disabled"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "No Bluetooth devices"
|
text: "No Bluetooth devices"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Click the refresh button to discover devices"
|
text: "Click the refresh button to discover devices"
|
||||||
font.pointSize: Style.fontSizeNormal * scaling
|
font.pointSize: Style.fontSizeNormal * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ Item {
|
||||||
|
|
||||||
width: pill.width
|
width: pill.width
|
||||||
height: pill.height
|
height: pill.height
|
||||||
visible: !Settings.data.bar.hideBrightness
|
visible: Settings.data.bar.showBrightness
|
||||||
|
|
||||||
// Used to avoid opening the pill on Quickshell startup
|
// Used to avoid opening the pill on Quickshell startup
|
||||||
property bool firstBrightnessReceived: false
|
property bool firstBrightnessReceived: false
|
||||||
|
|
@ -49,8 +49,8 @@ Item {
|
||||||
NPill {
|
NPill {
|
||||||
id: pill
|
id: pill
|
||||||
icon: getIcon()
|
icon: getIcon()
|
||||||
iconCircleColor: Colors.mPrimary
|
iconCircleColor: Color.mPrimary
|
||||||
collapsedIconColor: Colors.mOnSurface
|
collapsedIconColor: Color.mOnSurface
|
||||||
autoHide: false // Important to be false so we can hover as long as we want
|
autoHide: false // Important to be false so we can hover as long as we want
|
||||||
text: Math.round(BrightnessService.brightness) + "%"
|
text: Math.round(BrightnessService.brightness) + "%"
|
||||||
tooltipText: "Brightness: " + Math.round(
|
tooltipText: "Brightness: " + Math.round(
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,6 @@ Item {
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
color: Colors.mPrimary
|
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: titleContainerMouseArea
|
id: titleContainerMouseArea
|
||||||
|
|
@ -43,11 +42,10 @@ Item {
|
||||||
// Track info
|
// Track info
|
||||||
NText {
|
NText {
|
||||||
text: MediaService.trackTitle + (MediaService.trackArtist !== "" ? ` - {MediaService.trackArtist}` : "")
|
text: MediaService.trackTitle + (MediaService.trackArtist !== "" ? ` - {MediaService.trackArtist}` : "")
|
||||||
color: Colors.mOnSurface
|
font.pointSize: Style.fontSizeReduced * scaling
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
color: Color.mSecondary
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
Layout.maximumWidth: 200 * scaling
|
Layout.maximumWidth: 200 * scaling
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ import qs.Widgets
|
||||||
NIconButton {
|
NIconButton {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
visible: Settings.data.bar.showNotificationsHistory
|
||||||
sizeMultiplier: 0.8
|
sizeMultiplier: 0.8
|
||||||
showBorder: false
|
showBorder: false
|
||||||
icon: "notifications"
|
icon: "notifications"
|
||||||
|
|
|
||||||
|
|
@ -24,16 +24,16 @@ Row {
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
color: Colors.mPrimary
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
id: cpuUsageText
|
id: cpuUsageText
|
||||||
text: `${SystemStatsService.cpuUsage}%`
|
text: `${SystemStatsService.cpuUsage}%`
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeReduced * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -46,17 +46,18 @@ Row {
|
||||||
text: "thermometer"
|
text: "thermometer"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
color: Colors.mPrimary
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: `${SystemStatsService.cpuTemp}°C`
|
text: `${SystemStatsService.cpuTemp}°C`
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeReduced * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -69,17 +70,17 @@ Row {
|
||||||
text: "memory"
|
text: "memory"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
color: Colors.mPrimary
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: `${SystemStatsService.memoryUsageGb}G`
|
text: `${SystemStatsService.memoryUsageGb}G`
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeReduced * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ import qs.Widgets
|
||||||
Item {
|
Item {
|
||||||
readonly property real itemSize: 24 * scaling
|
readonly property real itemSize: 24 * scaling
|
||||||
|
|
||||||
|
visible: Settings.data.bar.showTray
|
||||||
width: tray.width
|
width: tray.width
|
||||||
height: itemSize
|
height: itemSize
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,8 @@ PopupWindow {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: bg
|
id: bg
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
z: 0
|
z: 0
|
||||||
|
|
@ -112,7 +112,7 @@ PopupWindow {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: bg
|
id: bg
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: mouseArea.containsMouse ? Colors.mTertiary : "transparent"
|
color: mouseArea.containsMouse ? Color.mTertiary : "transparent"
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
visible: !(modelData?.isSeparator ?? false)
|
visible: !(modelData?.isSeparator ?? false)
|
||||||
|
|
||||||
|
|
@ -126,7 +126,7 @@ PopupWindow {
|
||||||
id: text
|
id: text
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
color: (modelData?.enabled
|
color: (modelData?.enabled
|
||||||
?? true) ? (mouseArea.containsMouse ? Colors.mOnTertiary : Colors.mOnSurface) : Colors.textDisabled
|
?? true) ? (mouseArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface) : Color.textDisabled
|
||||||
text: modelData?.text ?? ""
|
text: modelData?.text ?? ""
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
|
@ -148,7 +148,7 @@ PopupWindow {
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
visible: modelData?.hasChildren ?? false
|
visible: modelData?.hasChildren ?? false
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -308,8 +308,8 @@ PopupWindow {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: bg
|
id: bg
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
z: 0
|
z: 0
|
||||||
|
|
@ -347,10 +347,10 @@ PopupWindow {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: bg
|
id: bg
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: mouseArea.containsMouse ? Colors.mTertiary : "transparent"
|
color: mouseArea.containsMouse ? Color.mTertiary : "transparent"
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
visible: !(modelData?.isSeparator ?? false)
|
visible: !(modelData?.isSeparator ?? false)
|
||||||
property color hoverTextColor: mouseArea.containsMouse ? Colors.mOnSurface : Colors.mOnSurface
|
property color hoverTextColor: mouseArea.containsMouse ? Color.mOnSurface : Color.mOnSurface
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
@ -361,7 +361,7 @@ PopupWindow {
|
||||||
NText {
|
NText {
|
||||||
id: subText
|
id: subText
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
color: (modelData?.enabled ?? true) ? bg.hoverTextColor : Colors.textDisabled
|
color: (modelData?.enabled ?? true) ? bg.hoverTextColor : Color.textDisabled
|
||||||
text: modelData?.text ?? ""
|
text: modelData?.text ?? ""
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
|
|
||||||
|
|
@ -49,8 +49,8 @@ Item {
|
||||||
NPill {
|
NPill {
|
||||||
id: pill
|
id: pill
|
||||||
icon: getIcon()
|
icon: getIcon()
|
||||||
iconCircleColor: Colors.mPrimary
|
iconCircleColor: Color.mPrimary
|
||||||
collapsedIconColor: Colors.mOnSurface
|
collapsedIconColor: Color.mOnSurface
|
||||||
autoHide: false // Important to be false so we can hover as long as we want
|
autoHide: false // Important to be false so we can hover as long as we want
|
||||||
text: Math.floor(AudioService.volume * 100) + "%"
|
text: Math.floor(AudioService.volume * 100) + "%"
|
||||||
tooltipText: "Volume: " + Math.round(
|
tooltipText: "Volume: " + Math.round(
|
||||||
|
|
|
||||||
|
|
@ -82,9 +82,9 @@ NLoader {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: wifiMenuRect
|
id: wifiMenuRect
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
radius: Style.radiusLarge * scaling
|
radius: Style.radiusLarge * scaling
|
||||||
border.color: Colors.mOutlineVariant
|
border.color: Color.mOutlineVariant
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
width: 340 * scaling
|
width: 340 * scaling
|
||||||
height: 500 * scaling
|
height: 500 * scaling
|
||||||
|
|
@ -134,14 +134,14 @@ NLoader {
|
||||||
text: "wifi"
|
text: "wifi"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "WiFi"
|
text: "WiFi"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -179,7 +179,7 @@ NLoader {
|
||||||
|
|
||||||
NBusyIndicator {
|
NBusyIndicator {
|
||||||
running: NetworkService.isLoading
|
running: NetworkService.isLoading
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
size: Style.baseWidgetSize * scaling
|
size: Style.baseWidgetSize * scaling
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
@ -187,7 +187,7 @@ NLoader {
|
||||||
NText {
|
NText {
|
||||||
text: "Scanning for networks..."
|
text: "Scanning for networks..."
|
||||||
font.pointSize: Style.fontSizeNormal * scaling
|
font.pointSize: Style.fontSizeNormal * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -202,21 +202,21 @@ NLoader {
|
||||||
text: "wifi_off"
|
text: "wifi_off"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "WiFi is disabled"
|
text: "WiFi is disabled"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Enable WiFi to see available networks"
|
text: "Enable WiFi to see available networks"
|
||||||
font.pointSize: Style.fontSizeNormal * scaling
|
font.pointSize: Style.fontSizeNormal * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -243,7 +243,7 @@ NLoader {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Style.baseWidgetSize * 1.5 * scaling
|
Layout.preferredHeight: Style.baseWidgetSize * 1.5 * scaling
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: modelData.connected ? Colors.mPrimary : (networkMouseArea.containsMouse ? Colors.mTertiary : "transparent")
|
color: modelData.connected ? Color.mPrimary : (networkMouseArea.containsMouse ? Color.mTertiary : "transparent")
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
@ -254,7 +254,7 @@ NLoader {
|
||||||
text: NetworkService.signalIcon(modelData.signal)
|
text: NetworkService.signalIcon(modelData.signal)
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
color: modelData.connected ? Colors.mSurface : (networkMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface)
|
color: modelData.connected ? Color.mSurface : (networkMouseArea.containsMouse ? Color.mSurface : Color.mOnSurface)
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
@ -267,7 +267,7 @@ NLoader {
|
||||||
font.pointSize: Style.fontSizeNormal * scaling
|
font.pointSize: Style.fontSizeNormal * scaling
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
color: modelData.connected ? Colors.mSurface : (networkMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface)
|
color: modelData.connected ? Color.mSurface : (networkMouseArea.containsMouse ? Color.mSurface : Color.mOnSurface)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Security Protocol
|
// Security Protocol
|
||||||
|
|
@ -276,14 +276,14 @@ NLoader {
|
||||||
font.pointSize: Style.fontSizeTiny * scaling
|
font.pointSize: Style.fontSizeTiny * scaling
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
color: modelData.connected ? Colors.mSurface : (networkMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface)
|
color: modelData.connected ? Color.mSurface : (networkMouseArea.containsMouse ? Color.mSurface : Color.mOnSurface)
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
visible: NetworkService.connectStatusSsid === modelData.ssid
|
visible: NetworkService.connectStatusSsid === modelData.ssid
|
||||||
&& NetworkService.connectStatus === "error" && NetworkService.connectError.length > 0
|
&& NetworkService.connectStatus === "error" && NetworkService.connectError.length > 0
|
||||||
text: NetworkService.connectError
|
text: NetworkService.connectError
|
||||||
color: Colors.mError
|
color: Color.mError
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -300,7 +300,7 @@ NLoader {
|
||||||
NBusyIndicator {
|
NBusyIndicator {
|
||||||
visible: NetworkService.connectingSsid === modelData.ssid
|
visible: NetworkService.connectingSsid === modelData.ssid
|
||||||
running: NetworkService.connectingSsid === modelData.ssid
|
running: NetworkService.connectingSsid === modelData.ssid
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
size: Style.baseWidgetSize * 0.7 * scaling
|
size: Style.baseWidgetSize * 0.7 * scaling
|
||||||
}
|
}
|
||||||
|
|
@ -321,7 +321,7 @@ NLoader {
|
||||||
text: "error"
|
text: "error"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mError
|
color: Color.mError
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -330,7 +330,7 @@ NLoader {
|
||||||
visible: modelData.connected
|
visible: modelData.connected
|
||||||
text: "connected"
|
text: "connected"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: modelData.connected ? Colors.mSurface : (networkMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface)
|
color: modelData.connected ? Color.mSurface : (networkMouseArea.containsMouse ? Color.mSurface : Color.mOnSurface)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -362,7 +362,7 @@ NLoader {
|
||||||
Layout.preferredHeight: modelData.ssid === passwordPromptSsid && showPasswordPrompt ? 60 : 0
|
Layout.preferredHeight: modelData.ssid === passwordPromptSsid && showPasswordPrompt ? 60 : 0
|
||||||
Layout.margins: Style.marginSmall * scaling
|
Layout.margins: Style.marginSmall * scaling
|
||||||
visible: modelData.ssid === passwordPromptSsid && showPasswordPrompt
|
visible: modelData.ssid === passwordPromptSsid && showPasswordPrompt
|
||||||
color: Colors.mSurfaceVariant
|
color: Color.mSurfaceVariant
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
@ -378,7 +378,7 @@ NLoader {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: Style.radiusTiny * scaling
|
radius: Style.radiusTiny * scaling
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.color: passwordInputField.activeFocus ? Colors.mPrimary : Colors.mOutline
|
border.color: passwordInputField.activeFocus ? Color.mPrimary : Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
|
|
||||||
TextInput {
|
TextInput {
|
||||||
|
|
@ -387,7 +387,7 @@ NLoader {
|
||||||
anchors.margins: Style.marginMedium * scaling
|
anchors.margins: Style.marginMedium * scaling
|
||||||
text: passwordInput
|
text: passwordInput
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
verticalAlignment: TextInput.AlignVCenter
|
verticalAlignment: TextInput.AlignVCenter
|
||||||
clip: true
|
clip: true
|
||||||
focus: true
|
focus: true
|
||||||
|
|
@ -414,7 +414,7 @@ NLoader {
|
||||||
Layout.preferredWidth: Style.baseWidgetSize * 2.5 * scaling
|
Layout.preferredWidth: Style.baseWidgetSize * 2.5 * scaling
|
||||||
Layout.preferredHeight: Style.barHeight * scaling
|
Layout.preferredHeight: Style.barHeight * scaling
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
|
|
||||||
Behavior on color {
|
Behavior on color {
|
||||||
ColorAnimation {
|
ColorAnimation {
|
||||||
|
|
@ -425,7 +425,7 @@ NLoader {
|
||||||
NText {
|
NText {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "Connect"
|
text: "Connect"
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -437,8 +437,8 @@ NLoader {
|
||||||
}
|
}
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onEntered: parent.color = Qt.darker(Colors.mPrimary, 1.1)
|
onEntered: parent.color = Qt.darker(Color.mPrimary, 1.1)
|
||||||
onExited: parent.color = Colors.mPrimary
|
onExited: parent.color = Color.mPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ Item {
|
||||||
property ListModel localWorkspaces: ListModel {}
|
property ListModel localWorkspaces: ListModel {}
|
||||||
property real masterProgress: 0.0
|
property real masterProgress: 0.0
|
||||||
property bool effectsActive: false
|
property bool effectsActive: false
|
||||||
property color effectColor: Colors.mPrimary
|
property color effectColor: Color.mPrimary
|
||||||
|
|
||||||
property int horizontalPadding: Math.round(16 * scaling)
|
property int horizontalPadding: Math.round(16 * scaling)
|
||||||
property int spacingBetweenPills: Math.round(8 * scaling)
|
property int spacingBetweenPills: Math.round(8 * scaling)
|
||||||
|
|
@ -70,7 +70,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function triggerUnifiedWave() {
|
function triggerUnifiedWave() {
|
||||||
effectColor = Colors.mPrimary
|
effectColor = Color.mPrimary
|
||||||
masterAnimation.restart()
|
masterAnimation.restart()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -106,7 +106,7 @@ Item {
|
||||||
const ws = localWorkspaces.get(i)
|
const ws = localWorkspaces.get(i)
|
||||||
if (ws.isFocused === true) {
|
if (ws.isFocused === true) {
|
||||||
root.triggerUnifiedWave()
|
root.triggerUnifiedWave()
|
||||||
root.workspaceChanged(ws.id, Colors.mPrimary)
|
root.workspaceChanged(ws.id, Color.mPrimary)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -119,12 +119,12 @@ Item {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
radius: Math.round(12 * scaling)
|
radius: Math.round(12 * scaling)
|
||||||
color: Colors.mSurfaceVariant
|
color: Color.mSurfaceVariant
|
||||||
border.color: Colors.mOutlineVariant
|
border.color: Color.mOutlineVariant
|
||||||
border.width: Math.max(1, Math.round(1 * scaling))
|
border.width: Math.max(1, Math.round(1 * scaling))
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
layer.effect: MultiEffect {
|
layer.effect: MultiEffect {
|
||||||
shadowColor: Colors.mShadow
|
shadowColor: Color.mShadow
|
||||||
shadowVerticalOffset: 0
|
shadowVerticalOffset: 0
|
||||||
shadowHorizontalOffset: 0
|
shadowHorizontalOffset: 0
|
||||||
shadowOpacity: 0.10
|
shadowOpacity: 0.10
|
||||||
|
|
@ -164,15 +164,15 @@ Item {
|
||||||
}
|
}
|
||||||
color: {
|
color: {
|
||||||
if (model.isFocused)
|
if (model.isFocused)
|
||||||
return Colors.mPrimary
|
return Color.mPrimary
|
||||||
if (model.isUrgent)
|
if (model.isUrgent)
|
||||||
return Colors.mError
|
return Color.mError
|
||||||
if (model.isActive || model.isOccupied)
|
if (model.isActive || model.isOccupied)
|
||||||
return Colors.mSecondary
|
return Color.mSecondary
|
||||||
if (model.isUrgent)
|
if (model.isUrgent)
|
||||||
return Colors.mError
|
return Color.mError
|
||||||
|
|
||||||
return Colors.mOutline
|
return Color.mOutline
|
||||||
}
|
}
|
||||||
scale: model.isFocused ? 1.0 : 0.9
|
scale: model.isFocused ? 1.0 : 0.9
|
||||||
z: 0
|
z: 0
|
||||||
|
|
|
||||||
|
|
@ -62,9 +62,9 @@ NLoader {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: calendarRect
|
id: calendarRect
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
width: 340 * scaling
|
width: 340 * scaling
|
||||||
height: 320 * scaling // Reduced height to eliminate bottom space
|
height: 320 * scaling // Reduced height to eliminate bottom space
|
||||||
|
|
@ -135,7 +135,7 @@ NLoader {
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
NIconButton {
|
NIconButton {
|
||||||
|
|
@ -173,7 +173,7 @@ NLoader {
|
||||||
let dayIndex = (firstDay + index) % 7
|
let dayIndex = (firstDay + index) % 7
|
||||||
return Qt.locale().dayName(dayIndex, Locale.ShortFormat)
|
return Qt.locale().dayName(dayIndex, Locale.ShortFormat)
|
||||||
}
|
}
|
||||||
color: Colors.mSecondary
|
color: Color.mSecondary
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
@ -211,12 +211,12 @@ NLoader {
|
||||||
width: (Style.baseWidgetSize * scaling)
|
width: (Style.baseWidgetSize * scaling)
|
||||||
height: (Style.baseWidgetSize * scaling)
|
height: (Style.baseWidgetSize * scaling)
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
color: model.today ? Colors.mPrimary : "transparent"
|
color: model.today ? Color.mPrimary : "transparent"
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: model.day
|
text: model.day
|
||||||
color: model.today ? Colors.onAccent : Colors.mOnSurface
|
color: model.today ? Color.onAccent : Color.mOnSurface
|
||||||
opacity: model.month === grid.month ? Style.opacityHeavy : Style.opacityLight
|
opacity: model.month === grid.month ? Style.opacityHeavy : Style.opacityLight
|
||||||
font.pointSize: (Style.fontSizeMedium * scaling)
|
font.pointSize: (Style.fontSizeMedium * scaling)
|
||||||
font.weight: model.today ? Style.fontWeightBold : Style.fontWeightRegular
|
font.weight: model.today ? Style.fontWeightBold : Style.fontWeightRegular
|
||||||
|
|
|
||||||
|
|
@ -67,9 +67,9 @@ NLoader {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: bgRect
|
id: bgRect
|
||||||
color: Colors.mSurfaceVariant
|
color: Color.mSurfaceVariant
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
border.color: Colors.mOutlineVariant
|
border.color: Color.mOutlineVariant
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
width: 500 * scaling
|
width: 500 * scaling
|
||||||
height: 900 * scaling
|
height: 900 * scaling
|
||||||
|
|
@ -114,7 +114,7 @@ NLoader {
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "DemoPanel"
|
text: "DemoPanel"
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|
@ -129,7 +129,7 @@ NLoader {
|
||||||
spacing: Style.marginLarge * scaling
|
spacing: Style.marginLarge * scaling
|
||||||
NText {
|
NText {
|
||||||
text: "Scaling"
|
text: "Scaling"
|
||||||
color: Colors.mSecondary
|
color: Color.mSecondary
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
}
|
}
|
||||||
NText {
|
NText {
|
||||||
|
|
@ -173,7 +173,7 @@ NLoader {
|
||||||
spacing: Style.marginLarge * scaling
|
spacing: Style.marginLarge * scaling
|
||||||
NText {
|
NText {
|
||||||
text: "NIconButton"
|
text: "NIconButton"
|
||||||
color: Colors.mSecondary
|
color: Color.mSecondary
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -194,7 +194,7 @@ NLoader {
|
||||||
spacing: Style.marginMedium * scaling
|
spacing: Style.marginMedium * scaling
|
||||||
NText {
|
NText {
|
||||||
text: "NToggle"
|
text: "NToggle"
|
||||||
color: Colors.mSecondary
|
color: Color.mSecondary
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -216,7 +216,7 @@ NLoader {
|
||||||
spacing: Style.marginMedium * scaling
|
spacing: Style.marginMedium * scaling
|
||||||
NText {
|
NText {
|
||||||
text: "NComboBox"
|
text: "NComboBox"
|
||||||
color: Colors.mSecondary
|
color: Color.mSecondary
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -269,7 +269,7 @@ NLoader {
|
||||||
spacing: Style.marginMedium * scaling
|
spacing: Style.marginMedium * scaling
|
||||||
NText {
|
NText {
|
||||||
text: "NTextInput"
|
text: "NTextInput"
|
||||||
color: Colors.mSecondary
|
color: Color.mSecondary
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -292,7 +292,7 @@ NLoader {
|
||||||
spacing: Style.marginMedium * scaling
|
spacing: Style.marginMedium * scaling
|
||||||
NText {
|
NText {
|
||||||
text: "NBusyIndicator"
|
text: "NBusyIndicator"
|
||||||
color: Colors.mSecondary
|
color: Color.mSecondary
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -308,7 +308,7 @@ NLoader {
|
||||||
spacing: Style.marginMedium * scaling
|
spacing: Style.marginMedium * scaling
|
||||||
NText {
|
NText {
|
||||||
text: "Brightness Control"
|
text: "Brightness Control"
|
||||||
color: Colors.mSecondary
|
color: Color.mSecondary
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -349,7 +349,7 @@ NLoader {
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: `Method: ${BrightnessService.currentMethod} | Available: ${BrightnessService.available}`
|
text: `Method: ${BrightnessService.currentMethod} | Available: ${BrightnessService.available}`
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ NLoader {
|
||||||
id: dockContainer
|
id: dockContainer
|
||||||
width: dock.width + 48 * scaling
|
width: dock.width + 48 * scaling
|
||||||
height: iconSize * 1.4 * scaling
|
height: iconSize * 1.4 * scaling
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
topLeftRadius: Style.radiusLarge * scaling
|
topLeftRadius: Style.radiusLarge * scaling
|
||||||
|
|
@ -194,7 +194,7 @@ NLoader {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: hoverBackground
|
id: hoverBackground
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: appButton.hovered ? Colors.mSurfaceVariant : "transparent"
|
color: appButton.hovered ? Color.mSurfaceVariant : "transparent"
|
||||||
radius: parent.radius
|
radius: parent.radius
|
||||||
opacity: appButton.hovered ? 0.8 : 0
|
opacity: appButton.hovered ? 0.8 : 0
|
||||||
|
|
||||||
|
|
@ -236,7 +236,7 @@ NLoader {
|
||||||
text: "question_mark"
|
text: "question_mark"
|
||||||
font.family: "Material Symbols Rounded"
|
font.family: "Material Symbols Rounded"
|
||||||
font.pointSize: iconSize * 0.7 * scaling
|
font.pointSize: iconSize * 0.7 * scaling
|
||||||
color: appButton.isActive ? Colors.mPrimary : Colors.mOnSurfaceVariant
|
color: appButton.isActive ? Color.mPrimary : Color.mOnSurfaceVariant
|
||||||
|
|
||||||
scale: appButton.hovered ? 1.1 : 1.0
|
scale: appButton.hovered ? 1.1 : 1.0
|
||||||
|
|
||||||
|
|
@ -291,7 +291,7 @@ NLoader {
|
||||||
visible: isActive
|
visible: isActive
|
||||||
width: iconSize * 0.75
|
width: iconSize * 0.75
|
||||||
height: 4 * scaling
|
height: 4 * scaling
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
radius: Style.radiusTiny
|
radius: Style.radiusTiny
|
||||||
anchors.top: parent.bottom
|
anchors.top: parent.bottom
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ WlSessionLock {
|
||||||
width: Math.random() * 4 + 2
|
width: Math.random() * 4 + 2
|
||||||
height: width
|
height: width
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: Qt.rgba(Colors.mPrimary.r, Colors.mPrimary.g, Colors.mPrimary.b, 0.3)
|
color: Qt.rgba(Color.mPrimary.r, Color.mPrimary.g, Color.mPrimary.b, 0.3)
|
||||||
x: Math.random() * parent.width
|
x: Math.random() * parent.width
|
||||||
y: Math.random() * parent.height
|
y: Math.random() * parent.height
|
||||||
|
|
||||||
|
|
@ -185,7 +185,7 @@ WlSessionLock {
|
||||||
font.pointSize: Style.fontSizeXXL * 6
|
font.pointSize: Style.fontSizeXXL * 6
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
font.letterSpacing: -2
|
font.letterSpacing: -2
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
||||||
SequentialAnimation on scale {
|
SequentialAnimation on scale {
|
||||||
|
|
@ -209,7 +209,7 @@ WlSessionLock {
|
||||||
font.family: "Inter"
|
font.family: "Inter"
|
||||||
font.pointSize: Style.fontSizeXL
|
font.pointSize: Style.fontSizeXL
|
||||||
font.weight: Font.Light
|
font.weight: Font.Light
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
width: timeText.width
|
width: timeText.width
|
||||||
}
|
}
|
||||||
|
|
@ -226,7 +226,7 @@ WlSessionLock {
|
||||||
height: 120 * scaling
|
height: 120 * scaling
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.color: Colors.mPrimary
|
border.color: Color.mPrimary
|
||||||
border.width: Math.max(1, Style.borderThick * scaling)
|
border.width: Math.max(1, Style.borderThick * scaling)
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
|
|
@ -237,7 +237,7 @@ WlSessionLock {
|
||||||
height: parent.height + 24 * scaling
|
height: parent.height + 24 * scaling
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.color: Qt.rgba(Colors.mPrimary.r, Colors.mPrimary.g, Colors.mPrimary.b, 0.3)
|
border.color: Qt.rgba(Color.mPrimary.r, Color.mPrimary.g, Color.mPrimary.b, 0.3)
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
z: -1
|
z: -1
|
||||||
|
|
||||||
|
|
@ -305,8 +305,8 @@ WlSessionLock {
|
||||||
id: terminalBackground
|
id: terminalBackground
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: Colors.applyOpacity(Colors.mSurface, "E6")
|
color: Color.applyOpacity(Color.mSurface, "E6")
|
||||||
border.color: Colors.mPrimary
|
border.color: Color.mPrimary
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
|
|
||||||
// Scanline effect
|
// Scanline effect
|
||||||
|
|
@ -315,7 +315,7 @@ WlSessionLock {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 1
|
height: 1
|
||||||
color: Colors.applyOpacity(Colors.mPrimary, "1A")
|
color: Color.applyOpacity(Color.mPrimary, "1A")
|
||||||
y: index * 10
|
y: index * 10
|
||||||
opacity: Style.opacityMedium
|
opacity: Style.opacityMedium
|
||||||
|
|
||||||
|
|
@ -337,7 +337,7 @@ WlSessionLock {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 40 * scaling
|
height: 40 * scaling
|
||||||
color: Colors.applyOpacity(Colors.mPrimary, "33")
|
color: Color.applyOpacity(Color.mPrimary, "33")
|
||||||
topLeftRadius: Style.radiusSmall * scaling
|
topLeftRadius: Style.radiusSmall * scaling
|
||||||
topRightRadius: Style.radiusSmall * scaling
|
topRightRadius: Style.radiusSmall * scaling
|
||||||
|
|
||||||
|
|
@ -348,7 +348,7 @@ WlSessionLock {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "SECURE TERMINAL"
|
text: "SECURE TERMINAL"
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
font.family: "DejaVu Sans Mono"
|
font.family: "DejaVu Sans Mono"
|
||||||
font.pointSize: Style.fontSizeLarge
|
font.pointSize: Style.fontSizeLarge
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
|
|
@ -374,7 +374,7 @@ WlSessionLock {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "root@noctalia:~$"
|
text: "root@noctalia:~$"
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
font.family: "DejaVu Sans Mono"
|
font.family: "DejaVu Sans Mono"
|
||||||
font.pointSize: Style.fontSizeLarge
|
font.pointSize: Style.fontSizeLarge
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
|
|
@ -383,7 +383,7 @@ WlSessionLock {
|
||||||
Text {
|
Text {
|
||||||
id: welcomeText
|
id: welcomeText
|
||||||
text: ""
|
text: ""
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
font.family: "DejaVu Sans Mono"
|
font.family: "DejaVu Sans Mono"
|
||||||
font.pointSize: Style.fontSizeLarge
|
font.pointSize: Style.fontSizeLarge
|
||||||
property int currentIndex: 0
|
property int currentIndex: 0
|
||||||
|
|
@ -412,7 +412,7 @@ WlSessionLock {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "root@noctalia:~$"
|
text: "root@noctalia:~$"
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
font.family: "DejaVu Sans Mono"
|
font.family: "DejaVu Sans Mono"
|
||||||
font.pointSize: Style.fontSizeLarge
|
font.pointSize: Style.fontSizeLarge
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
|
|
@ -420,7 +420,7 @@ WlSessionLock {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "sudo unlock-session"
|
text: "sudo unlock-session"
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
font.family: "DejaVu Sans Mono"
|
font.family: "DejaVu Sans Mono"
|
||||||
font.pointSize: Style.fontSizeLarge
|
font.pointSize: Style.fontSizeLarge
|
||||||
}
|
}
|
||||||
|
|
@ -433,7 +433,7 @@ WlSessionLock {
|
||||||
visible: false
|
visible: false
|
||||||
font.family: "DejaVu Sans Mono"
|
font.family: "DejaVu Sans Mono"
|
||||||
font.pointSize: Style.fontSizeLarge
|
font.pointSize: Style.fontSizeLarge
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
echoMode: TextInput.Password
|
echoMode: TextInput.Password
|
||||||
passwordCharacter: "*"
|
passwordCharacter: "*"
|
||||||
passwordMaskDelay: 0
|
passwordMaskDelay: 0
|
||||||
|
|
@ -460,7 +460,7 @@ WlSessionLock {
|
||||||
Text {
|
Text {
|
||||||
id: asterisksText
|
id: asterisksText
|
||||||
text: "*".repeat(passwordInput.text.length)
|
text: "*".repeat(passwordInput.text.length)
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
font.family: "DejaVu Sans Mono"
|
font.family: "DejaVu Sans Mono"
|
||||||
font.pointSize: Style.fontSizeLarge
|
font.pointSize: Style.fontSizeLarge
|
||||||
visible: passwordInput.activeFocus
|
visible: passwordInput.activeFocus
|
||||||
|
|
@ -487,7 +487,7 @@ WlSessionLock {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 8 * scaling
|
width: 8 * scaling
|
||||||
height: 20 * scaling
|
height: 20 * scaling
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
visible: passwordInput.activeFocus
|
visible: passwordInput.activeFocus
|
||||||
anchors.left: asterisksText.right
|
anchors.left: asterisksText.right
|
||||||
anchors.leftMargin: Style.marginTiniest * scaling
|
anchors.leftMargin: Style.marginTiniest * scaling
|
||||||
|
|
@ -510,7 +510,7 @@ WlSessionLock {
|
||||||
// Status messages
|
// Status messages
|
||||||
Text {
|
Text {
|
||||||
text: lock.authenticating ? "Authenticating..." : (lock.errorMessage !== "" ? "Authentication failed." : "")
|
text: lock.authenticating ? "Authenticating..." : (lock.errorMessage !== "" ? "Authentication failed." : "")
|
||||||
color: lock.authenticating ? Colors.mPrimary : (lock.errorMessage !== "" ? Colors.mError : "transparent")
|
color: lock.authenticating ? Color.mPrimary : (lock.errorMessage !== "" ? Color.mError : "transparent")
|
||||||
font.family: "DejaVu Sans Mono"
|
font.family: "DejaVu Sans Mono"
|
||||||
font.pointSize: Style.fontSizeLarge
|
font.pointSize: Style.fontSizeLarge
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -534,8 +534,8 @@ WlSessionLock {
|
||||||
width: 120 * scaling
|
width: 120 * scaling
|
||||||
height: 40 * scaling
|
height: 40 * scaling
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
color: executeButtonArea.containsMouse ? Colors.mPrimary : Colors.applyOpacity(Colors.mPrimary, "33")
|
color: executeButtonArea.containsMouse ? Color.mPrimary : Color.applyOpacity(Color.mPrimary, "33")
|
||||||
border.color: Colors.mPrimary
|
border.color: Color.mPrimary
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
enabled: !lock.authenticating
|
enabled: !lock.authenticating
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
|
|
@ -544,7 +544,7 @@ WlSessionLock {
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: lock.authenticating ? "EXECUTING" : "EXECUTE"
|
text: lock.authenticating ? "EXECUTING" : "EXECUTE"
|
||||||
color: executeButtonArea.containsMouse ? Colors.onAccent : Colors.mPrimary
|
color: executeButtonArea.containsMouse ? Color.onAccent : Color.mPrimary
|
||||||
font.family: "DejaVu Sans Mono"
|
font.family: "DejaVu Sans Mono"
|
||||||
font.pointSize: Style.fontSizeMedium
|
font.pointSize: Style.fontSizeMedium
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
|
|
@ -598,7 +598,7 @@ WlSessionLock {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: parent.radius
|
radius: parent.radius
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.color: Colors.applyOpacity(Colors.mPrimary, "4D")
|
border.color: Color.applyOpacity(Color.mPrimary, "4D")
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
z: -1
|
z: -1
|
||||||
|
|
||||||
|
|
@ -634,8 +634,8 @@ WlSessionLock {
|
||||||
width: 64 * scaling
|
width: 64 * scaling
|
||||||
height: 64 * scaling
|
height: 64 * scaling
|
||||||
radius: Style.radiusLarge * scaling
|
radius: Style.radiusLarge * scaling
|
||||||
color: Qt.rgba(Colors.mError.r, Colors.mError.g, Colors.mError.b, shutdownArea.containsMouse ? 0.9 : 0.2)
|
color: Qt.rgba(Color.mError.r, Color.mError.g, Color.mError.b, shutdownArea.containsMouse ? 0.9 : 0.2)
|
||||||
border.color: Colors.mError
|
border.color: Color.mError
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
|
|
||||||
// Glow effect
|
// Glow effect
|
||||||
|
|
@ -645,7 +645,7 @@ WlSessionLock {
|
||||||
height: parent.height + 10 * scaling
|
height: parent.height + 10 * scaling
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.color: Qt.rgba(Colors.mError.r, Colors.mError.g, Colors.mError.b, 0.3)
|
border.color: Qt.rgba(Color.mError.r, Color.mError.g, Color.mError.b, 0.3)
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
opacity: shutdownArea.containsMouse ? 1 : 0
|
opacity: shutdownArea.containsMouse ? 1 : 0
|
||||||
z: -1
|
z: -1
|
||||||
|
|
@ -674,7 +674,7 @@ WlSessionLock {
|
||||||
text: "power_settings_new"
|
text: "power_settings_new"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: shutdownArea.containsMouse ? Colors.onAccent : Colors.mError
|
color: shutdownArea.containsMouse ? Color.onAccent : Color.mError
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on color {
|
Behavior on color {
|
||||||
|
|
@ -691,8 +691,8 @@ WlSessionLock {
|
||||||
width: 64 * scaling
|
width: 64 * scaling
|
||||||
height: 64 * scaling
|
height: 64 * scaling
|
||||||
radius: Style.radiusLarge * scaling
|
radius: Style.radiusLarge * scaling
|
||||||
color: Qt.rgba(Colors.mPrimary.r, Colors.mPrimary.g, Colors.mPrimary.b, rebootArea.containsMouse ? 0.9 : 0.2)
|
color: Qt.rgba(Color.mPrimary.r, Color.mPrimary.g, Color.mPrimary.b, rebootArea.containsMouse ? 0.9 : 0.2)
|
||||||
border.color: Colors.mPrimary
|
border.color: Color.mPrimary
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
|
|
||||||
// Glow effect
|
// Glow effect
|
||||||
|
|
@ -702,7 +702,7 @@ WlSessionLock {
|
||||||
height: parent.height + 10 * scaling
|
height: parent.height + 10 * scaling
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.color: Qt.rgba(Colors.mPrimary.r, Colors.mPrimary.g, Colors.mPrimary.b, 0.3)
|
border.color: Qt.rgba(Color.mPrimary.r, Color.mPrimary.g, Color.mPrimary.b, 0.3)
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
opacity: rebootArea.containsMouse ? 1 : 0
|
opacity: rebootArea.containsMouse ? 1 : 0
|
||||||
z: -1
|
z: -1
|
||||||
|
|
@ -730,7 +730,7 @@ WlSessionLock {
|
||||||
text: "refresh"
|
text: "refresh"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: rebootArea.containsMouse ? Colors.onAccent : Colors.mPrimary
|
color: rebootArea.containsMouse ? Color.onAccent : Color.mPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on color {
|
Behavior on color {
|
||||||
|
|
@ -747,9 +747,8 @@ WlSessionLock {
|
||||||
width: 64 * scaling
|
width: 64 * scaling
|
||||||
height: 64 * scaling
|
height: 64 * scaling
|
||||||
radius: Style.radiusLarge * scaling
|
radius: Style.radiusLarge * scaling
|
||||||
color: Qt.rgba(Colors.mSecondary.r, Colors.mSecondary.g, Colors.mSecondary.b,
|
color: Qt.rgba(Color.mSecondary.r, Color.mSecondary.g, Color.mSecondary.b, logoutArea.containsMouse ? 0.9 : 0.2)
|
||||||
logoutArea.containsMouse ? 0.9 : 0.2)
|
border.color: Color.mSecondary
|
||||||
border.color: Colors.mSecondary
|
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
|
|
||||||
// Glow effect
|
// Glow effect
|
||||||
|
|
@ -759,7 +758,7 @@ WlSessionLock {
|
||||||
height: parent.height + 10 * scaling
|
height: parent.height + 10 * scaling
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.color: Qt.rgba(Colors.mSecondary.r, Colors.mSecondary.g, Colors.mSecondary.b, 0.3)
|
border.color: Qt.rgba(Color.mSecondary.r, Color.mSecondary.g, Color.mSecondary.b, 0.3)
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
opacity: logoutArea.containsMouse ? 1 : 0
|
opacity: logoutArea.containsMouse ? 1 : 0
|
||||||
z: -1
|
z: -1
|
||||||
|
|
@ -789,7 +788,7 @@ WlSessionLock {
|
||||||
text: "exit_to_app"
|
text: "exit_to_app"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: logoutArea.containsMouse ? Colors.onAccent : Colors.mSecondary
|
color: logoutArea.containsMouse ? Color.onAccent : Color.mSecondary
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on color {
|
Behavior on color {
|
||||||
|
|
|
||||||
|
|
@ -71,9 +71,9 @@ Variants {
|
||||||
height: Math.max(80 * scaling, contentColumn.implicitHeight + (Style.marginMedium * 2 * scaling))
|
height: Math.max(80 * scaling, contentColumn.implicitHeight + (Style.marginMedium * 2 * scaling))
|
||||||
clip: true
|
clip: true
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
border.color: Colors.mPrimary
|
border.color: Color.mPrimary
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
|
|
||||||
// Animation properties
|
// Animation properties
|
||||||
property real scaleValue: 0.8
|
property real scaleValue: 0.8
|
||||||
|
|
@ -141,14 +141,14 @@ Variants {
|
||||||
spacing: Style.marginSmall * scaling
|
spacing: Style.marginSmall * scaling
|
||||||
NText {
|
NText {
|
||||||
text: (model.appName || model.desktopEntry) || "Unknown App"
|
text: (model.appName || model.desktopEntry) || "Unknown App"
|
||||||
color: Colors.mSecondary
|
color: Color.mSecondary
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
}
|
}
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 6 * scaling
|
width: 6 * scaling
|
||||||
height: 6 * scaling
|
height: 6 * scaling
|
||||||
radius: Style.radiusTiny * scaling
|
radius: Style.radiusTiny * scaling
|
||||||
color: (model.urgency === NotificationUrgency.Critical) ? Colors.mError : (model.urgency === NotificationUrgency.Low) ? Colors.mOnSurface : Colors.mPrimary
|
color: (model.urgency === NotificationUrgency.Critical) ? Color.mError : (model.urgency === NotificationUrgency.Low) ? Color.mOnSurface : Color.mPrimary
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
|
|
@ -156,7 +156,7 @@ Variants {
|
||||||
}
|
}
|
||||||
NText {
|
NText {
|
||||||
text: NotificationService.formatTimestamp(model.timestamp)
|
text: NotificationService.formatTimestamp(model.timestamp)
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -165,7 +165,7 @@ Variants {
|
||||||
text: model.summary || "No summary"
|
text: model.summary || "No summary"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
width: 300 * scaling
|
width: 300 * scaling
|
||||||
maximumLineCount: 3
|
maximumLineCount: 3
|
||||||
|
|
@ -175,7 +175,7 @@ Variants {
|
||||||
NText {
|
NText {
|
||||||
text: model.body || ""
|
text: model.body || ""
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
width: 300 * scaling
|
width: 300 * scaling
|
||||||
maximumLineCount: 5
|
maximumLineCount: 5
|
||||||
|
|
|
||||||
|
|
@ -66,9 +66,9 @@ NLoader {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: notificationRect
|
id: notificationRect
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
radius: Style.radiusLarge * scaling
|
radius: Style.radiusLarge * scaling
|
||||||
border.color: Colors.mOutlineVariant
|
border.color: Color.mOutlineVariant
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
width: 400 * scaling
|
width: 400 * scaling
|
||||||
height: 500 * scaling
|
height: 500 * scaling
|
||||||
|
|
@ -119,14 +119,14 @@ NLoader {
|
||||||
text: "notifications"
|
text: "notifications"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Notification History"
|
text: "Notification History"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.bold: true
|
font.bold: true
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -163,21 +163,21 @@ NLoader {
|
||||||
text: "notifications_off"
|
text: "notifications_off"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "No notifications"
|
text: "No notifications"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Notifications will appear here when you receive them"
|
text: "Notifications will appear here when you receive them"
|
||||||
font.pointSize: Style.fontSizeNormal * scaling
|
font.pointSize: Style.fontSizeNormal * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -197,7 +197,7 @@ NLoader {
|
||||||
width: notificationList ? (notificationList.width - 20) : 380 * scaling
|
width: notificationList ? (notificationList.width - 20) : 380 * scaling
|
||||||
height: Math.max(80, notificationContent.height + 30)
|
height: Math.max(80, notificationContent.height + 30)
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: notificationMouseArea.containsMouse ? Colors.mPrimary : Colors.mSurfaceVariant
|
color: notificationMouseArea.containsMouse ? Color.mPrimary : Color.mSurfaceVariant
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors {
|
anchors {
|
||||||
|
|
@ -217,7 +217,7 @@ NLoader {
|
||||||
text: (summary || "No summary").substring(0, 100)
|
text: (summary || "No summary").substring(0, 100)
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
font.weight: Font.Medium
|
font.weight: Font.Medium
|
||||||
color: notificationMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface
|
color: notificationMouseArea.containsMouse ? Color.mSurface : Color.mOnSurface
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
width: parent.width - 60
|
width: parent.width - 60
|
||||||
maximumLineCount: 2
|
maximumLineCount: 2
|
||||||
|
|
@ -227,7 +227,7 @@ NLoader {
|
||||||
NText {
|
NText {
|
||||||
text: (body || "").substring(0, 150)
|
text: (body || "").substring(0, 150)
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: notificationMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface
|
color: notificationMouseArea.containsMouse ? Color.mSurface : Color.mOnSurface
|
||||||
wrapMode: Text.Wrap
|
wrapMode: Text.Wrap
|
||||||
width: parent.width - 60
|
width: parent.width - 60
|
||||||
maximumLineCount: 3
|
maximumLineCount: 3
|
||||||
|
|
@ -237,7 +237,7 @@ NLoader {
|
||||||
NText {
|
NText {
|
||||||
text: NotificationService.formatTimestamp(timestamp)
|
text: NotificationService.formatTimestamp(timestamp)
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: notificationMouseArea.containsMouse ? Colors.mSurface : Colors.mOnSurface
|
color: notificationMouseArea.containsMouse ? Color.mSurface : Color.mOnSurface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -199,9 +199,9 @@ NLoader {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: bgRect
|
id: bgRect
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
radius: Style.radiusLarge * scaling
|
radius: Style.radiusLarge * scaling
|
||||||
border.color: Colors.mOutlineVariant
|
border.color: Color.mOutlineVariant
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
width: Math.max(screen.width * 0.5, 1280) * scaling
|
width: Math.max(screen.width * 0.5, 1280) * scaling
|
||||||
|
|
@ -247,8 +247,8 @@ NLoader {
|
||||||
id: sidebar
|
id: sidebar
|
||||||
Layout.preferredWidth: Style.sliderWidth * 1.3 * scaling
|
Layout.preferredWidth: Style.sliderWidth * 1.3 * scaling
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
color: Colors.mSurfaceVariant
|
color: Color.mSurfaceVariant
|
||||||
border.color: Colors.mOutlineVariant
|
border.color: Color.mOutlineVariant
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
|
|
||||||
|
|
@ -265,10 +265,10 @@ NLoader {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 32 * scaling
|
height: 32 * scaling
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
color: selected ? Colors.mPrimary : (tabItem.hovering ? Colors.mTertiary : "transparent")
|
color: selected ? Color.mPrimary : (tabItem.hovering ? Color.mTertiary : "transparent")
|
||||||
readonly property bool selected: index === currentTabIndex
|
readonly property bool selected: index === currentTabIndex
|
||||||
property bool hovering: false
|
property bool hovering: false
|
||||||
property color tabTextColor: selected ? Colors.mOnPrimary : (tabItem.hovering ? Colors.mOnTertiary : Colors.mOnSurface)
|
property color tabTextColor: selected ? Color.mOnPrimary : (tabItem.hovering ? Color.mOnTertiary : Color.mOnSurface)
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.leftMargin: Style.marginSmall * scaling
|
anchors.leftMargin: Style.marginSmall * scaling
|
||||||
|
|
@ -313,8 +313,8 @@ NLoader {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: Colors.mSurfaceVariant
|
color: Color.mSurfaceVariant
|
||||||
border.color: Colors.mOutlineVariant
|
border.color: Color.mOutlineVariant
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
|
@ -334,7 +334,7 @@ NLoader {
|
||||||
text: panel.tabsModel[currentTabIndex].label
|
text: panel.tabsModel[currentTabIndex].label
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
NIconButton {
|
NIconButton {
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ ColumnLayout {
|
||||||
text: "Noctalia: quiet by design"
|
text: "Noctalia: quiet by design"
|
||||||
font.pointSize: Style.fontSizeXXL * scaling
|
font.pointSize: Style.fontSizeXXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
@ -68,7 +68,7 @@ ColumnLayout {
|
||||||
NText {
|
NText {
|
||||||
text: "It may just be another quickshell setup but it won't get in your way."
|
text: "It may just be another quickshell setup but it won't get in your way."
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
Layout.bottomMargin: Style.marginLarge * scaling
|
Layout.bottomMargin: Style.marginLarge * scaling
|
||||||
}
|
}
|
||||||
|
|
@ -81,25 +81,25 @@ ColumnLayout {
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Latest Version:"
|
text: "Latest Version:"
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: root.latestVersion
|
text: root.latestVersion
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Installed Version:"
|
text: "Installed Version:"
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: root.currentVersion
|
text: root.currentVersion
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -110,8 +110,8 @@ ColumnLayout {
|
||||||
Layout.preferredWidth: updateText.implicitWidth + 46 * scaling
|
Layout.preferredWidth: updateText.implicitWidth + 46 * scaling
|
||||||
Layout.preferredHeight: Style.barHeight * scaling
|
Layout.preferredHeight: Style.barHeight * scaling
|
||||||
radius: Style.radiusLarge * scaling
|
radius: Style.radiusLarge * scaling
|
||||||
color: updateArea.containsMouse ? Colors.mPrimary : "transparent"
|
color: updateArea.containsMouse ? Color.mPrimary : "transparent"
|
||||||
border.color: Colors.mPrimary
|
border.color: Color.mPrimary
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
visible: {
|
visible: {
|
||||||
if (root.currentVersion === "Unknown" || root.latestVersion === "Unknown")
|
if (root.currentVersion === "Unknown" || root.latestVersion === "Unknown")
|
||||||
|
|
@ -139,14 +139,14 @@ ColumnLayout {
|
||||||
text: "system_update"
|
text: "system_update"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
color: updateArea.containsMouse ? Colors.mSurface : Colors.mPrimary
|
color: updateArea.containsMouse ? Color.mSurface : Color.mPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
id: updateText
|
id: updateText
|
||||||
text: "Download latest release"
|
text: "Download latest release"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
color: updateArea.containsMouse ? Colors.mSurface : Colors.mPrimary
|
color: updateArea.containsMouse ? Color.mSurface : Color.mPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -172,7 +172,7 @@ ColumnLayout {
|
||||||
text: `Shout-out to our ${root.contributors.length} awesome contributors!`
|
text: `Shout-out to our ${root.contributors.length} awesome contributors!`
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.alignment: Qt.AlignCenter
|
Layout.alignment: Qt.AlignCenter
|
||||||
Layout.topMargin: Style.marginLarge * 2
|
Layout.topMargin: Style.marginLarge * 2
|
||||||
}
|
}
|
||||||
|
|
@ -200,7 +200,7 @@ ColumnLayout {
|
||||||
width: contributorsGrid.cellWidth - Style.marginLarge * scaling
|
width: contributorsGrid.cellWidth - Style.marginLarge * scaling
|
||||||
height: contributorsGrid.cellHeight - Style.marginTiny * scaling
|
height: contributorsGrid.cellHeight - Style.marginTiny * scaling
|
||||||
radius: Style.radiusLarge * scaling
|
radius: Style.radiusLarge * scaling
|
||||||
color: contributorArea.containsMouse ? Colors.mTertiary : "transparent"
|
color: contributorArea.containsMouse ? Color.mTertiary : "transparent"
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
@ -217,7 +217,7 @@ ColumnLayout {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: Style.marginTiny * scaling
|
anchors.margins: Style.marginTiny * scaling
|
||||||
fallbackIcon: "person"
|
fallbackIcon: "person"
|
||||||
borderColor: Colors.mPrimary
|
borderColor: Color.mPrimary
|
||||||
borderWidth: Math.max(1, Style.borderMedium * scaling)
|
borderWidth: Math.max(1, Style.borderMedium * scaling)
|
||||||
imageRadius: width * 0.5
|
imageRadius: width * 0.5
|
||||||
}
|
}
|
||||||
|
|
@ -231,7 +231,7 @@ ColumnLayout {
|
||||||
NText {
|
NText {
|
||||||
text: modelData.login || "Unknown"
|
text: modelData.login || "Unknown"
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: contributorArea.containsMouse ? Colors.mSurface : Colors.mOnSurface
|
color: contributorArea.containsMouse ? Color.mSurface : Color.mOnSurface
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -240,7 +240,7 @@ ColumnLayout {
|
||||||
text: (modelData.contributions || 0) + " " + ((modelData.contributions
|
text: (modelData.contributions || 0) + " " + ((modelData.contributions
|
||||||
|| 0) === 1 ? "commit" : "commits")
|
|| 0) === 1 ? "commit" : "commits")
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: contributorArea.containsMouse ? Colors.mSurface : Colors.mOnSurface
|
color: contributorArea.containsMouse ? Color.mSurface : Color.mOnSurface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ ColumnLayout {
|
||||||
text: "Audio"
|
text: "Audio"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -69,13 +69,13 @@ ColumnLayout {
|
||||||
NText {
|
NText {
|
||||||
text: "Master Volume"
|
text: "Master Volume"
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "System-wide volume level"
|
text: "System-wide volume level"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -109,7 +109,7 @@ ColumnLayout {
|
||||||
NText {
|
NText {
|
||||||
text: Math.floor(AudioService.volume * 100) + "%"
|
text: Math.floor(AudioService.volume * 100) + "%"
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -148,7 +148,7 @@ ColumnLayout {
|
||||||
text: "Audio Devices"
|
text: "Audio Devices"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -167,13 +167,13 @@ ColumnLayout {
|
||||||
text: "Output Device"
|
text: "Output Device"
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Select the desired audio output device"
|
text: "Select the desired audio output device"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -206,13 +206,13 @@ ColumnLayout {
|
||||||
text: "Input Device"
|
text: "Input Device"
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Select desired audio input device"
|
text: "Select desired audio input device"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -246,7 +246,7 @@ ColumnLayout {
|
||||||
text: "Audio Visualizer"
|
text: "Audio Visualizer"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ ColumnLayout {
|
||||||
text: "Components"
|
text: "Components"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NToggle {
|
NToggle {
|
||||||
|
|
@ -51,7 +51,7 @@ ColumnLayout {
|
||||||
|
|
||||||
NToggle {
|
NToggle {
|
||||||
label: "Show System Info"
|
label: "Show System Info"
|
||||||
description: "Display system information (CPU, RAM, Temperature)"
|
description: "Display system statistics (CPU, RAM, Temperature)"
|
||||||
checked: Settings.data.bar.showSystemInfo
|
checked: Settings.data.bar.showSystemInfo
|
||||||
onToggled: checked => {
|
onToggled: checked => {
|
||||||
Settings.data.bar.showSystemInfo = checked
|
Settings.data.bar.showSystemInfo = checked
|
||||||
|
|
@ -66,6 +66,24 @@ ColumnLayout {
|
||||||
Settings.data.bar.showMedia = checked
|
Settings.data.bar.showMedia = checked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NToggle {
|
||||||
|
label: "Show Notifications History"
|
||||||
|
description: "Display a shortcut to the notifications history"
|
||||||
|
checked: Settings.data.bar.showNotificationsHistory
|
||||||
|
onToggled: checked => {
|
||||||
|
Settings.data.bar.showNotificationsHistory = checked
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
NToggle {
|
||||||
|
label: "Show Applications Tray"
|
||||||
|
description: "Display the applications tray"
|
||||||
|
checked: Settings.data.bar.showTray
|
||||||
|
onToggled: checked => {
|
||||||
|
Settings.data.bar.showTray = checked
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,13 +31,13 @@ Item {
|
||||||
text: "Brightness Settings"
|
text: "Brightness Settings"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Configure brightness controls and monitor settings."
|
text: "Configure brightness controls and monitor settings."
|
||||||
font.pointSize: Style.fontSize * scaling
|
font.pointSize: Style.fontSize * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bar Visibility Section
|
// Bar Visibility Section
|
||||||
|
|
@ -50,15 +50,15 @@ Item {
|
||||||
text: "Bar Integration"
|
text: "Bar Integration"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NToggle {
|
NToggle {
|
||||||
label: "Show Brightness Icon"
|
label: "Show Brightness Icon"
|
||||||
description: "Display the brightness control icon in the top bar"
|
description: "Display the brightness control icon in the top bar"
|
||||||
checked: !Settings.data.bar.hideBrightness
|
checked: Settings.data.bar.showBrightness
|
||||||
onToggled: checked => {
|
onToggled: checked => {
|
||||||
Settings.data.bar.hideBrightness = !checked
|
Settings.data.bar.showBrightness = checked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -78,13 +78,13 @@ Item {
|
||||||
text: "Brightness Step Size"
|
text: "Brightness Step Size"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Adjust the step size for brightness changes (scroll wheel, keyboard shortcuts)"
|
text: "Adjust the step size for brightness changes (scroll wheel, keyboard shortcuts)"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -109,7 +109,7 @@ Item {
|
||||||
NText {
|
NText {
|
||||||
text: Settings.data.brightness.brightnessStep + "%"
|
text: Settings.data.brightness.brightnessStep + "%"
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
}
|
}
|
||||||
|
|
@ -131,13 +131,13 @@ Item {
|
||||||
text: "Monitor Brightness Overview"
|
text: "Monitor Brightness Overview"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Current brightness levels for all detected monitors"
|
text: "Current brightness levels for all detected monitors"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -146,8 +146,8 @@ Item {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
implicitHeight: contentCol.implicitHeight + Style.marginXL * 2 * scaling
|
implicitHeight: contentCol.implicitHeight + Style.marginXL * 2 * scaling
|
||||||
|
|
||||||
|
|
@ -165,7 +165,7 @@ Item {
|
||||||
text: "Primary Monitor"
|
text: "Primary Monitor"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mSecondary
|
color: Color.mSecondary
|
||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
|
|
@ -175,7 +175,7 @@ Item {
|
||||||
NText {
|
NText {
|
||||||
text: BrightnessService.currentMethod === "ddcutil" ? "External (DDC)" : "Internal"
|
text: BrightnessService.currentMethod === "ddcutil" ? "External (DDC)" : "Internal"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -187,7 +187,7 @@ Item {
|
||||||
NText {
|
NText {
|
||||||
text: "Brightness:"
|
text: "Brightness:"
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NSlider {
|
NSlider {
|
||||||
|
|
@ -208,7 +208,7 @@ Item {
|
||||||
text: BrightnessService.available ? Math.round(BrightnessService.brightness) + "%" : "N/A"
|
text: BrightnessService.available ? Math.round(BrightnessService.brightness) + "%" : "N/A"
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: BrightnessService.available ? Colors.mPrimary : Colors.mOnSurfaceVariant
|
color: BrightnessService.available ? Color.mPrimary : Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -220,13 +220,13 @@ Item {
|
||||||
NText {
|
NText {
|
||||||
text: "Method:"
|
text: "Method:"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: BrightnessService.currentMethod || "Unknown"
|
text: BrightnessService.currentMethod || "Unknown"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -237,7 +237,7 @@ Item {
|
||||||
NText {
|
NText {
|
||||||
text: BrightnessService.available ? "Available" : "Unavailable"
|
text: BrightnessService.available ? "Available" : "Unavailable"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: BrightnessService.available ? Colors.mPrimary : Colors.mError
|
color: BrightnessService.available ? Color.mPrimary : Color.mError
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -152,14 +152,14 @@ ColumnLayout {
|
||||||
text: "Predefined Color Schemes"
|
text: "Predefined Color Schemes"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "These color schemes only apply when 'Use Matugen' is disabled. When enabled, Matugen will generate colors based on your wallpaper instead."
|
text: "These color schemes only apply when 'Use Matugen' is disabled. When enabled, Matugen will generate colors based on your wallpaper instead."
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
|
|
@ -190,7 +190,7 @@ ColumnLayout {
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: getSchemeColor(modelData, "mSurface")
|
color: getSchemeColor(modelData, "mSurface")
|
||||||
border.width: Math.max(1, Style.borderThick * scaling)
|
border.width: Math.max(1, Style.borderThick * scaling)
|
||||||
border.color: Settings.data.colorSchemes.predefinedScheme === modelData ? Colors.mPrimary : Colors.mOutline
|
border.color: Settings.data.colorSchemes.predefinedScheme === modelData ? Color.mPrimary : Color.mOutline
|
||||||
scale: root.cardScaleLow
|
scale: root.cardScaleLow
|
||||||
|
|
||||||
// Mouse area for selection
|
// Mouse area for selection
|
||||||
|
|
@ -285,14 +285,14 @@ ColumnLayout {
|
||||||
width: 24 * scaling
|
width: 24 * scaling
|
||||||
height: 24 * scaling
|
height: 24 * scaling
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "✓"
|
text: "✓"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnPrimary
|
color: Color.mOnPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,13 +45,13 @@ Item {
|
||||||
text: "Per‑monitor configuration"
|
text: "Per‑monitor configuration"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "By default, bars and notifications are shown on all displays. Select one or more below to narrow your view."
|
text: "By default, bars and notifications are shown on all displays. Select one or more below to narrow your view."
|
||||||
font.pointSize: Style.fontSize * scaling
|
font.pointSize: Style.fontSize * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
}
|
}
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
|
|
@ -59,8 +59,8 @@ Item {
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
implicitHeight: contentCol.implicitHeight + Style.marginXL * 2 * scaling
|
implicitHeight: contentCol.implicitHeight + Style.marginXL * 2 * scaling
|
||||||
|
|
||||||
|
|
@ -74,13 +74,13 @@ Item {
|
||||||
text: (modelData.name || "Unknown")
|
text: (modelData.name || "Unknown")
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mSecondary
|
color: Color.mSecondary
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: `Resolution: ${modelData.width}x${modelData.height} - Position: (${modelData.x}, ${modelData.y})`
|
text: `Resolution: ${modelData.width}x${modelData.height} - Position: (${modelData.x}, ${modelData.y})`
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ ColumnLayout {
|
||||||
text: "General Settings"
|
text: "General Settings"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
// Profile section
|
// Profile section
|
||||||
|
|
@ -56,7 +56,7 @@ ColumnLayout {
|
||||||
height: 64 * scaling
|
height: 64 * scaling
|
||||||
imagePath: Settings.data.general.avatarImage
|
imagePath: Settings.data.general.avatarImage
|
||||||
fallbackIcon: "person"
|
fallbackIcon: "person"
|
||||||
borderColor: Colors.mPrimary
|
borderColor: Color.mPrimary
|
||||||
borderWidth: Math.max(1, Style.borderMedium)
|
borderWidth: Math.max(1, Style.borderMedium)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -88,7 +88,7 @@ ColumnLayout {
|
||||||
text: "User Interface"
|
text: "User Interface"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ ColumnLayout {
|
||||||
text: "Interfaces"
|
text: "Interfaces"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NToggle {
|
NToggle {
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ ColumnLayout {
|
||||||
text: "Recording"
|
text: "Recording"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -88,7 +88,7 @@ ColumnLayout {
|
||||||
text: "Video Settings"
|
text: "Video Settings"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -216,7 +216,7 @@ ColumnLayout {
|
||||||
text: "Audio Settings"
|
text: "Audio Settings"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ ColumnLayout {
|
||||||
text: "Location"
|
text: "Location"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -74,7 +74,7 @@ ColumnLayout {
|
||||||
text: "Time Format"
|
text: "Time Format"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -121,7 +121,7 @@ ColumnLayout {
|
||||||
text: "Weather"
|
text: "Weather"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,15 +33,15 @@ Item {
|
||||||
text: "Current Wallpaper"
|
text: "Current Wallpaper"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 120 * scaling
|
Layout.preferredHeight: 120 * scaling
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
|
@ -51,7 +51,7 @@ Item {
|
||||||
anchors.margins: Style.marginSmall * scaling
|
anchors.margins: Style.marginSmall * scaling
|
||||||
imagePath: WallpapersService.currentWallpaper
|
imagePath: WallpapersService.currentWallpaper
|
||||||
fallbackIcon: "image"
|
fallbackIcon: "image"
|
||||||
borderColor: Colors.mOutline
|
borderColor: Color.mOutline
|
||||||
borderWidth: Math.max(1, Style.borderThin * scaling)
|
borderWidth: Math.max(1, Style.borderThin * scaling)
|
||||||
imageRadius: Style.radiusMedium * scaling
|
imageRadius: Style.radiusMedium * scaling
|
||||||
}
|
}
|
||||||
|
|
@ -74,12 +74,12 @@ Item {
|
||||||
text: "Wallpaper Selector"
|
text: "Wallpaper Selector"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Click on a wallpaper to set it as your current wallpaper"
|
text: "Click on a wallpaper to set it as your current wallpaper"
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -87,7 +87,7 @@ Item {
|
||||||
NText {
|
NText {
|
||||||
text: Settings.data.wallpaper.swww.enabled ? "Wallpapers will change with " + Settings.data.wallpaper.swww.transitionType
|
text: Settings.data.wallpaper.swww.enabled ? "Wallpapers will change with " + Settings.data.wallpaper.swww.transitionType
|
||||||
+ " transition" : "Wallpapers will change instantly"
|
+ " transition" : "Wallpapers will change instantly"
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
visible: Settings.data.wallpaper.swww.enabled
|
visible: Settings.data.wallpaper.swww.enabled
|
||||||
}
|
}
|
||||||
|
|
@ -141,8 +141,8 @@ Item {
|
||||||
width: wallpaperGridView.itemSize
|
width: wallpaperGridView.itemSize
|
||||||
height: Math.floor(wallpaperGridView.itemSize * 0.67)
|
height: Math.floor(wallpaperGridView.itemSize * 0.67)
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: isSelected ? Colors.mPrimary : Colors.mSurface
|
color: isSelected ? Color.mPrimary : Color.mSurface
|
||||||
border.color: isSelected ? Colors.mSecondary : Colors.mOutline
|
border.color: isSelected ? Color.mSecondary : Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
|
@ -163,8 +163,8 @@ Item {
|
||||||
width: 20 * scaling
|
width: 20 * scaling
|
||||||
height: 20 * scaling
|
height: 20 * scaling
|
||||||
radius: width / 2
|
radius: width / 2
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
visible: isSelected
|
visible: isSelected
|
||||||
|
|
||||||
|
|
@ -173,14 +173,14 @@ Item {
|
||||||
text: "check"
|
text: "check"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnPrimary
|
color: Color.mOnPrimary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hover effect
|
// Hover effect
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
opacity: mouseArea.containsMouse ? 0.1 : 0
|
opacity: mouseArea.containsMouse ? 0.1 : 0
|
||||||
radius: parent.radius
|
radius: parent.radius
|
||||||
|
|
||||||
|
|
@ -206,9 +206,9 @@ Item {
|
||||||
// Empty state
|
// Empty state
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
visible: WallpapersService.wallpaperList.length === 0 && !WallpapersService.scanning
|
visible: WallpapersService.wallpaperList.length === 0 && !WallpapersService.scanning
|
||||||
|
|
||||||
|
|
@ -220,20 +220,20 @@ Item {
|
||||||
text: "folder_open"
|
text: "folder_open"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeLarge * scaling
|
font.pointSize: Style.fontSizeLarge * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "No wallpapers found"
|
text: "No wallpapers found"
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Make sure your wallpaper directory is configured and contains image files"
|
text: "Make sure your wallpaper directory is configured and contains image files"
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
Layout.preferredWidth: Style.sliderWidth * 1.5 * scaling
|
Layout.preferredWidth: Style.sliderWidth * 1.5 * scaling
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ ColumnLayout {
|
||||||
text: "Directory"
|
text: "Directory"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -79,7 +79,7 @@ ColumnLayout {
|
||||||
text: "Automation"
|
text: "Automation"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -102,13 +102,13 @@ ColumnLayout {
|
||||||
NText {
|
NText {
|
||||||
text: "Wallpaper Interval"
|
text: "Wallpaper Interval"
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "How often to change wallpapers automatically (in seconds)"
|
text: "How often to change wallpapers automatically (in seconds)"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -128,7 +128,7 @@ ColumnLayout {
|
||||||
stepSize: 10
|
stepSize: 10
|
||||||
value: Settings.data.wallpaper.randomInterval
|
value: Settings.data.wallpaper.randomInterval
|
||||||
onPressedChanged: Settings.data.wallpaper.randomInterval = Math.round(value)
|
onPressedChanged: Settings.data.wallpaper.randomInterval = Math.round(value)
|
||||||
cutoutColor: Colors.mSurface
|
cutoutColor: Color.mSurface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -149,7 +149,7 @@ ColumnLayout {
|
||||||
text: "SWWW"
|
text: "SWWW"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
Layout.bottomMargin: Style.marginSmall * scaling
|
Layout.bottomMargin: Style.marginSmall * scaling
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -275,13 +275,13 @@ ColumnLayout {
|
||||||
NText {
|
NText {
|
||||||
text: "Transition FPS"
|
text: "Transition FPS"
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Frames per second for transition animations"
|
text: "Frames per second for transition animations"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -301,7 +301,7 @@ ColumnLayout {
|
||||||
stepSize: 5
|
stepSize: 5
|
||||||
value: Settings.data.wallpaper.swww.transitionFps
|
value: Settings.data.wallpaper.swww.transitionFps
|
||||||
onPressedChanged: Settings.data.wallpaper.swww.transitionFps = Math.round(value)
|
onPressedChanged: Settings.data.wallpaper.swww.transitionFps = Math.round(value)
|
||||||
cutoutColor: Colors.mSurface
|
cutoutColor: Color.mSurface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -314,13 +314,13 @@ ColumnLayout {
|
||||||
NText {
|
NText {
|
||||||
text: "Transition Duration"
|
text: "Transition Duration"
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: "Duration of transition animations in seconds"
|
text: "Duration of transition animations in seconds"
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -340,7 +340,7 @@ ColumnLayout {
|
||||||
stepSize: 0.05
|
stepSize: 0.05
|
||||||
value: Settings.data.wallpaper.swww.transitionDuration
|
value: Settings.data.wallpaper.swww.transitionDuration
|
||||||
onPressedChanged: Settings.data.wallpaper.swww.transitionDuration = value
|
onPressedChanged: Settings.data.wallpaper.swww.transitionDuration = value
|
||||||
cutoutColor: Colors.mSurface
|
cutoutColor: Color.mSurface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,12 +41,12 @@ NBox {
|
||||||
text: "album"
|
text: "album"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXXL * 2.5 * scaling
|
font.pointSize: Style.fontSizeXXL * 2.5 * scaling
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
NText {
|
NText {
|
||||||
text: "No media player detected"
|
text: "No media player detected"
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -77,7 +77,7 @@ NBox {
|
||||||
// implicitWidth: 120 * scaling
|
// implicitWidth: 120 * scaling
|
||||||
// implicitHeight: 30 * scaling
|
// implicitHeight: 30 * scaling
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.color: playerSelector.activeFocus ? Colors.mTertiary : Colors.mOutline
|
border.color: playerSelector.activeFocus ? Color.mTertiary : Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
}
|
}
|
||||||
|
|
@ -88,7 +88,7 @@ NBox {
|
||||||
rightPadding: playerSelector.indicator.width + playerSelector.spacing
|
rightPadding: playerSelector.indicator.width + playerSelector.spacing
|
||||||
text: playerSelector.displayText
|
text: playerSelector.displayText
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
|
|
@ -99,7 +99,7 @@ NBox {
|
||||||
text: "arrow_drop_down"
|
text: "arrow_drop_down"
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
horizontalAlignment: Text.AlignRight
|
horizontalAlignment: Text.AlignRight
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -120,8 +120,8 @@ NBox {
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
radius: Style.radiusTiny * scaling
|
radius: Style.radiusTiny * scaling
|
||||||
}
|
}
|
||||||
|
|
@ -132,7 +132,7 @@ NBox {
|
||||||
contentItem: NText {
|
contentItem: NText {
|
||||||
text: modelData.identity
|
text: modelData.identity
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: highlighted ? Colors.mSurface : Colors.mOnSurface
|
color: highlighted ? Color.mSurface : Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
|
|
@ -140,7 +140,7 @@ NBox {
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
width: popup.width - Style.marginSmall * scaling * 2
|
width: popup.width - Style.marginSmall * scaling * 2
|
||||||
color: highlighted ? Colors.mTertiary : "transparent"
|
color: highlighted ? Color.mTertiary : "transparent"
|
||||||
radius: Style.radiusTiny * scaling
|
radius: Style.radiusTiny * scaling
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -161,8 +161,8 @@ NBox {
|
||||||
width: 90 * scaling
|
width: 90 * scaling
|
||||||
height: 90 * scaling
|
height: 90 * scaling
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: trackArt.visible ? Colors.mPrimary : "transparent"
|
color: trackArt.visible ? Color.mPrimary : "transparent"
|
||||||
border.color: trackArt.visible ? Colors.mOutline : "transparent"
|
border.color: trackArt.visible ? Color.mOutline : "transparent"
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
|
@ -174,7 +174,7 @@ NBox {
|
||||||
anchors.margins: Style.marginTiny * scaling
|
anchors.margins: Style.marginTiny * scaling
|
||||||
imagePath: MediaService.trackArtUrl
|
imagePath: MediaService.trackArtUrl
|
||||||
fallbackIcon: "music_note"
|
fallbackIcon: "music_note"
|
||||||
borderColor: Colors.mOutline
|
borderColor: Color.mOutline
|
||||||
borderWidth: Math.max(1, Style.borderThin * scaling)
|
borderWidth: Math.max(1, Style.borderThin * scaling)
|
||||||
imageRadius: width * 0.5
|
imageRadius: width * 0.5
|
||||||
}
|
}
|
||||||
|
|
@ -183,7 +183,7 @@ NBox {
|
||||||
NText {
|
NText {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: "album"
|
text: "album"
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeLarge * 12 * scaling
|
font.pointSize: Style.fontSizeLarge * 12 * scaling
|
||||||
visible: !trackArt.visible
|
visible: !trackArt.visible
|
||||||
|
|
@ -210,7 +210,7 @@ NBox {
|
||||||
NText {
|
NText {
|
||||||
visible: MediaService.trackArtist !== ""
|
visible: MediaService.trackArtist !== ""
|
||||||
text: MediaService.trackArtist
|
text: MediaService.trackArtist
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -219,7 +219,7 @@ NBox {
|
||||||
NText {
|
NText {
|
||||||
visible: MediaService.trackAlbum !== ""
|
visible: MediaService.trackAlbum !== ""
|
||||||
text: MediaService.trackAlbum
|
text: MediaService.trackAlbum
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
@ -235,7 +235,7 @@ NBox {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 4 * scaling
|
height: 4 * scaling
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
property real progressRatio: {
|
property real progressRatio: {
|
||||||
|
|
@ -250,7 +250,7 @@ NBox {
|
||||||
width: progressBarBackground.progressRatio * parent.width
|
width: progressBarBackground.progressRatio * parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
radius: parent.radius
|
radius: parent.radius
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
|
|
||||||
Behavior on width {
|
Behavior on width {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
|
|
@ -266,8 +266,8 @@ NBox {
|
||||||
width: 16 * scaling
|
width: 16 * scaling
|
||||||
height: 16 * scaling
|
height: 16 * scaling
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1 * Style.borderMedium * scaling)
|
border.width: Math.max(1 * Style.borderMedium * scaling)
|
||||||
x: Math.max(0, Math.min(parent.width - width, progressFill.width - width / 2))
|
x: Math.max(0, Math.min(parent.width - width, progressFill.width - width / 2))
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
@ -343,7 +343,7 @@ NBox {
|
||||||
width: 300 * scaling
|
width: 300 * scaling
|
||||||
height: 80 * scaling
|
height: 80 * scaling
|
||||||
values: CavaService.values
|
values: CavaService.values
|
||||||
fillColor: Colors.mOnSurface
|
fillColor: Color.mOnSurface
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ NBox {
|
||||||
height: Style.baseWidgetSize * 1.25 * scaling
|
height: Style.baseWidgetSize * 1.25 * scaling
|
||||||
imagePath: Settings.data.general.avatarImage
|
imagePath: Settings.data.general.avatarImage
|
||||||
fallbackIcon: "person"
|
fallbackIcon: "person"
|
||||||
borderColor: Colors.mPrimary
|
borderColor: Color.mPrimary
|
||||||
borderWidth: Math.max(1, Style.borderMedium * scaling)
|
borderWidth: Math.max(1, Style.borderMedium * scaling)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -46,7 +46,7 @@ NBox {
|
||||||
}
|
}
|
||||||
NText {
|
NText {
|
||||||
text: `System Uptime: ${uptimeText}`
|
text: `System Uptime: ${uptimeText}`
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ NBox {
|
||||||
LocationService.data.weather.current_weather.weathercode) : ""
|
LocationService.data.weather.current_weather.weathercode) : ""
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXXL * 1.5 * scaling
|
font.pointSize: Style.fontSizeXXL * 1.5 * scaling
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
@ -92,13 +92,13 @@ NBox {
|
||||||
spacing: Style.marginSmall * scaling
|
spacing: Style.marginSmall * scaling
|
||||||
NText {
|
NText {
|
||||||
text: Qt.formatDateTime(new Date(LocationService.data.weather.daily.time[index]), "ddd")
|
text: Qt.formatDateTime(new Date(LocationService.data.weather.daily.time[index]), "ddd")
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
NText {
|
NText {
|
||||||
text: LocationService.weatherSymbolFromCode(LocationService.data.weather.daily.weathercode[index])
|
text: LocationService.weatherSymbolFromCode(LocationService.data.weather.daily.weathercode[index])
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeXL * scaling
|
font.pointSize: Style.fontSizeXL * scaling
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
}
|
}
|
||||||
NText {
|
NText {
|
||||||
text: {
|
text: {
|
||||||
|
|
@ -113,7 +113,7 @@ NBox {
|
||||||
return `${max}°/${min}°`
|
return `${max}°/${min}°`
|
||||||
}
|
}
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurfaceVariant
|
color: Color.mOnSurfaceVariant
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,9 @@ NPanel {
|
||||||
width: 160 * scaling
|
width: 160 * scaling
|
||||||
height: 220 * scaling
|
height: 220 * scaling
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
|
|
||||||
visible: true
|
visible: true
|
||||||
z: 9999
|
z: 9999
|
||||||
|
|
@ -57,7 +57,7 @@ NPanel {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Style.barHeight * scaling
|
Layout.preferredHeight: Style.barHeight * scaling
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
color: lockButtonArea.containsMouse ? Colors.mTertiary : "transparent"
|
color: lockButtonArea.containsMouse ? Color.mTertiary : "transparent"
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
|
@ -80,7 +80,7 @@ NPanel {
|
||||||
font.variableAxes: {
|
font.variableAxes: {
|
||||||
"wght": (Font.Normal + Font.Bold) / 2.0
|
"wght": (Font.Normal + Font.Bold) / 2.0
|
||||||
}
|
}
|
||||||
color: lockButtonArea.containsMouse ? Colors.mOnTertiary : Colors.mOnSurface
|
color: lockButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.verticalCenterOffset: 1 * scaling
|
anchors.verticalCenterOffset: 1 * scaling
|
||||||
|
|
@ -88,7 +88,7 @@ NPanel {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Lock Screen"
|
text: "Lock Screen"
|
||||||
color: lockButtonArea.containsMouse ? Colors.mOnTertiary : Colors.mOnSurface
|
color: lockButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.verticalCenterOffset: 1 * scaling
|
anchors.verticalCenterOffset: 1 * scaling
|
||||||
|
|
@ -117,7 +117,7 @@ NPanel {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Style.barHeight * scaling
|
Layout.preferredHeight: Style.barHeight * scaling
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
color: suspendButtonArea.containsMouse ? Colors.mTertiary : "transparent"
|
color: suspendButtonArea.containsMouse ? Color.mTertiary : "transparent"
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
|
@ -140,7 +140,7 @@ NPanel {
|
||||||
font.variableAxes: {
|
font.variableAxes: {
|
||||||
"wght": (Font.Normal + Font.Bold) / 2.0
|
"wght": (Font.Normal + Font.Bold) / 2.0
|
||||||
}
|
}
|
||||||
color: suspendButtonArea.containsMouse ? Colors.mOnTertiary : Colors.mOnSurface
|
color: suspendButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.verticalCenterOffset: 1 * scaling
|
anchors.verticalCenterOffset: 1 * scaling
|
||||||
|
|
@ -148,7 +148,7 @@ NPanel {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Suspend"
|
text: "Suspend"
|
||||||
color: suspendButtonArea.containsMouse ? Colors.mOnTertiary : Colors.mOnSurface
|
color: suspendButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.verticalCenterOffset: 1 * scaling
|
anchors.verticalCenterOffset: 1 * scaling
|
||||||
|
|
@ -175,7 +175,7 @@ NPanel {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Style.barHeight * scaling
|
Layout.preferredHeight: Style.barHeight * scaling
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
color: rebootButtonArea.containsMouse ? Colors.mTertiary : "transparent"
|
color: rebootButtonArea.containsMouse ? Color.mTertiary : "transparent"
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
|
@ -198,7 +198,7 @@ NPanel {
|
||||||
font.variableAxes: {
|
font.variableAxes: {
|
||||||
"wght": (Font.Normal + Font.Bold) / 2.0
|
"wght": (Font.Normal + Font.Bold) / 2.0
|
||||||
}
|
}
|
||||||
color: rebootButtonArea.containsMouse ? Colors.mOnTertiary : Colors.mOnSurface
|
color: rebootButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.verticalCenterOffset: 1 * scaling
|
anchors.verticalCenterOffset: 1 * scaling
|
||||||
|
|
@ -206,7 +206,7 @@ NPanel {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Reboot"
|
text: "Reboot"
|
||||||
color: rebootButtonArea.containsMouse ? Colors.mOnTertiary : Colors.mOnSurface
|
color: rebootButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.verticalCenterOffset: 1 * scaling
|
anchors.verticalCenterOffset: 1 * scaling
|
||||||
|
|
@ -233,7 +233,7 @@ NPanel {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Style.barHeight * scaling
|
Layout.preferredHeight: Style.barHeight * scaling
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
color: logoutButtonArea.containsMouse ? Colors.mTertiary : "transparent"
|
color: logoutButtonArea.containsMouse ? Color.mTertiary : "transparent"
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
|
@ -256,7 +256,7 @@ NPanel {
|
||||||
font.variableAxes: {
|
font.variableAxes: {
|
||||||
"wght": (Font.Normal + Font.Bold) / 2.0
|
"wght": (Font.Normal + Font.Bold) / 2.0
|
||||||
}
|
}
|
||||||
color: logoutButtonArea.containsMouse ? Colors.mOnTertiary : Colors.mOnSurface
|
color: logoutButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.verticalCenterOffset: 1 * scaling
|
anchors.verticalCenterOffset: 1 * scaling
|
||||||
|
|
@ -264,7 +264,7 @@ NPanel {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Logout"
|
text: "Logout"
|
||||||
color: logoutButtonArea.containsMouse ? Colors.mOnTertiary : Colors.mOnSurface
|
color: logoutButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.verticalCenterOffset: 1 * scaling
|
anchors.verticalCenterOffset: 1 * scaling
|
||||||
|
|
@ -291,7 +291,7 @@ NPanel {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: Style.barHeight * scaling
|
Layout.preferredHeight: Style.barHeight * scaling
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
color: shutdownButtonArea.containsMouse ? Colors.mTertiary : "transparent"
|
color: shutdownButtonArea.containsMouse ? Color.mTertiary : "transparent"
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
|
@ -314,7 +314,7 @@ NPanel {
|
||||||
font.variableAxes: {
|
font.variableAxes: {
|
||||||
"wght": (Font.Normal + Font.Bold) / 2.0
|
"wght": (Font.Normal + Font.Bold) / 2.0
|
||||||
}
|
}
|
||||||
color: shutdownButtonArea.containsMouse ? Colors.mOnTertiary : Colors.mOnSurface
|
color: shutdownButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.verticalCenterOffset: 1 * scaling
|
anchors.verticalCenterOffset: 1 * scaling
|
||||||
|
|
@ -322,7 +322,7 @@ NPanel {
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Shutdown"
|
text: "Shutdown"
|
||||||
color: shutdownButtonArea.containsMouse ? Colors.mOnTertiary : Colors.mOnSurface
|
color: shutdownButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.verticalCenterOffset: 1 * scaling
|
anchors.verticalCenterOffset: 1 * scaling
|
||||||
|
|
|
||||||
|
|
@ -81,9 +81,9 @@ NLoader {
|
||||||
// Inline helpers moved to dedicated widgets: NCard and NCircleStat
|
// Inline helpers moved to dedicated widgets: NCard and NCircleStat
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: panelBackground
|
id: panelBackground
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
radius: Style.radiusLarge * scaling
|
radius: Style.radiusLarge * scaling
|
||||||
border.color: Colors.mOutlineVariant
|
border.color: Color.mOutlineVariant
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
width: 460 * scaling
|
width: 460 * scaling
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@ Rectangle {
|
||||||
implicitWidth: childrenRect.width
|
implicitWidth: childrenRect.width
|
||||||
implicitHeight: childrenRect.height
|
implicitHeight: childrenRect.height
|
||||||
|
|
||||||
color: Colors.mSurfaceVariant
|
color: Color.mSurfaceVariant
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
border.color: Colors.mOutlineVariant
|
border.color: Color.mOutlineVariant
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
clip: true
|
clip: true
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property bool running: true
|
property bool running: true
|
||||||
property color color: Colors.mPrimary
|
property color color: Color.mPrimary
|
||||||
property int size: Style.baseWidgetSize * scaling
|
property int size: Style.baseWidgetSize * scaling
|
||||||
property int strokeWidth: Style.borderThick * scaling
|
property int strokeWidth: Style.borderThick * scaling
|
||||||
property int duration: 1000
|
property int duration: 1000
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ Rectangle {
|
||||||
implicitWidth: childrenRect.width
|
implicitWidth: childrenRect.width
|
||||||
implicitHeight: childrenRect.height
|
implicitHeight: childrenRect.height
|
||||||
|
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@ Rectangle {
|
||||||
|
|
||||||
width: 68 * scaling
|
width: 68 * scaling
|
||||||
height: 92 * scaling
|
height: 92 * scaling
|
||||||
color: flat ? "transparent" : Colors.mSurface
|
color: flat ? "transparent" : Color.mSurface
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
border.color: flat ? "transparent" : Colors.mSurfaceVariant
|
border.color: flat ? "transparent" : Color.mSurfaceVariant
|
||||||
border.width: flat ? 0 : Math.max(1, Style.borderThin * scaling)
|
border.width: flat ? 0 : Math.max(1, Style.borderThin * scaling)
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
|
@ -58,14 +58,14 @@ Rectangle {
|
||||||
ctx.reset()
|
ctx.reset()
|
||||||
ctx.lineWidth = 6 * scaling * contentScale
|
ctx.lineWidth = 6 * scaling * contentScale
|
||||||
// Track uses surfaceVariant for stronger contrast
|
// Track uses surfaceVariant for stronger contrast
|
||||||
ctx.strokeStyle = Colors.mSurface
|
ctx.strokeStyle = Color.mSurface
|
||||||
ctx.beginPath()
|
ctx.beginPath()
|
||||||
ctx.arc(cx, cy, r, start, endBg)
|
ctx.arc(cx, cy, r, start, endBg)
|
||||||
ctx.stroke()
|
ctx.stroke()
|
||||||
// Value arc
|
// Value arc
|
||||||
const ratio = Math.max(0, Math.min(1, root.value / 100))
|
const ratio = Math.max(0, Math.min(1, root.value / 100))
|
||||||
const end = start + (endBg - start) * ratio
|
const end = start + (endBg - start) * ratio
|
||||||
ctx.strokeStyle = Colors.mPrimary
|
ctx.strokeStyle = Color.mPrimary
|
||||||
ctx.beginPath()
|
ctx.beginPath()
|
||||||
ctx.arc(cx, cy, r, start, end)
|
ctx.arc(cx, cy, r, start, end)
|
||||||
ctx.stroke()
|
ctx.stroke()
|
||||||
|
|
@ -79,7 +79,7 @@ Rectangle {
|
||||||
text: `${root.value}${root.suffix}`
|
text: `${root.value}${root.suffix}`
|
||||||
font.pointSize: Style.fontSizeMedium * scaling * contentScale
|
font.pointSize: Style.fontSizeMedium * scaling * contentScale
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -89,8 +89,8 @@ Rectangle {
|
||||||
width: 28 * scaling * contentScale
|
width: 28 * scaling * contentScale
|
||||||
height: width
|
height: width
|
||||||
radius: width / 2
|
radius: width / 2
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
// border.color: Colors.mPrimary
|
// border.color: Color.mPrimary
|
||||||
// border.width: Math.max(1, Style.borderThin * scaling)
|
// border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
@ -102,7 +102,7 @@ Rectangle {
|
||||||
text: root.icon
|
text: root.icon
|
||||||
font.family: "Material Symbols Outlined"
|
font.family: "Material Symbols Outlined"
|
||||||
font.pointSize: Style.fontSizeLargeXL * scaling * contentScale
|
font.pointSize: Style.fontSizeLargeXL * scaling * contentScale
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,12 +29,12 @@ ColumnLayout {
|
||||||
text: label
|
text: label
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
NText {
|
NText {
|
||||||
text: description
|
text: description
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -61,8 +61,8 @@ ColumnLayout {
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
implicitWidth: Style.baseWidgetSize * 3.75 * scaling
|
implicitWidth: Style.baseWidgetSize * 3.75 * scaling
|
||||||
implicitHeight: preferredHeight
|
implicitHeight: preferredHeight
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
border.color: combo.activeFocus ? Colors.mTertiary : Colors.mOutline
|
border.color: combo.activeFocus ? Color.mTertiary : Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
}
|
}
|
||||||
|
|
@ -118,22 +118,22 @@ ColumnLayout {
|
||||||
contentItem: NText {
|
contentItem: NText {
|
||||||
text: name
|
text: name
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
color: highlighted ? Colors.mSurface : Colors.mOnSurface
|
color: highlighted ? Color.mSurface : Color.mOnSurface
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
width: combo.width - Style.marginMedium * scaling * 3
|
width: combo.width - Style.marginMedium * scaling * 3
|
||||||
color: highlighted ? Colors.mTertiary : "transparent"
|
color: highlighted ? Color.mTertiary : "transparent"
|
||||||
radius: Style.radiusSmall * scaling
|
radius: Style.radiusSmall * scaling
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: Colors.mSurfaceVariant
|
color: Color.mSurfaceVariant
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,5 +7,5 @@ import qs.Services
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: Math.max(1, Style.borderThin * scaling)
|
height: Math.max(1, Style.borderThin * scaling)
|
||||||
color: Colors.mOutline
|
color: Color.mOutline
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,9 @@ Rectangle {
|
||||||
implicitWidth: size
|
implicitWidth: size
|
||||||
implicitHeight: size
|
implicitHeight: size
|
||||||
|
|
||||||
color: (root.hovering || showFilled) ? Colors.mPrimary : "transparent"
|
color: (root.hovering || showFilled) ? Color.mPrimary : "transparent"
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
border.color: showBorder ? Colors.mPrimary : "transparent"
|
border.color: showBorder ? Color.mPrimary : "transparent"
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
|
|
@ -42,7 +42,7 @@ Rectangle {
|
||||||
font.variableAxes: {
|
font.variableAxes: {
|
||||||
"wght": (Font.Normal + Font.Bold) / 2.0
|
"wght": (Font.Normal + Font.Bold) / 2.0
|
||||||
}
|
}
|
||||||
color: (root.hovering || showFilled) ? Colors.mOnPrimary : showBorder ? Colors.mPrimary : Colors.mOnSurface
|
color: (root.hovering || showFilled) ? Color.mOnPrimary : showBorder ? Color.mPrimary : Color.mOnSurface
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
opacity: root.enabled ? Style.opacityFull : Style.opacityMedium
|
opacity: root.enabled ? Style.opacityFull : Style.opacityMedium
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ PanelWindow {
|
||||||
|
|
||||||
property bool showOverlay: Settings.data.general.dimDesktop
|
property bool showOverlay: Settings.data.general.dimDesktop
|
||||||
property int topMargin: Style.barHeight * scaling
|
property int topMargin: Style.barHeight * scaling
|
||||||
property color overlayColor: showOverlay ? Colors.applyOpacity(Colors.mShadow, "AA") : "transparent"
|
property color overlayColor: showOverlay ? Color.applyOpacity(Color.mShadow, "AA") : "transparent"
|
||||||
signal dismissed
|
signal dismissed
|
||||||
|
|
||||||
function hide() {
|
function hide() {
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,11 @@ Item {
|
||||||
property string icon: ""
|
property string icon: ""
|
||||||
property string text: ""
|
property string text: ""
|
||||||
property string tooltipText: ""
|
property string tooltipText: ""
|
||||||
property color pillColor: Colors.mSurfaceVariant
|
property color pillColor: Color.mSurfaceVariant
|
||||||
property color textColor: Colors.mOnSurface
|
property color textColor: Color.mOnSurface
|
||||||
property color iconCircleColor: Colors.mPrimary
|
property color iconCircleColor: Color.mPrimary
|
||||||
property color iconTextColor: Colors.mSurface
|
property color iconTextColor: Color.mSurface
|
||||||
property color collapsedIconColor: Colors.mOnSurface
|
property color collapsedIconColor: Color.mOnSurface
|
||||||
property real sizeMultiplier: 0.8
|
property real sizeMultiplier: 0.8
|
||||||
property bool autoHide: false
|
property bool autoHide: false
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ RadioButton {
|
||||||
implicitHeight: Style.baseWidgetSize * 0.625 * scaling
|
implicitHeight: Style.baseWidgetSize * 0.625 * scaling
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.color: root.checked ? Colors.mPrimary : Colors.mOnSurface
|
border.color: root.checked ? Color.mPrimary : Color.mOnSurface
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
|
|
@ -24,7 +24,7 @@ RadioButton {
|
||||||
implicitHeight: Style.marginSmall * scaling
|
implicitHeight: Style.marginSmall * scaling
|
||||||
|
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: Qt.alpha(Colors.mPrimary, root.checked ? 1 : 0)
|
color: Qt.alpha(Color.mPrimary, root.checked ? 1 : 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on border.color {
|
Behavior on border.color {
|
||||||
|
|
|
||||||
|
|
@ -26,13 +26,13 @@ Slider {
|
||||||
width: root.availableWidth
|
width: root.availableWidth
|
||||||
height: implicitHeight
|
height: implicitHeight
|
||||||
radius: height / 2
|
radius: height / 2
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: activeTrack
|
id: activeTrack
|
||||||
width: root.visualPosition * parent.width
|
width: root.visualPosition * parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
radius: parent.radius
|
radius: parent.radius
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -42,7 +42,7 @@ Slider {
|
||||||
width: knobDiameter + cutoutExtra
|
width: knobDiameter + cutoutExtra
|
||||||
height: knobDiameter + cutoutExtra
|
height: knobDiameter + cutoutExtra
|
||||||
radius: width / 2
|
radius: width / 2
|
||||||
color: root.cutoutColor !== undefined ? root.cutoutColor : Colors.mSurface
|
color: root.cutoutColor !== undefined ? root.cutoutColor : Color.mSurface
|
||||||
x: Math.max(0, Math.min(parent.width - width,
|
x: Math.max(0, Math.min(parent.width - width,
|
||||||
root.visualPosition * (parent.width - root.knobDiameter) - cutoutExtra / 2))
|
root.visualPosition * (parent.width - root.knobDiameter) - cutoutExtra / 2))
|
||||||
y: (parent.height - height) / 2
|
y: (parent.height - height) / 2
|
||||||
|
|
@ -60,7 +60,7 @@ Slider {
|
||||||
anchors.fill: knob
|
anchors.fill: knob
|
||||||
source: knob
|
source: knob
|
||||||
shadowEnabled: true
|
shadowEnabled: true
|
||||||
shadowColor: Colors.mShadow
|
shadowColor: Color.mShadow
|
||||||
shadowOpacity: 0.25
|
shadowOpacity: 0.25
|
||||||
shadowHorizontalOffset: 0
|
shadowHorizontalOffset: 0
|
||||||
shadowVerticalOffset: 1
|
shadowVerticalOffset: 1
|
||||||
|
|
@ -72,8 +72,8 @@ Slider {
|
||||||
implicitWidth: knobDiameter
|
implicitWidth: knobDiameter
|
||||||
implicitHeight: knobDiameter
|
implicitHeight: knobDiameter
|
||||||
radius: width * 0.5
|
radius: width * 0.5
|
||||||
color: root.pressed ? Colors.mSurfaceVariant : Colors.mSurface
|
color: root.pressed ? Color.mSurfaceVariant : Color.mSurface
|
||||||
border.color: Colors.mPrimary
|
border.color: Color.mPrimary
|
||||||
border.width: Math.max(1, Style.borderThick * scaling)
|
border.width: Math.max(1, Style.borderThick * scaling)
|
||||||
|
|
||||||
// Press feedback halo (using accent color, low opacity)
|
// Press feedback halo (using accent color, low opacity)
|
||||||
|
|
@ -82,7 +82,7 @@ Slider {
|
||||||
width: parent.width + 8 * scaling
|
width: parent.width + 8 * scaling
|
||||||
height: parent.height + 8 * scaling
|
height: parent.height + 8 * scaling
|
||||||
radius: width / 2
|
radius: width / 2
|
||||||
color: Colors.mPrimary
|
color: Color.mPrimary
|
||||||
opacity: root.pressed ? 0.16 : 0.0
|
opacity: root.pressed ? 0.16 : 0.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,5 +9,5 @@ Text {
|
||||||
font.family: Settings.data.ui.fontFamily
|
font.family: Settings.data.ui.fontFamily
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
font.weight: Style.fontWeightRegular
|
font.weight: Style.fontWeightRegular
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,13 +29,13 @@ Item {
|
||||||
text: label
|
text: label
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: description
|
text: description
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -47,8 +47,8 @@ Item {
|
||||||
implicitWidth: root.width
|
implicitWidth: root.width
|
||||||
implicitHeight: Style.baseWidgetSize * 1.35 * scaling
|
implicitHeight: Style.baseWidgetSize * 1.35 * scaling
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
|
|
||||||
// Focus ring
|
// Focus ring
|
||||||
|
|
@ -56,7 +56,7 @@ Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: frame.radius
|
radius: frame.radius
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
border.color: input.activeFocus ? Colors.mTertiary : "transparent"
|
border.color: input.activeFocus ? Color.mTertiary : "transparent"
|
||||||
border.width: input.activeFocus ? Math.max(1, Style.borderThin * scaling) : 0
|
border.width: input.activeFocus ? Math.max(1, Style.borderThin * scaling) : 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -74,8 +74,8 @@ Item {
|
||||||
echoMode: TextInput.Normal
|
echoMode: TextInput.Normal
|
||||||
readOnly: root.readOnly
|
readOnly: root.readOnly
|
||||||
enabled: root.enabled
|
enabled: root.enabled
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
placeholderTextColor: Colors.mOnSurface
|
placeholderTextColor: Color.mOnSurface
|
||||||
background: null
|
background: null
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
onEditingFinished: root.editingFinished()
|
onEditingFinished: root.editingFinished()
|
||||||
|
|
|
||||||
|
|
@ -27,13 +27,13 @@ RowLayout {
|
||||||
text: label
|
text: label
|
||||||
font.pointSize: Style.fontSizeMedium * scaling
|
font.pointSize: Style.fontSizeMedium * scaling
|
||||||
font.weight: Style.fontWeightBold
|
font.weight: Style.fontWeightBold
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
}
|
}
|
||||||
|
|
||||||
NText {
|
NText {
|
||||||
text: description
|
text: description
|
||||||
font.pointSize: Style.fontSizeSmall * scaling
|
font.pointSize: Style.fontSizeSmall * scaling
|
||||||
color: Colors.mOnSurface
|
color: Color.mOnSurface
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
|
@ -45,16 +45,16 @@ RowLayout {
|
||||||
implicitWidth: root.baseSize * 1.625 * scaling
|
implicitWidth: root.baseSize * 1.625 * scaling
|
||||||
implicitHeight: root.baseSize * scaling
|
implicitHeight: root.baseSize * scaling
|
||||||
radius: height * 0.5
|
radius: height * 0.5
|
||||||
color: root.checked ? Colors.mPrimary : Colors.mSurface
|
color: root.checked ? Color.mPrimary : Color.mSurface
|
||||||
border.color: root.checked ? Colors.mPrimary : Colors.mOutline
|
border.color: root.checked ? Color.mPrimary : Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
implicitWidth: (root.baseSize - 5) * scaling
|
implicitWidth: (root.baseSize - 5) * scaling
|
||||||
implicitHeight: (root.baseSize - 5) * scaling
|
implicitHeight: (root.baseSize - 5) * scaling
|
||||||
radius: height * 0.5
|
radius: height * 0.5
|
||||||
color: root.checked ? Colors.mOnPrimary : Colors.mPrimary
|
color: root.checked ? Color.mOnPrimary : Color.mPrimary
|
||||||
border.color: root.checked ? Colors.mSurface : Colors.mSurface
|
border.color: root.checked ? Color.mSurface : Color.mSurface
|
||||||
border.width: Math.max(1, Style.borderMedium * scaling)
|
border.width: Math.max(1, Style.borderMedium * scaling)
|
||||||
y: 2 * scaling
|
y: 2 * scaling
|
||||||
x: root.checked ? switcher.width - width - 2 * scaling : 2 * scaling
|
x: root.checked ? switcher.width - width - 2 * scaling : 2 * scaling
|
||||||
|
|
|
||||||
|
|
@ -135,8 +135,8 @@ Window {
|
||||||
id: tooltipRect
|
id: tooltipRect
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
radius: Style.radiusMedium * scaling
|
radius: Style.radiusMedium * scaling
|
||||||
color: Colors.mSurface
|
color: Color.mSurface
|
||||||
border.color: Colors.mOutline
|
border.color: Color.mOutline
|
||||||
border.width: Math.max(1, Style.borderThin * scaling)
|
border.width: Math.max(1, Style.borderThin * scaling)
|
||||||
z: 1
|
z: 1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue