mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-10 06:19:36 -04:00
fix(Dock): Refactor & Fix Dock in FrameModes. Updates to Zone offset in Standalone & Connected modes
- Fixed hairline seam in some connected mode variants - Moved dock-related properties to a new DockGeometry component for a future base
This commit is contained in:
@@ -10,6 +10,7 @@ Item {
|
||||
|
||||
property var parentModal: null
|
||||
readonly property bool connectedFrameModeActive: SettingsData.connectedFrameModeActive
|
||||
readonly property bool connectedPersistentDockActive: connectedFrameModeActive && SettingsData.showDock && !SettingsData.dockAutoHide && !SettingsData.dockSmartAutoHide
|
||||
|
||||
FileBrowserModal {
|
||||
id: dockLogoFileBrowser
|
||||
@@ -611,16 +612,18 @@ Item {
|
||||
value: SettingsData.dockSpacing
|
||||
minimum: 0
|
||||
maximum: 32
|
||||
unit: "px"
|
||||
defaultValue: 8
|
||||
onSliderValueChanged: newValue => SettingsData.set("dockSpacing", newValue)
|
||||
}
|
||||
|
||||
SettingsSliderRow {
|
||||
text: I18n.tr("Exclusive Zone Offset")
|
||||
visible: !root.connectedFrameModeActive
|
||||
visible: !root.connectedFrameModeActive || root.connectedPersistentDockActive
|
||||
value: SettingsData.dockBottomGap
|
||||
minimum: -100
|
||||
maximum: 100
|
||||
unit: "px"
|
||||
defaultValue: 0
|
||||
onSliderValueChanged: newValue => SettingsData.set("dockBottomGap", newValue)
|
||||
}
|
||||
@@ -631,6 +634,7 @@ Item {
|
||||
value: SettingsData.dockMargin
|
||||
minimum: 0
|
||||
maximum: 100
|
||||
unit: "px"
|
||||
defaultValue: 0
|
||||
onSliderValueChanged: newValue => SettingsData.set("dockMargin", newValue)
|
||||
}
|
||||
@@ -639,7 +643,7 @@ Item {
|
||||
SettingsControlledByFrame {
|
||||
visible: root.connectedFrameModeActive
|
||||
parentModal: root.parentModal
|
||||
settingLabel: I18n.tr("Dock spacing, transparency, and border")
|
||||
settingLabel: I18n.tr("Dock margin, transparency, and border")
|
||||
reason: I18n.tr("Managed by Frame in Connected Mode")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user