1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-04 04:28:30 -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
+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