1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-03 20:18:31 -04:00

theme: sweep everything that isnt using a spacing token from singleton,

add Theme.XXS
This commit is contained in:
bbedward
2026-07-02 12:00:09 -04:00
parent a98417d66b
commit 093acdbff7
104 changed files with 280 additions and 237 deletions
@@ -447,7 +447,7 @@ Item {
ColumnLayout {
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
RowLayout {
Layout.fillWidth: true
@@ -274,7 +274,7 @@ PluginComponent {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
Layout.alignment: Qt.AlignVCenter
Layout.fillWidth: true
@@ -234,7 +234,7 @@ PluginComponent {
verticalBarPill: Component {
Column {
spacing: 2
spacing: Theme.spacingXXS
DankIcon {
name: "monitor"
color: Theme.primary
@@ -344,7 +344,7 @@ PluginComponent {
anchors.right: parent.right
anchors.top: parent.top
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
RowLayout {
width: parent.width
@@ -419,7 +419,7 @@ PluginComponent {
Column {
visible: isExpanded
width: parent.width
spacing: 2
spacing: Theme.spacingXXS
topPadding: 4
RowLayout {
@@ -74,7 +74,7 @@ Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
Typography {
width: parent.width
@@ -24,7 +24,7 @@ Rectangle {
id: menuColumn
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
DankToggle {
width: parent.width
@@ -170,7 +170,7 @@ Row {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
width: parent.width - Theme.iconSize * 2 - Theme.spacingM * 3
Typography {
@@ -51,7 +51,7 @@ Rectangle {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
Typography {
text: UserInfoService.fullName || UserInfoService.username || I18n.tr("User")
@@ -13,7 +13,7 @@ Row {
readonly property var availableSizes: isSlider ? [50, 75, 100] : [25, 50, 75, 100]
spacing: 2
spacing: Theme.spacingXXS
Repeater {
model: root.availableSizes
@@ -279,7 +279,7 @@ Rectangle {
Row {
id: pinInputRow
anchors.centerIn: parent
spacing: 4
spacing: Theme.spacingXS
DankIcon {
name: "push_pin"
@@ -288,7 +288,7 @@ Rectangle {
Row {
id: pinOutputRow
anchors.centerIn: parent
spacing: 4
spacing: Theme.spacingXS
DankIcon {
name: "push_pin"
@@ -197,7 +197,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: device ? (device.name || device.deviceName) : ""
@@ -266,7 +266,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: modelData.name
@@ -344,7 +344,7 @@ Rectangle {
Row {
id: pinBluetoothRow
anchors.centerIn: parent
spacing: 4
spacing: Theme.spacingXS
DankIcon {
name: "push_pin"
@@ -226,7 +226,7 @@ Rectangle {
Row {
id: globalPinRow
anchors.centerIn: parent
spacing: 4
spacing: Theme.spacingXS
DankIcon {
name: "push_pin"
@@ -304,7 +304,7 @@ Rectangle {
Column {
id: deviceIconColumn
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
DankIcon {
name: {
@@ -502,7 +502,7 @@ Rectangle {
Row {
anchors.centerIn: parent
spacing: 4
spacing: Theme.spacingXS
DankIcon {
name: "show_chart"
@@ -91,7 +91,7 @@ Rectangle {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
DankIcon {
name: "storage"
@@ -107,7 +107,7 @@ Rectangle {
Column {
anchors.verticalCenter: parent.verticalCenter
width: parent.width - Theme.iconSizeLarge - Theme.spacingM
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Silence notifications")
@@ -683,7 +683,7 @@ Rectangle {
Row {
id: pinWifiRow
anchors.centerIn: parent
spacing: 4
spacing: Theme.spacingXS
DankIcon {
name: "push_pin"
@@ -146,7 +146,7 @@ Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
width: parent.width
@@ -60,7 +60,7 @@ Rectangle {
Row {
anchors.centerIn: parent
spacing: 4
spacing: Theme.spacingXS
DankIcon {
name: BatteryService.getBatteryIcon()
@@ -82,7 +82,7 @@ Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
width: parent.width
@@ -447,7 +447,7 @@ DankPopout {
Column {
anchors.centerIn: parent
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Health")
@@ -484,7 +484,7 @@ DankPopout {
Column {
anchors.centerIn: parent
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Capacity")
@@ -513,7 +513,7 @@ DankPopout {
Column {
anchors.centerIn: parent
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: modelData.state === UPowerDeviceState.Charging ? I18n.tr("To Full") : modelData.state === UPowerDeviceState.Discharging ? I18n.tr("Left") : ""
@@ -245,7 +245,7 @@ DankPopout {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: root.getLayoutName(modelData)
@@ -351,7 +351,7 @@ DankPopout {
Column {
anchors.verticalCenter: parent.verticalCenter
width: parent.width - 64 - Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
StyledText {
width: parent.width
@@ -364,7 +364,7 @@ DankPopout {
Row {
width: parent.width
spacing: 4
spacing: Theme.spacingXS
StyledText {
text: {
@@ -755,7 +755,7 @@ BasePill {
anchors.left: parent.left
anchors.leftMargin: 1
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
DankIcon {
id: audioIcon
@@ -792,7 +792,7 @@ BasePill {
anchors.left: parent.left
anchors.leftMargin: 1
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
DankIcon {
id: micIcon
@@ -829,7 +829,7 @@ BasePill {
anchors.left: parent.left
anchors.leftMargin: 1
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
DankIcon {
id: brightnessIcon
@@ -34,7 +34,7 @@ BasePill {
Column {
id: contentColumn
anchors.centerIn: parent
spacing: 2
spacing: Theme.spacingXXS
visible: root.isVerticalOrientation
DankIcon {
@@ -88,7 +88,7 @@ BasePill {
Row {
anchors.verticalCenter: parent.verticalCenter
spacing: 4
spacing: Theme.spacingXS
StyledText {
text: "↓"
@@ -117,7 +117,7 @@ BasePill {
Row {
anchors.verticalCenter: parent.verticalCenter
spacing: 4
spacing: Theme.spacingXS
StyledText {
text: "↑"
@@ -1331,7 +1331,7 @@ BasePill {
anchors.verticalCenter: menuContainer.popupUsesVerticalLine ? undefined : parent.verticalCenter
anchors.horizontalCenter: menuContainer.popupUsesVerticalLine ? parent.horizontalCenter : undefined
columns: menuContainer.popupUsesVerticalLine ? 1 : (root.useSingleLineOverflowPopup ? root.hiddenBarItems.length : Math.min(5, root.hiddenBarItems.length))
spacing: 2
spacing: Theme.spacingXXS
rowSpacing: 2
Repeater {
@@ -1572,7 +1572,7 @@ Item {
Component {
id: rowLayout
Row {
spacing: 4
spacing: Theme.spacingXS
visible: loadedIcons.length > 0 || SettingsData.showWorkspaceIndex || SettingsData.showWorkspaceName || loadedHasIcon
Item {
@@ -1759,7 +1759,7 @@ Item {
Component {
id: columnLayout
Column {
spacing: 4
spacing: Theme.spacingXS
visible: loadedIcons.length > 0 || SettingsData.showWorkspaceIndex || SettingsData.showWorkspaceName || loadedHasIcon
DankIcon {
@@ -455,7 +455,7 @@ Item {
Column {
width: parent.width
spacing: 2
spacing: Theme.spacingXXS
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: parent.height * 0.2
@@ -582,7 +582,7 @@ Rectangle {
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: 3
spacing: 2
spacing: Theme.spacingXXS
visible: CalendarService && CalendarService.calendarAvailable && CalendarService.hasEventsForDate(dayDate)
Repeater {
@@ -965,7 +965,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
anchors.leftMargin: (modelData && modelData.id && modelData.id.startsWith("task_")) ? 60 : (Theme.spacingS + 6)
anchors.rightMargin: (modelData && modelData.id && modelData.id.startsWith("task_")) ? 64 : Theme.spacingXS
spacing: 2
spacing: Theme.spacingXXS
visible: !taskItem.isEditing
StyledText {
@@ -154,7 +154,7 @@ Rectangle {
Column {
id: detailsColumn
spacing: 2
spacing: Theme.spacingXXS
visible: !root.dense
width: implicitWidth
@@ -183,7 +183,7 @@ Rectangle {
Repeater {
model: root.values.length
Row {
spacing: 2
spacing: Theme.spacingXXS
DankIcon {
name: root.values[index].icon
+1 -1
View File
@@ -349,7 +349,7 @@ Item {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: modelData.label
+2 -2
View File
@@ -556,7 +556,7 @@ Item {
id: rowIndicator
Row {
spacing: 2
spacing: Theme.spacingXXS
Repeater {
model: {
@@ -614,7 +614,7 @@ Item {
id: columnIndicator
Column {
spacing: 2
spacing: Theme.spacingXXS
Repeater {
model: {
+3 -3
View File
@@ -1448,7 +1448,7 @@ Item {
Row {
id: keyboardLayoutRow
spacing: 4
spacing: Theme.spacingXS
Item {
width: Theme.iconSize
@@ -1518,7 +1518,7 @@ Item {
}
Row {
spacing: 6
spacing: Theme.spacingXS
visible: GreetdSettings.weatherEnabled && WeatherService.weather.available
anchors.verticalCenter: parent.verticalCenter
@@ -1597,7 +1597,7 @@ Item {
}
Row {
spacing: 4
spacing: Theme.spacingXS
visible: BatteryService.batteryAvailable
anchors.verticalCenter: parent.verticalCenter
@@ -667,7 +667,7 @@ Item {
anchors.right: parent.right
anchors.top: parent.top
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
Row {
width: parent.width
@@ -1246,7 +1246,7 @@ Item {
anchors.top: passwordLayout.bottom
anchors.topMargin: Theme.spacingS
anchors.horizontalCenter: passwordLayout.horizontalCenter
spacing: 4
spacing: Theme.spacingXS
opacity: DMSService.capsLockState ? 1 : 0
DankIcon {
@@ -1304,7 +1304,7 @@ Item {
Row {
id: keyboardLayoutRow
spacing: 4
spacing: Theme.spacingXS
Item {
width: Theme.iconSize
@@ -1546,7 +1546,7 @@ Item {
}
Row {
spacing: 6
spacing: Theme.spacingXS
visible: WeatherService.weather.available
anchors.verticalCenter: parent.verticalCenter
@@ -1664,7 +1664,7 @@ Item {
}
Row {
spacing: 4
spacing: Theme.spacingXS
visible: BatteryService.batteryAvailable
anchors.verticalCenter: parent.verticalCenter
@@ -537,7 +537,7 @@ Item {
width: parent.width - Theme.spacingL * 2
anchors.top: shortcutsHeader.bottom
anchors.horizontalCenter: parent.horizontalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
width: parent.width
@@ -20,7 +20,7 @@ Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("↑/↓: Nav • Space: Expand • Enter: Action/Expand • E: Text")
@@ -248,7 +248,7 @@ Rectangle {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter
width: overlayRow.width - Theme.iconSizeSmall - Theme.spacingM
@@ -299,7 +299,7 @@ Rectangle {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter
width: privacyRow.width - Theme.iconSizeSmall - Theme.spacingM
+1 -1
View File
@@ -261,7 +261,7 @@ DankOSD {
x: parent.gap * 2 + Theme.iconSize
width: parent.width - Theme.iconSize - parent.gap * 3
anchors.verticalCenter: parent.verticalCenter
spacing: 3
spacing: Theme.spacingXXS
StyledText {
id: topText
+1 -1
View File
@@ -148,7 +148,7 @@ Item {
Layout.fillWidth: true
Layout.fillHeight: true
clip: true
spacing: 4
spacing: Theme.spacingXS
model: DgopService.diskMounts
@@ -299,7 +299,7 @@ Item {
Layout.fillWidth: true
Layout.fillHeight: true
clip: true
spacing: 2
spacing: Theme.spacingXXS
states: [
State {
@@ -410,7 +410,7 @@ Item {
anchors.fill: parent
anchors.leftMargin: Theme.spacingS
anchors.rightMargin: Theme.spacingS
spacing: 4
spacing: Theme.spacingXS
Item {
Layout.fillWidth: headerItem.alignment === Text.AlignLeft
@@ -134,7 +134,7 @@ Item {
Layout.fillWidth: true
Layout.fillHeight: true
clip: true
spacing: 8
spacing: Theme.spacingS
model: DgopService.availableGpus
+5 -5
View File
@@ -642,7 +642,7 @@ Item {
spacing: Theme.spacingL
Column {
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Version")
@@ -667,7 +667,7 @@ Item {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("API")
@@ -692,7 +692,7 @@ Item {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Status")
@@ -702,7 +702,7 @@ Item {
}
Row {
spacing: 4
spacing: Theme.spacingXS
Rectangle {
width: 8
@@ -738,7 +738,7 @@ Item {
Flow {
width: parent.width
spacing: 6
spacing: Theme.spacingS
Repeater {
model: DMSService.capabilities
+1 -1
View File
@@ -575,7 +575,7 @@ Item {
Column {
width: parent.width - Theme.iconSize - Theme.spacingM - 8
spacing: 4
spacing: Theme.spacingXS
StyledText {
text: I18n.tr("Set Custom Device Name", "Audio device rename dialog title")
+1 -1
View File
@@ -701,7 +701,7 @@ Item {
Column {
width: parent.width - 20 - Theme.spacingM - 24 - Theme.spacingM - Theme.spacingM - 60 - Theme.spacingM - 32 - Theme.spacingS
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
width: parent.width
+1 -1
View File
@@ -502,7 +502,7 @@ Item {
anchors.right: visibilityButton.left
anchors.rightMargin: Theme.spacingM
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: rowItem.present.text
@@ -350,7 +350,7 @@ FloatingWindow {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
width: parent.width - 44 - Theme.iconSize - Theme.spacingM * 3
Row {
@@ -376,7 +376,7 @@ FloatingWindow {
Row {
id: featuredWidgetRow
anchors.centerIn: parent
spacing: 2
spacing: Theme.spacingXXS
DankIcon {
name: "star"
@@ -91,7 +91,7 @@ SettingsCard {
}
contentItem: Column {
spacing: 2
spacing: Theme.spacingXXS
Rectangle {
width: parent.width
@@ -453,7 +453,7 @@ Item {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter
width: parent.width - 40 - Theme.spacingM
@@ -495,7 +495,7 @@ Item {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter
width: parent.width - 40 - Theme.spacingM
@@ -537,7 +537,7 @@ Item {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter
width: parent.width - 40 - Theme.spacingM
@@ -69,7 +69,7 @@ Rectangle {
Column {
anchors.centerIn: parent
spacing: 2
spacing: Theme.spacingXXS
DankIcon {
name: root.isConnected ? "desktop_windows" : "desktop_access_disabled"
@@ -51,7 +51,7 @@ StyledRect {
Column {
width: parent.width - Theme.iconSize - Theme.spacingM - (disconnectedBadge.visible ? disconnectedBadge.width + deleteButton.width + Theme.spacingS * 2 : disabledBadge.visible ? disabledBadge.width + Theme.spacingS : 0)
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: DisplayConfigState.getOutputDisplayName(root.outputData, root.outputName)
@@ -378,7 +378,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: {
@@ -636,7 +636,7 @@ Item {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter
StyledText {
+7 -7
View File
@@ -127,7 +127,7 @@ Item {
Column {
width: Math.max(0, parent.width - Theme.iconSize - defaultShortcutValue.width - Theme.spacingM * 2)
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Default Launcher Shortcut")
@@ -221,7 +221,7 @@ Item {
Column {
width: Math.max(0, parent.width - Theme.iconSize - spotlightShortcutValue.width - Theme.spacingM * 2)
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Spotlight Bar Shortcut")
@@ -806,7 +806,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: pluginDelegate.plugin?.name ?? pluginDelegate.modelData
@@ -989,7 +989,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
Row {
spacing: Theme.spacingS
@@ -1244,7 +1244,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: modelData.name
@@ -1355,7 +1355,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: modelData.name
@@ -1501,7 +1501,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: modelData.name || I18n.tr("Unknown App")
@@ -76,7 +76,7 @@ Item {
Column {
width: parent.width
spacing: 4
spacing: Theme.spacingXS
visible: NetworkService.ethernetDevices.length > 0
StyledText {
@@ -139,7 +139,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
width: parent.width - 20 - Theme.spacingS
StyledText {
@@ -422,7 +422,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: modelData.id || I18n.tr("Unknown")
@@ -229,7 +229,7 @@ Item {
Column {
width: parent.width
spacing: 4
spacing: Theme.spacingXS
visible: DMSNetworkService.vpnAvailable && DMSNetworkService.profiles.length > 0
Repeater {
@@ -290,7 +290,7 @@ Item {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter
width: parent.width - 20 - ((canExpand ? 28 : 0) + (canDelete ? 28 : 0)) - Theme.spacingS * 4
@@ -430,7 +430,7 @@ Item {
Column {
width: parent.width
spacing: 4
spacing: Theme.spacingXS
visible: (NetworkService.wifiNetworks?.length ?? 0) > 0
Repeater {
@@ -526,7 +526,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
width: parent.width - 20 - Theme.spacingS
Row {
@@ -859,7 +859,7 @@ Item {
Column {
width: parent.width
spacing: 4
spacing: Theme.spacingXS
Repeater {
model: savedWifiCard.expanded ? savedWifiCard.savedNetworks : []
@@ -935,7 +935,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
width: parent.width - 20 - Theme.spacingS
Row {
@@ -561,7 +561,7 @@ Item {
Column {
width: parent.width
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Pattern")
@@ -584,7 +584,7 @@ Item {
Column {
width: (parent.width - Theme.spacingS * 3) / 4
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Field")
@@ -605,7 +605,7 @@ Item {
Column {
width: (parent.width - Theme.spacingS * 3) / 4
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Type")
@@ -625,7 +625,7 @@ Item {
Column {
width: (parent.width - Theme.spacingS * 3) / 4
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Action")
@@ -646,7 +646,7 @@ Item {
Column {
width: (parent.width - Theme.spacingS * 3) / 4
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Priority")
@@ -930,7 +930,7 @@ FloatingWindow {
Column {
width: parent.width - Theme.iconSize - Theme.spacingM - installButton.width - Theme.spacingM
spacing: 2
spacing: Theme.spacingXXS
Row {
spacing: Theme.spacingXS
@@ -957,7 +957,7 @@ FloatingWindow {
Row {
id: featuredRow
anchors.centerIn: parent
spacing: 2
spacing: Theme.spacingXXS
DankIcon {
name: "star"
@@ -1053,7 +1053,7 @@ FloatingWindow {
Row {
id: upvoteRow
anchors.centerIn: parent
spacing: 2
spacing: Theme.spacingXXS
DankIcon {
name: "thumb_up"
@@ -114,7 +114,7 @@ StyledRect {
Row {
anchors.centerIn: parent
spacing: 2
spacing: Theme.spacingXXS
DankIcon {
id: incompatIcon
+5 -5
View File
@@ -930,7 +930,7 @@ Item {
Column {
width: parent.width
spacing: 4
spacing: Theme.spacingXS
visible: CupsService.printerNames.length > 0
Repeater {
@@ -987,7 +987,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
width: parent.width - 20 - Theme.spacingS
StyledText {
@@ -1453,7 +1453,7 @@ Item {
anchors.right: parent.right
anchors.rightMargin: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter
spacing: 4
spacing: Theme.spacingXS
Rectangle {
width: 24
@@ -1601,7 +1601,7 @@ Item {
Column {
width: parent.width
spacing: 4
spacing: Theme.spacingXS
Repeater {
model: CupsService.printerClasses
@@ -1632,7 +1632,7 @@ Item {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: modelData.name || I18n.tr("Unknown")
@@ -81,7 +81,7 @@ Item {
Column {
width: (parent.width - deleteBtn.width - Theme.spacingS) / 2
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Pattern")
@@ -100,7 +100,7 @@ Item {
Column {
width: (parent.width - deleteBtn.width - Theme.spacingS) / 2
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Replacement")
@@ -148,7 +148,7 @@ Item {
Column {
width: 120
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Type")
+1 -1
View File
@@ -425,7 +425,7 @@ FloatingWindow {
Column {
width: parent.width - (hasPreview ? 180 : 48) - Theme.spacingM - installButton.width - Theme.spacingM
spacing: 6
spacing: Theme.spacingXS
anchors.verticalCenter: parent.verticalCenter
Row {
@@ -1415,7 +1415,7 @@ Item {
width: parent.width - Theme.spacingM * 2
Column {
spacing: 2
spacing: Theme.spacingXXS
width: (parent.width - Theme.spacingL * 2) / 3
anchors.verticalCenter: parent.verticalCenter
@@ -1450,7 +1450,7 @@ Item {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
width: (parent.width - Theme.spacingL * 2) / 3
anchors.verticalCenter: parent.verticalCenter
@@ -1485,7 +1485,7 @@ Item {
}
Column {
spacing: 2
spacing: Theme.spacingXXS
width: (parent.width - Theme.spacingL * 2) / 3
anchors.verticalCenter: parent.verticalCenter
visible: SessionData.themeModeAutoEnabled && SessionData.themeModeNextTransition
@@ -350,7 +350,7 @@ Item {
Column {
width: (parent.width - Theme.spacingL) / 2
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("• d - Day (1-31)")
@@ -381,7 +381,7 @@ Item {
Column {
width: (parent.width - Theme.spacingL) / 2
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("• MM - Month (01-12)")
@@ -913,7 +913,7 @@ Item {
Column {
anchors.horizontalCenter: parent.horizontalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Feels Like")
font.pixelSize: Theme.fontSizeSmall
@@ -957,7 +957,7 @@ Item {
Column {
anchors.horizontalCenter: parent.horizontalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Humidity")
font.pixelSize: Theme.fontSizeSmall
@@ -1001,7 +1001,7 @@ Item {
Column {
anchors.horizontalCenter: parent.horizontalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Wind")
font.pixelSize: Theme.fontSizeSmall
@@ -1058,7 +1058,7 @@ Item {
Column {
anchors.horizontalCenter: parent.horizontalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Pressure")
font.pixelSize: Theme.fontSizeSmall
@@ -1108,7 +1108,7 @@ Item {
Column {
anchors.horizontalCenter: parent.horizontalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Rain Chance")
font.pixelSize: Theme.fontSizeSmall
@@ -1152,7 +1152,7 @@ Item {
Column {
anchors.horizontalCenter: parent.horizontalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: I18n.tr("Visibility")
font.pixelSize: Theme.fontSizeSmall
+1 -1
View File
@@ -182,7 +182,7 @@ Item {
Column {
width: parent.width - Theme.iconSize - actionButtons.width - Theme.spacingM * 3
spacing: 2
spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter
Row {
+3 -3
View File
@@ -135,7 +135,7 @@ Item {
Row {
anchors.centerIn: parent
spacing: 4
spacing: Theme.spacingXS
Rectangle {
width: 32
@@ -562,7 +562,7 @@ Item {
Row {
anchors.centerIn: parent
spacing: 4
spacing: Theme.spacingXS
Rectangle {
width: 28
@@ -752,7 +752,7 @@ Item {
Row {
anchors.centerIn: parent
spacing: 4
spacing: Theme.spacingXS
Rectangle {
width: 28
@@ -357,7 +357,7 @@ FloatingWindow {
Column {
id: textColumn
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
width: parent.width - Theme.iconSize * 2 - Theme.spacingM * 4 + 4
StyledText {
@@ -202,7 +202,7 @@ FloatingWindow {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
width: parent.width - 28 - Theme.spacingM * 3 - 24
StyledText {
@@ -283,26 +283,31 @@ FloatingWindow {
}
function selectNext() {
if (filteredApps.length === 0) return;
if (filteredApps.length === 0)
return;
keyboardNavigationActive = true;
selectedIndex = Math.min(selectedIndex + 1, filteredApps.length - 1);
}
function selectPrevious() {
if (filteredApps.length === 0) return;
if (filteredApps.length === 0)
return;
keyboardNavigationActive = true;
selectedIndex = Math.max(selectedIndex - 1, -1);
if (selectedIndex === -1) keyboardNavigationActive = false;
if (selectedIndex === -1)
keyboardNavigationActive = false;
}
function selectApp() {
if (selectedIndex < 0 || selectedIndex >= filteredApps.length) return;
if (selectedIndex < 0 || selectedIndex >= filteredApps.length)
return;
selectAppByIndex(selectedIndex);
}
function selectAppByIndex(idx) {
const app = filteredApps[idx];
if (!app) return;
if (!app)
return;
root.appSelected(app.id || app.execString || "");
hide();
}
@@ -48,7 +48,7 @@ Rectangle {
Column {
anchors.verticalCenter: parent.verticalCenter
width: parent.width - Theme.iconSize - Theme.spacingM * 3 - buttonsRow.width
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: root.displayedName
@@ -62,7 +62,7 @@ Rectangle {
Column {
width: parent.width
spacing: 2
spacing: Theme.spacingXXS
Row {
width: parent.width
@@ -40,7 +40,7 @@ StyledRect {
Column {
anchors.verticalCenter: parent.verticalCenter
width: parent.width - Theme.iconSize - openButton.width - Theme.spacingM * 2
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: root.settingLabel
@@ -364,7 +364,7 @@ Column {
anchors.right: actionButtons.left
anchors.rightMargin: Theme.spacingM
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: modelData.text
@@ -1279,7 +1279,7 @@ Column {
Column {
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
Rectangle {
width: parent.width
@@ -1417,7 +1417,7 @@ Column {
id: contentColumn
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
Rectangle {
width: parent.width
@@ -1616,7 +1616,7 @@ Column {
anchors.right: parent.right
anchors.rightMargin: Theme.spacingXS
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
DankActionButton {
buttonSize: 28
@@ -1681,7 +1681,7 @@ Column {
id: kbdLayoutCtxMenuColumn
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
Rectangle {
width: parent.width
@@ -1766,7 +1766,7 @@ Column {
id: focusedWindowMenuColumn
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
Rectangle {
width: parent.width
@@ -1935,7 +1935,7 @@ Column {
id: diskMenuColumn
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
Rectangle {
width: parent.width
@@ -2315,7 +2315,7 @@ Column {
id: menuColumn
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
Item {
id: controlCenterContentMetrics
@@ -2615,7 +2615,7 @@ Column {
id: menuPrivacyColumn
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
Rectangle {
width: parent.width
@@ -2840,7 +2840,7 @@ Column {
id: gpuMenuColumn
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
Repeater {
model: DgopService.availableGpus || []
@@ -2876,7 +2876,7 @@ Column {
Column {
anchors.verticalCenter: parent.verticalCenter
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: modelData.driver ? modelData.driver.toUpperCase() : ""
@@ -2949,7 +2949,7 @@ Column {
id: batteryMenuColumn
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
Rectangle {
width: parent.width
@@ -3198,7 +3198,7 @@ Column {
id: musicMenuColumn
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
Repeater {
model: [
@@ -3315,7 +3315,7 @@ Column {
id: runningAppsMenuColumn
anchors.fill: parent
anchors.margins: Theme.spacingS
spacing: 2
spacing: Theme.spacingXXS
Rectangle {
width: parent.width
@@ -646,7 +646,7 @@ Item {
ColumnLayout {
Layout.fillWidth: true
spacing: 2
spacing: Theme.spacingXXS
StyledText {
text: ruleDelegateItem.displayName
@@ -715,7 +715,7 @@ Item {
RowLayout {
Layout.alignment: Qt.AlignVCenter
spacing: 2
spacing: Theme.spacingXXS
DankActionButton {
buttonSize: 28
@@ -899,7 +899,7 @@ Item {
ColumnLayout {
Layout.fillWidth: true
spacing: 2
spacing: Theme.spacingXXS
RowLayout {
Layout.fillWidth: true