Taskbar: small tweaks for better compliance to codebase
This commit is contained in:
parent
51ea837cd0
commit
68a44b6ef7
1 changed files with 5 additions and 4 deletions
|
|
@ -11,9 +11,10 @@ import qs.Widgets
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
property ShellScreen modelData
|
property ShellScreen screen
|
||||||
readonly property real scaling: modelData ? ScalingService.scale(modelData) : 1
|
property real scaling: ScalingService.scale(screen)
|
||||||
readonly property real itemSize: 32 * scaling
|
|
||||||
|
readonly property real itemSize: Style.baseWidgetSize * 0.8 * scaling
|
||||||
|
|
||||||
// Always visible when there are toplevels
|
// Always visible when there are toplevels
|
||||||
implicitWidth: taskbarRow.width + Style.marginM * scaling * 2
|
implicitWidth: taskbarRow.width + Style.marginM * scaling * 2
|
||||||
|
|
@ -25,7 +26,7 @@ Rectangle {
|
||||||
id: taskbarRow
|
id: taskbarRow
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
spacing: Style.marginXS * root.scaling
|
spacing: Style.marginXXS * root.scaling
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: ToplevelManager && ToplevelManager.toplevels ? ToplevelManager.toplevels : []
|
model: ToplevelManager && ToplevelManager.toplevels ? ToplevelManager.toplevels : []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue