1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-30 00:12:50 -05:00

Fix bindings in center section & icon sizes

This commit is contained in:
bbedward
2025-10-02 21:41:24 -04:00
parent 414a1ad4d2
commit 731db13c14
4 changed files with 11 additions and 13 deletions

View File

@@ -372,11 +372,11 @@ Item {
item.spacerSize = Qt.binding(() => model.size || 20) item.spacerSize = Qt.binding(() => model.size || 20)
} }
if (root.axis && "axis" in item) { if (root.axis && "axis" in item) {
item.axis = root.axis item.axis = Qt.binding(() => root.axis)
} }
if (root.axis && "isVertical" in item) { if (root.axis && "isVertical" in item) {
try { try {
item.isVertical = root.axis.isVertical item.isVertical = Qt.binding(() => root.axis.isVertical)
} catch (e) { } catch (e) {
} }
} }
@@ -386,13 +386,13 @@ Item {
item.section = root.section item.section = root.section
} }
if ("parentScreen" in item) { if ("parentScreen" in item) {
item.parentScreen = root.parentScreen item.parentScreen = Qt.binding(() => root.parentScreen)
} }
if ("widgetThickness" in item) { if ("widgetThickness" in item) {
item.widgetThickness = root.widgetThickness item.widgetThickness = Qt.binding(() => root.widgetThickness)
} }
if ("barThickness" in item) { if ("barThickness" in item) {
item.barThickness = root.barThickness item.barThickness = Qt.binding(() => root.barThickness)
} }
// Inject PluginService for plugin widgets // Inject PluginService for plugin widgets

View File

@@ -50,7 +50,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
name: "content_paste" name: "content_paste"
size: widgetThickness - 8 size: Theme.iconSize - 6
color: Theme.surfaceText color: Theme.surfaceText
} }
} }

View File

@@ -56,8 +56,8 @@ Item {
SystemLogo { SystemLogo {
visible: SettingsData.useOSLogo visible: SettingsData.useOSLogo
anchors.centerIn: parent anchors.centerIn: parent
width: widgetThickness - 8 width: Theme.iconSize - 3
height: widgetThickness - 8 height: Theme.iconSize - 3
colorOverride: SettingsData.osLogoColorOverride colorOverride: SettingsData.osLogoColorOverride
brightnessOverride: SettingsData.osLogoBrightness brightnessOverride: SettingsData.osLogoBrightness
contrastOverride: SettingsData.osLogoContrast contrastOverride: SettingsData.osLogoContrast
@@ -65,11 +65,9 @@ Item {
DankIcon { DankIcon {
visible: !SettingsData.useOSLogo visible: !SettingsData.useOSLogo
anchors.horizontalCenter: parent.horizontalCenter anchors.centerIn: parent
anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: 1
name: "apps" name: "apps"
size: widgetThickness - 8 size: Theme.iconSize - 6
color: Theme.surfaceText color: Theme.surfaceText
} }
} }

View File

@@ -57,7 +57,7 @@ Item {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
name: SessionData.doNotDisturb ? "notifications_off" : "notifications" name: SessionData.doNotDisturb ? "notifications_off" : "notifications"
size: widgetThickness - 8 size: Theme.iconSize - 6
color: SessionData.doNotDisturb ? Theme.error : (notificationArea.containsMouse || root.isActive ? Theme.primary : Theme.surfaceText) color: SessionData.doNotDisturb ? Theme.error : (notificationArea.containsMouse || root.isActive ? Theme.primary : Theme.surfaceText)
} }