1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -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
+1
View File
@@ -1250,6 +1250,7 @@ Singleton {
return typeof SettingsData !== "undefined" ? SettingsData.fontScale : 1.0; return typeof SettingsData !== "undefined" ? SettingsData.fontScale : 1.0;
} }
property real spacingXXS: 2
property real spacingXS: 4 property real spacingXS: 4
property real spacingS: 8 property real spacingS: 8
property real spacingM: 12 property real spacingM: 12
+1 -1
View File
@@ -253,7 +253,7 @@ DankModal {
} }
Row { Row {
spacing: 4 spacing: Theme.spacingXS
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: Theme.spacingS anchors.rightMargin: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
+1 -1
View File
@@ -224,7 +224,7 @@ DankModal {
Column { Column {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Passkey:") text: I18n.tr("Passkey:")
@@ -48,7 +48,7 @@ Rectangle {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
width: parent.width - root.iconContainerSize - Theme.spacingS width: parent.width - root.iconContainerSize - Theme.spacingS
StyledText { StyledText {
@@ -24,7 +24,7 @@ Rectangle {
Column { Column {
width: parent.width - Theme.spacingL * 2 width: parent.width - Theme.spacingL * 2
anchors.centerIn: parent anchors.centerIn: parent
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: keyboardHints.enterToPaste ? I18n.tr("↑/↓: Navigate • Enter: Paste • Ctrl+C: Copy • Del: Delete • Ctrl+E: Edit • Ctrl+S: Pin/Unpin • F10: Help", "Keyboard hints when enter-to-paste is enabled") : I18n.tr("↑/↓: Navigate • Enter/Ctrl+C: Copy • Del: Delete • Ctrl+E: Edit • Ctrl+S: Pin/Unpin • F10: Help") text: keyboardHints.enterToPaste ? I18n.tr("↑/↓: Navigate • Enter: Paste • Ctrl+C: Copy • Del: Delete • Ctrl+E: Edit • Ctrl+S: Pin/Unpin • F10: Help", "Keyboard hints when enter-to-paste is enabled") : I18n.tr("↑/↓: Navigate • Enter/Ctrl+C: Copy • Del: Delete • Ctrl+E: Edit • Ctrl+S: Pin/Unpin • F10: Help")
@@ -351,7 +351,7 @@ FocusScope {
anchors.leftMargin: Theme.spacingM anchors.leftMargin: Theme.spacingM
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
layoutDirection: I18n.isRtl ? Qt.RightToLeft : Qt.LeftToRight layoutDirection: I18n.isRtl ? Qt.RightToLeft : Qt.LeftToRight
spacing: 2 spacing: Theme.spacingXXS
Repeater { Repeater {
model: [ model: [
@@ -639,7 +639,7 @@ FocusScope {
Row { Row {
id: typeChips id: typeChips
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
visible: DSearchService.supportsTypeFilter visible: DSearchService.supportsTypeFilter
Repeater { Repeater {
@@ -878,7 +878,7 @@ FocusScope {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Edit App") text: I18n.tr("Edit App")
@@ -915,7 +915,7 @@ FocusScope {
Column { Column {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
StyledText { StyledText {
text: I18n.tr("Name") text: I18n.tr("Name")
@@ -935,7 +935,7 @@ FocusScope {
Column { Column {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
StyledText { StyledText {
text: I18n.tr("Icon") text: I18n.tr("Icon")
@@ -955,7 +955,7 @@ FocusScope {
Column { Column {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
StyledText { StyledText {
text: I18n.tr("Description") text: I18n.tr("Description")
@@ -975,7 +975,7 @@ FocusScope {
Column { Column {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
StyledText { StyledText {
text: I18n.tr("Environment Variables") text: I18n.tr("Environment Variables")
@@ -1001,7 +1001,7 @@ FocusScope {
Column { Column {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
StyledText { StyledText {
text: I18n.tr("Extra Arguments") text: I18n.tr("Extra Arguments")
+2 -2
View File
@@ -50,7 +50,7 @@ Item {
id: listComponent id: listComponent
Column { Column {
spacing: 4 spacing: Theme.spacingXS
width: contentLoader.width width: contentLoader.width
Repeater { Repeater {
@@ -83,7 +83,7 @@ Item {
Flow { Flow {
width: contentLoader.width width: contentLoader.width
spacing: 4 spacing: Theme.spacingXS
Repeater { Repeater {
model: ScriptModel { model: ScriptModel {
@@ -169,7 +169,7 @@ Rectangle {
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
model: root.controller?.appCategories ?? [] model: root.controller?.appCategories ?? []
spacing: 2 spacing: Theme.spacingXXS
clip: true clip: true
interactive: contentHeight > height interactive: contentHeight > height
implicitHeight: contentHeight implicitHeight: contentHeight
@@ -246,7 +246,7 @@ Rectangle {
Row { Row {
id: viewModeRow id: viewModeRow
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
visible: root.canChangeViewMode && !root.section?.collapsed visible: root.canChangeViewMode && !root.section?.collapsed
Repeater { Repeater {
@@ -150,7 +150,7 @@ Rectangle {
anchors.right: previewFrame.visible ? previewFrame.left : metaRow.left anchors.right: previewFrame.visible ? previewFrame.left : metaRow.left
anchors.rightMargin: Theme.spacingM anchors.rightMargin: Theme.spacingM
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
id: nameText id: nameText
@@ -143,7 +143,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: Math.min(420, root.width - 88) width: Math.min(420, root.width - 88)
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
width: parent.width width: parent.width
@@ -804,7 +804,7 @@ FocusScope {
anchors.topMargin: Theme.spacingS anchors.topMargin: Theme.spacingS
anchors.bottomMargin: Theme.spacingS anchors.bottomMargin: Theme.spacingS
visible: viewMode === "list" visible: viewMode === "list"
spacing: 2 spacing: Theme.spacingXXS
model: folderModel model: folderModel
currentIndex: selectedIndex currentIndex: selectedIndex
onCurrentIndexChanged: { onCurrentIndexChanged: {
@@ -16,7 +16,7 @@ StyledRect {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 4 spacing: Theme.spacingXS
StyledText { StyledText {
text: I18n.tr("Quick Access") text: I18n.tr("Quick Access")
@@ -20,7 +20,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Tab/Shift+Tab: Nav • ←→↑↓: Grid Nav • Enter/Space: Select") text: I18n.tr("Tab/Shift+Tab: Nav • ←→↑↓: Grid Nav • Enter/Space: Select")
@@ -99,7 +99,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("You're All Set!", "greeter completion page title") text: I18n.tr("You're All Set!", "greeter completion page title")
@@ -209,7 +209,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("System Check", "greeter doctor page title") text: I18n.tr("System Check", "greeter doctor page title")
@@ -45,7 +45,7 @@ Rectangle {
Column { Column {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: root.title text: root.title
@@ -48,7 +48,7 @@ Rectangle {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
width: parent.width - root.iconContainerSize - Theme.spacingM width: parent.width - root.iconContainerSize - Theme.spacingM
StyledText { StyledText {
+3 -3
View File
@@ -361,7 +361,7 @@ DankModal {
Column { Column {
Layout.fillWidth: true Layout.fillWidth: true
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("New Session") text: I18n.tr("New Session")
@@ -449,7 +449,7 @@ DankModal {
// Info // Info
Column { Column {
Layout.fillWidth: true Layout.fillWidth: true
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: modelData.name text: modelData.name
@@ -601,7 +601,7 @@ DankModal {
delegate: Row { delegate: Row {
required property var modelData required property var modelData
spacing: 4 spacing: Theme.spacingXS
Rectangle { Rectangle {
width: keyText.width + Theme.spacingS width: keyText.width + Theme.spacingS
+1 -1
View File
@@ -300,7 +300,7 @@ FloatingWindow {
spacing: Theme.spacingM spacing: Theme.spacingM
Row { Row {
spacing: 2 spacing: Theme.spacingXXS
Repeater { Repeater {
model: [ model: [
@@ -52,7 +52,7 @@ Rectangle {
Row { Row {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 4 spacing: Theme.spacingXS
Rectangle { Rectangle {
width: 28 width: 28
@@ -711,7 +711,7 @@ Rectangle {
rightPadding: Theme.spacingS rightPadding: Theme.spacingS
bottomPadding: Theme.spacingL bottomPadding: Theme.spacingL
topPadding: Theme.spacingM + 2 topPadding: Theme.spacingM + 2
spacing: 2 spacing: Theme.spacingXXS
ProfileSection { ProfileSection {
width: parent.width - parent.leftPadding - parent.rightPadding width: parent.width - parent.leftPadding - parent.rightPadding
@@ -804,7 +804,7 @@ Rectangle {
Column { Column {
id: searchResultsColumn id: searchResultsColumn
width: parent.width - parent.leftPadding - parent.rightPadding width: parent.width - parent.leftPadding - parent.rightPadding
spacing: 2 spacing: Theme.spacingXXS
visible: root.searchActive visible: root.searchActive
Item { Item {
@@ -859,7 +859,7 @@ Rectangle {
Column { Column {
width: parent.width - Theme.iconSize - Theme.spacingM width: parent.width - Theme.iconSize - Theme.spacingM
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: resultDelegate.modelData.label text: resultDelegate.modelData.label
@@ -928,7 +928,7 @@ Rectangle {
width: parent.width - parent.leftPadding - parent.rightPadding width: parent.width - parent.leftPadding - parent.rightPadding
visible: !root.searchActive && root.isCategoryVisible(modelData) visible: !root.searchActive && root.isCategoryVisible(modelData)
spacing: 2 spacing: Theme.spacingXXS
Rectangle { Rectangle {
width: parent.width width: parent.width
@@ -1035,7 +1035,7 @@ Rectangle {
Column { Column {
id: childrenColumn id: childrenColumn
width: parent.width width: parent.width
spacing: 2 spacing: Theme.spacingXXS
visible: categoryDelegate.modelData.children !== undefined && root.isCategoryExpanded(categoryDelegate.modelData.id) visible: categoryDelegate.modelData.children !== undefined && root.isCategoryExpanded(categoryDelegate.modelData.id)
clip: true clip: true
+2 -2
View File
@@ -141,7 +141,7 @@ DankModal {
Column { Column {
width: parent.width - Theme.iconSize - 4 - chevron.width - Theme.spacingM * 2 width: parent.width - Theme.iconSize - 4 - chevron.width - Theme.spacingM * 2
spacing: 2 spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
StyledText { StyledText {
@@ -215,7 +215,7 @@ DankModal {
Column { Column {
id: bodyCol id: bodyCol
width: parent.width - Theme.iconSize - Theme.spacingM width: parent.width - Theme.iconSize - Theme.spacingM
spacing: 4 spacing: Theme.spacingXS
StyledText { StyledText {
text: I18n.tr("No other active sessions on this seat") text: I18n.tr("No other active sessions on this seat")
@@ -447,7 +447,7 @@ Item {
ColumnLayout { ColumnLayout {
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
@@ -274,7 +274,7 @@ PluginComponent {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
Layout.fillWidth: true Layout.fillWidth: true
@@ -234,7 +234,7 @@ PluginComponent {
verticalBarPill: Component { verticalBarPill: Component {
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
DankIcon { DankIcon {
name: "monitor" name: "monitor"
color: Theme.primary color: Theme.primary
@@ -344,7 +344,7 @@ PluginComponent {
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
RowLayout { RowLayout {
width: parent.width width: parent.width
@@ -419,7 +419,7 @@ PluginComponent {
Column { Column {
visible: isExpanded visible: isExpanded
width: parent.width width: parent.width
spacing: 2 spacing: Theme.spacingXXS
topPadding: 4 topPadding: 4
RowLayout { RowLayout {
@@ -74,7 +74,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
Typography { Typography {
width: parent.width width: parent.width
@@ -24,7 +24,7 @@ Rectangle {
id: menuColumn id: menuColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
DankToggle { DankToggle {
width: parent.width width: parent.width
@@ -170,7 +170,7 @@ Row {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
width: parent.width - Theme.iconSize * 2 - Theme.spacingM * 3 width: parent.width - Theme.iconSize * 2 - Theme.spacingM * 3
Typography { Typography {
@@ -51,7 +51,7 @@ Rectangle {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
Typography { Typography {
text: UserInfoService.fullName || UserInfoService.username || I18n.tr("User") 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] readonly property var availableSizes: isSlider ? [50, 75, 100] : [25, 50, 75, 100]
spacing: 2 spacing: Theme.spacingXXS
Repeater { Repeater {
model: root.availableSizes model: root.availableSizes
@@ -279,7 +279,7 @@ Rectangle {
Row { Row {
id: pinInputRow id: pinInputRow
anchors.centerIn: parent anchors.centerIn: parent
spacing: 4 spacing: Theme.spacingXS
DankIcon { DankIcon {
name: "push_pin" name: "push_pin"
@@ -288,7 +288,7 @@ Rectangle {
Row { Row {
id: pinOutputRow id: pinOutputRow
anchors.centerIn: parent anchors.centerIn: parent
spacing: 4 spacing: Theme.spacingXS
DankIcon { DankIcon {
name: "push_pin" name: "push_pin"
@@ -197,7 +197,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: device ? (device.name || device.deviceName) : "" text: device ? (device.name || device.deviceName) : ""
@@ -266,7 +266,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: modelData.name text: modelData.name
@@ -344,7 +344,7 @@ Rectangle {
Row { Row {
id: pinBluetoothRow id: pinBluetoothRow
anchors.centerIn: parent anchors.centerIn: parent
spacing: 4 spacing: Theme.spacingXS
DankIcon { DankIcon {
name: "push_pin" name: "push_pin"
@@ -226,7 +226,7 @@ Rectangle {
Row { Row {
id: globalPinRow id: globalPinRow
anchors.centerIn: parent anchors.centerIn: parent
spacing: 4 spacing: Theme.spacingXS
DankIcon { DankIcon {
name: "push_pin" name: "push_pin"
@@ -304,7 +304,7 @@ Rectangle {
Column { Column {
id: deviceIconColumn id: deviceIconColumn
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
DankIcon { DankIcon {
name: { name: {
@@ -502,7 +502,7 @@ Rectangle {
Row { Row {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 4 spacing: Theme.spacingXS
DankIcon { DankIcon {
name: "show_chart" name: "show_chart"
@@ -91,7 +91,7 @@ Rectangle {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
DankIcon { DankIcon {
name: "storage" name: "storage"
@@ -107,7 +107,7 @@ Rectangle {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: parent.width - Theme.iconSizeLarge - Theme.spacingM width: parent.width - Theme.iconSizeLarge - Theme.spacingM
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Silence notifications") text: I18n.tr("Silence notifications")
@@ -683,7 +683,7 @@ Rectangle {
Row { Row {
id: pinWifiRow id: pinWifiRow
anchors.centerIn: parent anchors.centerIn: parent
spacing: 4 spacing: Theme.spacingXS
DankIcon { DankIcon {
name: "push_pin" name: "push_pin"
@@ -146,7 +146,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
width: parent.width width: parent.width
@@ -60,7 +60,7 @@ Rectangle {
Row { Row {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 4 spacing: Theme.spacingXS
DankIcon { DankIcon {
name: BatteryService.getBatteryIcon() name: BatteryService.getBatteryIcon()
@@ -82,7 +82,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
width: parent.width width: parent.width
@@ -447,7 +447,7 @@ DankPopout {
Column { Column {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Health") text: I18n.tr("Health")
@@ -484,7 +484,7 @@ DankPopout {
Column { Column {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Capacity") text: I18n.tr("Capacity")
@@ -513,7 +513,7 @@ DankPopout {
Column { Column {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: modelData.state === UPowerDeviceState.Charging ? I18n.tr("To Full") : modelData.state === UPowerDeviceState.Discharging ? I18n.tr("Left") : "" text: modelData.state === UPowerDeviceState.Charging ? I18n.tr("To Full") : modelData.state === UPowerDeviceState.Discharging ? I18n.tr("Left") : ""
@@ -245,7 +245,7 @@ DankPopout {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: root.getLayoutName(modelData) text: root.getLayoutName(modelData)
@@ -351,7 +351,7 @@ DankPopout {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: parent.width - 64 - Theme.spacingS width: parent.width - 64 - Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
width: parent.width width: parent.width
@@ -364,7 +364,7 @@ DankPopout {
Row { Row {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
StyledText { StyledText {
text: { text: {
@@ -755,7 +755,7 @@ BasePill {
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 1 anchors.leftMargin: 1
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
DankIcon { DankIcon {
id: audioIcon id: audioIcon
@@ -792,7 +792,7 @@ BasePill {
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 1 anchors.leftMargin: 1
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
DankIcon { DankIcon {
id: micIcon id: micIcon
@@ -829,7 +829,7 @@ BasePill {
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 1 anchors.leftMargin: 1
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
DankIcon { DankIcon {
id: brightnessIcon id: brightnessIcon
@@ -34,7 +34,7 @@ BasePill {
Column { Column {
id: contentColumn id: contentColumn
anchors.centerIn: parent anchors.centerIn: parent
spacing: 2 spacing: Theme.spacingXXS
visible: root.isVerticalOrientation visible: root.isVerticalOrientation
DankIcon { DankIcon {
@@ -88,7 +88,7 @@ BasePill {
Row { Row {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 4 spacing: Theme.spacingXS
StyledText { StyledText {
text: "↓" text: "↓"
@@ -117,7 +117,7 @@ BasePill {
Row { Row {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 4 spacing: Theme.spacingXS
StyledText { StyledText {
text: "↑" text: "↑"
@@ -1331,7 +1331,7 @@ BasePill {
anchors.verticalCenter: menuContainer.popupUsesVerticalLine ? undefined : parent.verticalCenter anchors.verticalCenter: menuContainer.popupUsesVerticalLine ? undefined : parent.verticalCenter
anchors.horizontalCenter: menuContainer.popupUsesVerticalLine ? parent.horizontalCenter : undefined anchors.horizontalCenter: menuContainer.popupUsesVerticalLine ? parent.horizontalCenter : undefined
columns: menuContainer.popupUsesVerticalLine ? 1 : (root.useSingleLineOverflowPopup ? root.hiddenBarItems.length : Math.min(5, root.hiddenBarItems.length)) columns: menuContainer.popupUsesVerticalLine ? 1 : (root.useSingleLineOverflowPopup ? root.hiddenBarItems.length : Math.min(5, root.hiddenBarItems.length))
spacing: 2 spacing: Theme.spacingXXS
rowSpacing: 2 rowSpacing: 2
Repeater { Repeater {
@@ -1572,7 +1572,7 @@ Item {
Component { Component {
id: rowLayout id: rowLayout
Row { Row {
spacing: 4 spacing: Theme.spacingXS
visible: loadedIcons.length > 0 || SettingsData.showWorkspaceIndex || SettingsData.showWorkspaceName || loadedHasIcon visible: loadedIcons.length > 0 || SettingsData.showWorkspaceIndex || SettingsData.showWorkspaceName || loadedHasIcon
Item { Item {
@@ -1759,7 +1759,7 @@ Item {
Component { Component {
id: columnLayout id: columnLayout
Column { Column {
spacing: 4 spacing: Theme.spacingXS
visible: loadedIcons.length > 0 || SettingsData.showWorkspaceIndex || SettingsData.showWorkspaceName || loadedHasIcon visible: loadedIcons.length > 0 || SettingsData.showWorkspaceIndex || SettingsData.showWorkspaceName || loadedHasIcon
DankIcon { DankIcon {
@@ -455,7 +455,7 @@ Item {
Column { Column {
width: parent.width width: parent.width
spacing: 2 spacing: Theme.spacingXXS
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: parent.height * 0.2 anchors.verticalCenterOffset: parent.height * 0.2
@@ -582,7 +582,7 @@ Rectangle {
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.bottomMargin: 3 anchors.bottomMargin: 3
spacing: 2 spacing: Theme.spacingXXS
visible: CalendarService && CalendarService.calendarAvailable && CalendarService.hasEventsForDate(dayDate) visible: CalendarService && CalendarService.calendarAvailable && CalendarService.hasEventsForDate(dayDate)
Repeater { Repeater {
@@ -965,7 +965,7 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.leftMargin: (modelData && modelData.id && modelData.id.startsWith("task_")) ? 60 : (Theme.spacingS + 6) 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 anchors.rightMargin: (modelData && modelData.id && modelData.id.startsWith("task_")) ? 64 : Theme.spacingXS
spacing: 2 spacing: Theme.spacingXXS
visible: !taskItem.isEditing visible: !taskItem.isEditing
StyledText { StyledText {
@@ -154,7 +154,7 @@ Rectangle {
Column { Column {
id: detailsColumn id: detailsColumn
spacing: 2 spacing: Theme.spacingXXS
visible: !root.dense visible: !root.dense
width: implicitWidth width: implicitWidth
@@ -183,7 +183,7 @@ Rectangle {
Repeater { Repeater {
model: root.values.length model: root.values.length
Row { Row {
spacing: 2 spacing: Theme.spacingXXS
DankIcon { DankIcon {
name: root.values[index].icon name: root.values[index].icon
+1 -1
View File
@@ -349,7 +349,7 @@ Item {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: modelData.label text: modelData.label
+2 -2
View File
@@ -556,7 +556,7 @@ Item {
id: rowIndicator id: rowIndicator
Row { Row {
spacing: 2 spacing: Theme.spacingXXS
Repeater { Repeater {
model: { model: {
@@ -614,7 +614,7 @@ Item {
id: columnIndicator id: columnIndicator
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
Repeater { Repeater {
model: { model: {
+3 -3
View File
@@ -1448,7 +1448,7 @@ Item {
Row { Row {
id: keyboardLayoutRow id: keyboardLayoutRow
spacing: 4 spacing: Theme.spacingXS
Item { Item {
width: Theme.iconSize width: Theme.iconSize
@@ -1518,7 +1518,7 @@ Item {
} }
Row { Row {
spacing: 6 spacing: Theme.spacingXS
visible: GreetdSettings.weatherEnabled && WeatherService.weather.available visible: GreetdSettings.weatherEnabled && WeatherService.weather.available
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@@ -1597,7 +1597,7 @@ Item {
} }
Row { Row {
spacing: 4 spacing: Theme.spacingXS
visible: BatteryService.batteryAvailable visible: BatteryService.batteryAvailable
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@@ -667,7 +667,7 @@ Item {
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
Row { Row {
width: parent.width width: parent.width
@@ -1246,7 +1246,7 @@ Item {
anchors.top: passwordLayout.bottom anchors.top: passwordLayout.bottom
anchors.topMargin: Theme.spacingS anchors.topMargin: Theme.spacingS
anchors.horizontalCenter: passwordLayout.horizontalCenter anchors.horizontalCenter: passwordLayout.horizontalCenter
spacing: 4 spacing: Theme.spacingXS
opacity: DMSService.capsLockState ? 1 : 0 opacity: DMSService.capsLockState ? 1 : 0
DankIcon { DankIcon {
@@ -1304,7 +1304,7 @@ Item {
Row { Row {
id: keyboardLayoutRow id: keyboardLayoutRow
spacing: 4 spacing: Theme.spacingXS
Item { Item {
width: Theme.iconSize width: Theme.iconSize
@@ -1546,7 +1546,7 @@ Item {
} }
Row { Row {
spacing: 6 spacing: Theme.spacingXS
visible: WeatherService.weather.available visible: WeatherService.weather.available
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@@ -1664,7 +1664,7 @@ Item {
} }
Row { Row {
spacing: 4 spacing: Theme.spacingXS
visible: BatteryService.batteryAvailable visible: BatteryService.batteryAvailable
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@@ -537,7 +537,7 @@ Item {
width: parent.width - Theme.spacingL * 2 width: parent.width - Theme.spacingL * 2
anchors.top: shortcutsHeader.bottom anchors.top: shortcutsHeader.bottom
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
width: parent.width width: parent.width
@@ -20,7 +20,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("↑/↓: Nav • Space: Expand • Enter: Action/Expand • E: Text") text: I18n.tr("↑/↓: Nav • Space: Expand • Enter: Action/Expand • E: Text")
@@ -248,7 +248,7 @@ Rectangle {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: overlayRow.width - Theme.iconSizeSmall - Theme.spacingM width: overlayRow.width - Theme.iconSizeSmall - Theme.spacingM
@@ -299,7 +299,7 @@ Rectangle {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: privacyRow.width - Theme.iconSizeSmall - Theme.spacingM width: privacyRow.width - Theme.iconSizeSmall - Theme.spacingM
+1 -1
View File
@@ -261,7 +261,7 @@ DankOSD {
x: parent.gap * 2 + Theme.iconSize x: parent.gap * 2 + Theme.iconSize
width: parent.width - Theme.iconSize - parent.gap * 3 width: parent.width - Theme.iconSize - parent.gap * 3
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 3 spacing: Theme.spacingXXS
StyledText { StyledText {
id: topText id: topText
+1 -1
View File
@@ -148,7 +148,7 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
clip: true clip: true
spacing: 4 spacing: Theme.spacingXS
model: DgopService.diskMounts model: DgopService.diskMounts
@@ -299,7 +299,7 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
clip: true clip: true
spacing: 2 spacing: Theme.spacingXXS
states: [ states: [
State { State {
@@ -410,7 +410,7 @@ Item {
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: Theme.spacingS anchors.leftMargin: Theme.spacingS
anchors.rightMargin: Theme.spacingS anchors.rightMargin: Theme.spacingS
spacing: 4 spacing: Theme.spacingXS
Item { Item {
Layout.fillWidth: headerItem.alignment === Text.AlignLeft Layout.fillWidth: headerItem.alignment === Text.AlignLeft
@@ -134,7 +134,7 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
clip: true clip: true
spacing: 8 spacing: Theme.spacingS
model: DgopService.availableGpus model: DgopService.availableGpus
+5 -5
View File
@@ -642,7 +642,7 @@ Item {
spacing: Theme.spacingL spacing: Theme.spacingL
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Version") text: I18n.tr("Version")
@@ -667,7 +667,7 @@ Item {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("API") text: I18n.tr("API")
@@ -692,7 +692,7 @@ Item {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Status") text: I18n.tr("Status")
@@ -702,7 +702,7 @@ Item {
} }
Row { Row {
spacing: 4 spacing: Theme.spacingXS
Rectangle { Rectangle {
width: 8 width: 8
@@ -738,7 +738,7 @@ Item {
Flow { Flow {
width: parent.width width: parent.width
spacing: 6 spacing: Theme.spacingS
Repeater { Repeater {
model: DMSService.capabilities model: DMSService.capabilities
+1 -1
View File
@@ -575,7 +575,7 @@ Item {
Column { Column {
width: parent.width - Theme.iconSize - Theme.spacingM - 8 width: parent.width - Theme.iconSize - Theme.spacingM - 8
spacing: 4 spacing: Theme.spacingXS
StyledText { StyledText {
text: I18n.tr("Set Custom Device Name", "Audio device rename dialog title") text: I18n.tr("Set Custom Device Name", "Audio device rename dialog title")
+1 -1
View File
@@ -701,7 +701,7 @@ Item {
Column { Column {
width: parent.width - 20 - Theme.spacingM - 24 - Theme.spacingM - Theme.spacingM - 60 - Theme.spacingM - 32 - Theme.spacingS width: parent.width - 20 - Theme.spacingM - 24 - Theme.spacingM - Theme.spacingM - 60 - Theme.spacingM - 32 - Theme.spacingS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
width: parent.width width: parent.width
+1 -1
View File
@@ -502,7 +502,7 @@ Item {
anchors.right: visibilityButton.left anchors.right: visibilityButton.left
anchors.rightMargin: Theme.spacingM anchors.rightMargin: Theme.spacingM
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: rowItem.present.text text: rowItem.present.text
@@ -350,7 +350,7 @@ FloatingWindow {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
width: parent.width - 44 - Theme.iconSize - Theme.spacingM * 3 width: parent.width - 44 - Theme.iconSize - Theme.spacingM * 3
Row { Row {
@@ -376,7 +376,7 @@ FloatingWindow {
Row { Row {
id: featuredWidgetRow id: featuredWidgetRow
anchors.centerIn: parent anchors.centerIn: parent
spacing: 2 spacing: Theme.spacingXXS
DankIcon { DankIcon {
name: "star" name: "star"
@@ -91,7 +91,7 @@ SettingsCard {
} }
contentItem: Column { contentItem: Column {
spacing: 2 spacing: Theme.spacingXXS
Rectangle { Rectangle {
width: parent.width width: parent.width
@@ -453,7 +453,7 @@ Item {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: parent.width - 40 - Theme.spacingM width: parent.width - 40 - Theme.spacingM
@@ -495,7 +495,7 @@ Item {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: parent.width - 40 - Theme.spacingM width: parent.width - 40 - Theme.spacingM
@@ -537,7 +537,7 @@ Item {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: parent.width - 40 - Theme.spacingM width: parent.width - 40 - Theme.spacingM
@@ -69,7 +69,7 @@ Rectangle {
Column { Column {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 2 spacing: Theme.spacingXXS
DankIcon { DankIcon {
name: root.isConnected ? "desktop_windows" : "desktop_access_disabled" name: root.isConnected ? "desktop_windows" : "desktop_access_disabled"
@@ -51,7 +51,7 @@ StyledRect {
Column { Column {
width: parent.width - Theme.iconSize - Theme.spacingM - (disconnectedBadge.visible ? disconnectedBadge.width + deleteButton.width + Theme.spacingS * 2 : disabledBadge.visible ? disabledBadge.width + Theme.spacingS : 0) 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 { StyledText {
text: DisplayConfigState.getOutputDisplayName(root.outputData, root.outputName) text: DisplayConfigState.getOutputDisplayName(root.outputData, root.outputName)
@@ -378,7 +378,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: { text: {
@@ -636,7 +636,7 @@ Item {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
StyledText { StyledText {
+7 -7
View File
@@ -127,7 +127,7 @@ Item {
Column { Column {
width: Math.max(0, parent.width - Theme.iconSize - defaultShortcutValue.width - Theme.spacingM * 2) width: Math.max(0, parent.width - Theme.iconSize - defaultShortcutValue.width - Theme.spacingM * 2)
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Default Launcher Shortcut") text: I18n.tr("Default Launcher Shortcut")
@@ -221,7 +221,7 @@ Item {
Column { Column {
width: Math.max(0, parent.width - Theme.iconSize - spotlightShortcutValue.width - Theme.spacingM * 2) width: Math.max(0, parent.width - Theme.iconSize - spotlightShortcutValue.width - Theme.spacingM * 2)
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Spotlight Bar Shortcut") text: I18n.tr("Spotlight Bar Shortcut")
@@ -806,7 +806,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: pluginDelegate.plugin?.name ?? pluginDelegate.modelData text: pluginDelegate.plugin?.name ?? pluginDelegate.modelData
@@ -989,7 +989,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
Row { Row {
spacing: Theme.spacingS spacing: Theme.spacingS
@@ -1244,7 +1244,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: modelData.name text: modelData.name
@@ -1355,7 +1355,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: modelData.name text: modelData.name
@@ -1501,7 +1501,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: modelData.name || I18n.tr("Unknown App") text: modelData.name || I18n.tr("Unknown App")
@@ -76,7 +76,7 @@ Item {
Column { Column {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
visible: NetworkService.ethernetDevices.length > 0 visible: NetworkService.ethernetDevices.length > 0
StyledText { StyledText {
@@ -139,7 +139,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
width: parent.width - 20 - Theme.spacingS width: parent.width - 20 - Theme.spacingS
StyledText { StyledText {
@@ -422,7 +422,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: modelData.id || I18n.tr("Unknown") text: modelData.id || I18n.tr("Unknown")
@@ -229,7 +229,7 @@ Item {
Column { Column {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
visible: DMSNetworkService.vpnAvailable && DMSNetworkService.profiles.length > 0 visible: DMSNetworkService.vpnAvailable && DMSNetworkService.profiles.length > 0
Repeater { Repeater {
@@ -290,7 +290,7 @@ Item {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: parent.width - 20 - ((canExpand ? 28 : 0) + (canDelete ? 28 : 0)) - Theme.spacingS * 4 width: parent.width - 20 - ((canExpand ? 28 : 0) + (canDelete ? 28 : 0)) - Theme.spacingS * 4
@@ -430,7 +430,7 @@ Item {
Column { Column {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
visible: (NetworkService.wifiNetworks?.length ?? 0) > 0 visible: (NetworkService.wifiNetworks?.length ?? 0) > 0
Repeater { Repeater {
@@ -526,7 +526,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
width: parent.width - 20 - Theme.spacingS width: parent.width - 20 - Theme.spacingS
Row { Row {
@@ -859,7 +859,7 @@ Item {
Column { Column {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
Repeater { Repeater {
model: savedWifiCard.expanded ? savedWifiCard.savedNetworks : [] model: savedWifiCard.expanded ? savedWifiCard.savedNetworks : []
@@ -935,7 +935,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
width: parent.width - 20 - Theme.spacingS width: parent.width - 20 - Theme.spacingS
Row { Row {
@@ -561,7 +561,7 @@ Item {
Column { Column {
width: parent.width width: parent.width
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Pattern") text: I18n.tr("Pattern")
@@ -584,7 +584,7 @@ Item {
Column { Column {
width: (parent.width - Theme.spacingS * 3) / 4 width: (parent.width - Theme.spacingS * 3) / 4
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Field") text: I18n.tr("Field")
@@ -605,7 +605,7 @@ Item {
Column { Column {
width: (parent.width - Theme.spacingS * 3) / 4 width: (parent.width - Theme.spacingS * 3) / 4
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Type") text: I18n.tr("Type")
@@ -625,7 +625,7 @@ Item {
Column { Column {
width: (parent.width - Theme.spacingS * 3) / 4 width: (parent.width - Theme.spacingS * 3) / 4
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Action") text: I18n.tr("Action")
@@ -646,7 +646,7 @@ Item {
Column { Column {
width: (parent.width - Theme.spacingS * 3) / 4 width: (parent.width - Theme.spacingS * 3) / 4
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Priority") text: I18n.tr("Priority")
@@ -930,7 +930,7 @@ FloatingWindow {
Column { Column {
width: parent.width - Theme.iconSize - Theme.spacingM - installButton.width - Theme.spacingM width: parent.width - Theme.iconSize - Theme.spacingM - installButton.width - Theme.spacingM
spacing: 2 spacing: Theme.spacingXXS
Row { Row {
spacing: Theme.spacingXS spacing: Theme.spacingXS
@@ -957,7 +957,7 @@ FloatingWindow {
Row { Row {
id: featuredRow id: featuredRow
anchors.centerIn: parent anchors.centerIn: parent
spacing: 2 spacing: Theme.spacingXXS
DankIcon { DankIcon {
name: "star" name: "star"
@@ -1053,7 +1053,7 @@ FloatingWindow {
Row { Row {
id: upvoteRow id: upvoteRow
anchors.centerIn: parent anchors.centerIn: parent
spacing: 2 spacing: Theme.spacingXXS
DankIcon { DankIcon {
name: "thumb_up" name: "thumb_up"
@@ -114,7 +114,7 @@ StyledRect {
Row { Row {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 2 spacing: Theme.spacingXXS
DankIcon { DankIcon {
id: incompatIcon id: incompatIcon
+5 -5
View File
@@ -930,7 +930,7 @@ Item {
Column { Column {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
visible: CupsService.printerNames.length > 0 visible: CupsService.printerNames.length > 0
Repeater { Repeater {
@@ -987,7 +987,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
width: parent.width - 20 - Theme.spacingS width: parent.width - 20 - Theme.spacingS
StyledText { StyledText {
@@ -1453,7 +1453,7 @@ Item {
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: Theme.spacingS anchors.rightMargin: Theme.spacingS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 4 spacing: Theme.spacingXS
Rectangle { Rectangle {
width: 24 width: 24
@@ -1601,7 +1601,7 @@ Item {
Column { Column {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
Repeater { Repeater {
model: CupsService.printerClasses model: CupsService.printerClasses
@@ -1632,7 +1632,7 @@ Item {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: modelData.name || I18n.tr("Unknown") text: modelData.name || I18n.tr("Unknown")
@@ -81,7 +81,7 @@ Item {
Column { Column {
width: (parent.width - deleteBtn.width - Theme.spacingS) / 2 width: (parent.width - deleteBtn.width - Theme.spacingS) / 2
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Pattern") text: I18n.tr("Pattern")
@@ -100,7 +100,7 @@ Item {
Column { Column {
width: (parent.width - deleteBtn.width - Theme.spacingS) / 2 width: (parent.width - deleteBtn.width - Theme.spacingS) / 2
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Replacement") text: I18n.tr("Replacement")
@@ -148,7 +148,7 @@ Item {
Column { Column {
width: 120 width: 120
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Type") text: I18n.tr("Type")
+1 -1
View File
@@ -425,7 +425,7 @@ FloatingWindow {
Column { Column {
width: parent.width - (hasPreview ? 180 : 48) - Theme.spacingM - installButton.width - Theme.spacingM width: parent.width - (hasPreview ? 180 : 48) - Theme.spacingM - installButton.width - Theme.spacingM
spacing: 6 spacing: Theme.spacingXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
Row { Row {
@@ -1415,7 +1415,7 @@ Item {
width: parent.width - Theme.spacingM * 2 width: parent.width - Theme.spacingM * 2
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
width: (parent.width - Theme.spacingL * 2) / 3 width: (parent.width - Theme.spacingL * 2) / 3
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@@ -1450,7 +1450,7 @@ Item {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
width: (parent.width - Theme.spacingL * 2) / 3 width: (parent.width - Theme.spacingL * 2) / 3
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@@ -1485,7 +1485,7 @@ Item {
} }
Column { Column {
spacing: 2 spacing: Theme.spacingXXS
width: (parent.width - Theme.spacingL * 2) / 3 width: (parent.width - Theme.spacingL * 2) / 3
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
visible: SessionData.themeModeAutoEnabled && SessionData.themeModeNextTransition visible: SessionData.themeModeAutoEnabled && SessionData.themeModeNextTransition
@@ -350,7 +350,7 @@ Item {
Column { Column {
width: (parent.width - Theme.spacingL) / 2 width: (parent.width - Theme.spacingL) / 2
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("• d - Day (1-31)") text: I18n.tr("• d - Day (1-31)")
@@ -381,7 +381,7 @@ Item {
Column { Column {
width: (parent.width - Theme.spacingL) / 2 width: (parent.width - Theme.spacingL) / 2
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("• MM - Month (01-12)") text: I18n.tr("• MM - Month (01-12)")
@@ -913,7 +913,7 @@ Item {
Column { Column {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Feels Like") text: I18n.tr("Feels Like")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
@@ -957,7 +957,7 @@ Item {
Column { Column {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Humidity") text: I18n.tr("Humidity")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
@@ -1001,7 +1001,7 @@ Item {
Column { Column {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Wind") text: I18n.tr("Wind")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
@@ -1058,7 +1058,7 @@ Item {
Column { Column {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Pressure") text: I18n.tr("Pressure")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
@@ -1108,7 +1108,7 @@ Item {
Column { Column {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Rain Chance") text: I18n.tr("Rain Chance")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
@@ -1152,7 +1152,7 @@ Item {
Column { Column {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: I18n.tr("Visibility") text: I18n.tr("Visibility")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
+1 -1
View File
@@ -182,7 +182,7 @@ Item {
Column { Column {
width: parent.width - Theme.iconSize - actionButtons.width - Theme.spacingM * 3 width: parent.width - Theme.iconSize - actionButtons.width - Theme.spacingM * 3
spacing: 2 spacing: Theme.spacingXXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
Row { Row {
+3 -3
View File
@@ -135,7 +135,7 @@ Item {
Row { Row {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 4 spacing: Theme.spacingXS
Rectangle { Rectangle {
width: 32 width: 32
@@ -562,7 +562,7 @@ Item {
Row { Row {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 4 spacing: Theme.spacingXS
Rectangle { Rectangle {
width: 28 width: 28
@@ -752,7 +752,7 @@ Item {
Row { Row {
anchors.centerIn: parent anchors.centerIn: parent
spacing: 4 spacing: Theme.spacingXS
Rectangle { Rectangle {
width: 28 width: 28
@@ -357,7 +357,7 @@ FloatingWindow {
Column { Column {
id: textColumn id: textColumn
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
width: parent.width - Theme.iconSize * 2 - Theme.spacingM * 4 + 4 width: parent.width - Theme.iconSize * 2 - Theme.spacingM * 4 + 4
StyledText { StyledText {
@@ -202,7 +202,7 @@ FloatingWindow {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
width: parent.width - 28 - Theme.spacingM * 3 - 24 width: parent.width - 28 - Theme.spacingM * 3 - 24
StyledText { StyledText {
@@ -283,26 +283,31 @@ FloatingWindow {
} }
function selectNext() { function selectNext() {
if (filteredApps.length === 0) return; if (filteredApps.length === 0)
return;
keyboardNavigationActive = true; keyboardNavigationActive = true;
selectedIndex = Math.min(selectedIndex + 1, filteredApps.length - 1); selectedIndex = Math.min(selectedIndex + 1, filteredApps.length - 1);
} }
function selectPrevious() { function selectPrevious() {
if (filteredApps.length === 0) return; if (filteredApps.length === 0)
return;
keyboardNavigationActive = true; keyboardNavigationActive = true;
selectedIndex = Math.max(selectedIndex - 1, -1); selectedIndex = Math.max(selectedIndex - 1, -1);
if (selectedIndex === -1) keyboardNavigationActive = false; if (selectedIndex === -1)
keyboardNavigationActive = false;
} }
function selectApp() { function selectApp() {
if (selectedIndex < 0 || selectedIndex >= filteredApps.length) return; if (selectedIndex < 0 || selectedIndex >= filteredApps.length)
return;
selectAppByIndex(selectedIndex); selectAppByIndex(selectedIndex);
} }
function selectAppByIndex(idx) { function selectAppByIndex(idx) {
const app = filteredApps[idx]; const app = filteredApps[idx];
if (!app) return; if (!app)
return;
root.appSelected(app.id || app.execString || ""); root.appSelected(app.id || app.execString || "");
hide(); hide();
} }
@@ -48,7 +48,7 @@ Rectangle {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: parent.width - Theme.iconSize - Theme.spacingM * 3 - buttonsRow.width width: parent.width - Theme.iconSize - Theme.spacingM * 3 - buttonsRow.width
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: root.displayedName text: root.displayedName
@@ -62,7 +62,7 @@ Rectangle {
Column { Column {
width: parent.width width: parent.width
spacing: 2 spacing: Theme.spacingXXS
Row { Row {
width: parent.width width: parent.width
@@ -40,7 +40,7 @@ StyledRect {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: parent.width - Theme.iconSize - openButton.width - Theme.spacingM * 2 width: parent.width - Theme.iconSize - openButton.width - Theme.spacingM * 2
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: root.settingLabel text: root.settingLabel
@@ -364,7 +364,7 @@ Column {
anchors.right: actionButtons.left anchors.right: actionButtons.left
anchors.rightMargin: Theme.spacingM anchors.rightMargin: Theme.spacingM
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: modelData.text text: modelData.text
@@ -1279,7 +1279,7 @@ Column {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
Rectangle { Rectangle {
width: parent.width width: parent.width
@@ -1417,7 +1417,7 @@ Column {
id: contentColumn id: contentColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
Rectangle { Rectangle {
width: parent.width width: parent.width
@@ -1616,7 +1616,7 @@ Column {
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: Theme.spacingXS anchors.rightMargin: Theme.spacingXS
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
DankActionButton { DankActionButton {
buttonSize: 28 buttonSize: 28
@@ -1681,7 +1681,7 @@ Column {
id: kbdLayoutCtxMenuColumn id: kbdLayoutCtxMenuColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
Rectangle { Rectangle {
width: parent.width width: parent.width
@@ -1766,7 +1766,7 @@ Column {
id: focusedWindowMenuColumn id: focusedWindowMenuColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
Rectangle { Rectangle {
width: parent.width width: parent.width
@@ -1935,7 +1935,7 @@ Column {
id: diskMenuColumn id: diskMenuColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
Rectangle { Rectangle {
width: parent.width width: parent.width
@@ -2315,7 +2315,7 @@ Column {
id: menuColumn id: menuColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
Item { Item {
id: controlCenterContentMetrics id: controlCenterContentMetrics
@@ -2615,7 +2615,7 @@ Column {
id: menuPrivacyColumn id: menuPrivacyColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
Rectangle { Rectangle {
width: parent.width width: parent.width
@@ -2840,7 +2840,7 @@ Column {
id: gpuMenuColumn id: gpuMenuColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
Repeater { Repeater {
model: DgopService.availableGpus || [] model: DgopService.availableGpus || []
@@ -2876,7 +2876,7 @@ Column {
Column { Column {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: modelData.driver ? modelData.driver.toUpperCase() : "" text: modelData.driver ? modelData.driver.toUpperCase() : ""
@@ -2949,7 +2949,7 @@ Column {
id: batteryMenuColumn id: batteryMenuColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
Rectangle { Rectangle {
width: parent.width width: parent.width
@@ -3198,7 +3198,7 @@ Column {
id: musicMenuColumn id: musicMenuColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
Repeater { Repeater {
model: [ model: [
@@ -3315,7 +3315,7 @@ Column {
id: runningAppsMenuColumn id: runningAppsMenuColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: Theme.spacingS anchors.margins: Theme.spacingS
spacing: 2 spacing: Theme.spacingXXS
Rectangle { Rectangle {
width: parent.width width: parent.width
@@ -646,7 +646,7 @@ Item {
ColumnLayout { ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
spacing: 2 spacing: Theme.spacingXXS
StyledText { StyledText {
text: ruleDelegateItem.displayName text: ruleDelegateItem.displayName
@@ -715,7 +715,7 @@ Item {
RowLayout { RowLayout {
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
spacing: 2 spacing: Theme.spacingXXS
DankActionButton { DankActionButton {
buttonSize: 28 buttonSize: 28
@@ -899,7 +899,7 @@ Item {
ColumnLayout { ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
spacing: 2 spacing: Theme.spacingXXS
RowLayout { RowLayout {
Layout.fillWidth: true Layout.fillWidth: true
@@ -15,7 +15,7 @@ PluginComponent {
horizontalBarPill: Component { horizontalBarPill: Component {
Row { Row {
spacing: 3 spacing: Theme.spacingXS
DankIcon { DankIcon {
name: root.displayIcon name: root.displayIcon
@@ -1,5 +1,6 @@
import QtQuick import QtQuick
import QtQuick.Controls import QtQuick.Controls
import qs.Common
import qs.Widgets import qs.Widgets
FocusScope { FocusScope {
@@ -14,7 +15,7 @@ FocusScope {
id: settingsColumn id: settingsColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: 16 anchors.margins: 16
spacing: 16 spacing: Theme.spacingL
Text { Text {
text: "Launcher Example Plugin Settings" text: "Launcher Example Plugin Settings"
@@ -38,7 +39,7 @@ FocusScope {
} }
Column { Column {
spacing: 12 spacing: Theme.spacingM
width: parent.width - 32 width: parent.width - 32
Text { Text {
@@ -57,7 +58,7 @@ FocusScope {
} }
Row { Row {
spacing: 12 spacing: Theme.spacingM
CheckBox { CheckBox {
id: noTriggerToggle id: noTriggerToggle
@@ -91,18 +92,18 @@ FocusScope {
} }
onCheckedChanged: { onCheckedChanged: {
saveSettings("noTrigger", checked) saveSettings("noTrigger", checked);
if (checked) { if (checked) {
saveSettings("trigger", "") saveSettings("trigger", "");
} else { } else {
saveSettings("trigger", triggerField.text || "#") saveSettings("trigger", triggerField.text || "#");
} }
} }
} }
} }
Row { Row {
spacing: 12 spacing: Theme.spacingM
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
visible: !noTriggerToggle.checked visible: !noTriggerToggle.checked
@@ -124,9 +125,9 @@ FocusScope {
textColor: "#FFFFFF" textColor: "#FFFFFF"
onTextEdited: { onTextEdited: {
const newTrigger = text.trim() const newTrigger = text.trim();
saveSettings("trigger", newTrigger || "#") saveSettings("trigger", newTrigger || "#");
saveSettings("noTrigger", newTrigger === "") saveSettings("noTrigger", newTrigger === "");
} }
} }
@@ -146,7 +147,7 @@ FocusScope {
} }
Column { Column {
spacing: 8 spacing: Theme.spacingS
width: parent.width - 32 width: parent.width - 32
Text { Text {
@@ -157,7 +158,7 @@ FocusScope {
} }
Column { Column {
spacing: 4 spacing: Theme.spacingXS
leftPadding: 16 leftPadding: 16
Text { Text {
@@ -187,7 +188,7 @@ FocusScope {
} }
Column { Column {
spacing: 8 spacing: Theme.spacingS
width: parent.width - 32 width: parent.width - 32
Text { Text {
@@ -198,7 +199,7 @@ FocusScope {
} }
Column { Column {
spacing: 4 spacing: Theme.spacingXS
leftPadding: 16 leftPadding: 16
bottomPadding: 24 bottomPadding: 24
@@ -231,14 +232,14 @@ FocusScope {
function saveSettings(key, value) { function saveSettings(key, value) {
if (pluginService) { if (pluginService) {
pluginService.savePluginData("launcherExample", key, value) pluginService.savePluginData("launcherExample", key, value);
} }
} }
function loadSettings(key, defaultValue) { function loadSettings(key, defaultValue) {
if (pluginService) { if (pluginService) {
return pluginService.loadPluginData("launcherExample", key, defaultValue) return pluginService.loadPluginData("launcherExample", key, defaultValue);
} }
return defaultValue return defaultValue;
} }
} }
@@ -1,4 +1,5 @@
import QtQuick import QtQuick
import qs.Common
import qs.Widgets import qs.Widgets
FocusScope { FocusScope {
@@ -13,7 +14,7 @@ FocusScope {
id: settingsColumn id: settingsColumn
anchors.fill: parent anchors.fill: parent
anchors.margins: 16 anchors.margins: 16
spacing: 16 spacing: Theme.spacingL
Text { Text {
text: "Quick Notes Settings" text: "Quick Notes Settings"
@@ -37,7 +38,7 @@ FocusScope {
} }
Column { Column {
spacing: 12 spacing: Theme.spacingM
width: parent.width - 32 width: parent.width - 32
Text { Text {
@@ -48,7 +49,7 @@ FocusScope {
} }
Row { Row {
spacing: 12 spacing: Theme.spacingM
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
@@ -82,7 +83,7 @@ FocusScope {
} }
Column { Column {
spacing: 12 spacing: Theme.spacingM
width: parent.width - 32 width: parent.width - 32
Text { Text {
@@ -93,7 +94,7 @@ FocusScope {
} }
Row { Row {
spacing: 12 spacing: Theme.spacingM
Text { Text {
text: "Max notes:" text: "Max notes:"
@@ -137,7 +138,7 @@ FocusScope {
Row { Row {
id: clearRow id: clearRow
anchors.centerIn: parent anchors.centerIn: parent
spacing: 8 spacing: Theme.spacingS
Text { Text {
text: "🗑" text: "🗑"
@@ -174,7 +175,7 @@ FocusScope {
} }
Column { Column {
spacing: 8 spacing: Theme.spacingS
width: parent.width - 32 width: parent.width - 32
Text { Text {
@@ -185,7 +186,7 @@ FocusScope {
} }
Column { Column {
spacing: 4 spacing: Theme.spacingXS
leftPadding: 16 leftPadding: 16
bottomPadding: 24 bottomPadding: 24
+1 -1
View File
@@ -458,7 +458,7 @@ Item {
model: ScriptModel { model: ScriptModel {
values: dropdownMenu.filteredOptions values: dropdownMenu.filteredOptions
} }
spacing: 2 spacing: Theme.spacingXXS
interactive: true interactive: true
flickDeceleration: 1500 flickDeceleration: 1500
+1 -1
View File
@@ -203,7 +203,7 @@ Rectangle {
Flow { Flow {
width: parent.width width: parent.width
spacing: 4 spacing: Theme.spacingXS
Repeater { Repeater {
model: modelData.icons model: modelData.icons
+1 -1
View File
@@ -204,7 +204,7 @@ Item {
anchors.fill: parent anchors.fill: parent
clip: true clip: true
model: searchResultsModel model: searchResultsModel
spacing: 2 spacing: Theme.spacingXXS
delegate: StyledRect { delegate: StyledRect {
width: searchResultsList.width width: searchResultsList.width

Some files were not shown because too many files have changed in this diff Show More