Settings: New Dock tab.
This commit is contained in:
parent
6f70a98b83
commit
c5ca758d3e
6 changed files with 99 additions and 76 deletions
|
|
@ -32,7 +32,6 @@ Variants {
|
|||
|
||||
screen: modelData
|
||||
|
||||
|
||||
readonly property bool autoHide: Settings.data.dock.autoHide
|
||||
readonly property int hideDelay: 500
|
||||
readonly property int showDelay: 100
|
||||
|
|
@ -41,7 +40,7 @@ Variants {
|
|||
readonly property int peekHeight: 7 * scaling
|
||||
readonly property int fullHeight: dockContainer.height
|
||||
readonly property int iconSize: 36 * scaling
|
||||
readonly property int floatingMargin: 12 * scaling // Margin to make dock float
|
||||
readonly property int floatingMargin: Settings.data.dock.floatingRatio * Style.marginL * scaling // Margin to make dock float
|
||||
|
||||
// Bar detection and positioning properties
|
||||
readonly property bool hasBar: modelData.name ? (Settings.data.bar.monitors.includes(modelData.name)
|
||||
|
|
@ -65,7 +64,7 @@ Variants {
|
|||
WlrLayershell.exclusionMode: Settings.data.dock.exclusive ? ExclusionMode.Auto : ExclusionMode.Ignore
|
||||
|
||||
// Set the window size - include extra height only if bar is at bottom
|
||||
implicitWidth: dockContainer.width + (floatingMargin * 2)
|
||||
implicitWidth: dockContainer.width + (Style.marginM * 2 * scaling)
|
||||
implicitHeight: fullHeight + floatingMargin + (barAtBottom ? barHeight + dockSpacing : 0)
|
||||
|
||||
// Position the entire window above the bar only when bar is at bottom
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue