Dock: converted to Layout
This commit is contained in:
parent
78cb7d4c15
commit
ad305b3754
1 changed files with 9 additions and 7 deletions
|
|
@ -130,7 +130,7 @@ Variants {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: dockContainer
|
id: dockContainer
|
||||||
width: dock.width + 48 * scaling
|
width: dockLayout.implicitWidth + 48 * scaling
|
||||||
height: iconSize * 1.4 * scaling
|
height: iconSize * 1.4 * scaling
|
||||||
color: Qt.alpha(Color.mSurface, Settings.data.dock.backgroundOpacity)
|
color: Qt.alpha(Color.mSurface, Settings.data.dock.backgroundOpacity)
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
@ -178,7 +178,7 @@ Variants {
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: dock
|
id: dock
|
||||||
width: runningAppsRow.width
|
width: dockLayout.implicitWidth
|
||||||
height: parent.height - (20 * scaling)
|
height: parent.height - (20 * scaling)
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
|
|
@ -194,10 +194,10 @@ Variants {
|
||||||
return Icons.iconForAppId(toplevel.appId?.toLowerCase())
|
return Icons.iconForAppId(toplevel.appId?.toLowerCase())
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
RowLayout {
|
||||||
id: runningAppsRow
|
id: dockLayout
|
||||||
spacing: Style.marginL * scaling
|
spacing: Style.marginL * scaling
|
||||||
height: parent.height
|
Layout.preferredHeight: parent.height
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
|
|
@ -205,8 +205,10 @@ Variants {
|
||||||
|
|
||||||
delegate: Rectangle {
|
delegate: Rectangle {
|
||||||
id: appButton
|
id: appButton
|
||||||
width: iconSize * scaling
|
Layout.preferredWidth: iconSize * scaling
|
||||||
height: iconSize * scaling
|
Layout.preferredHeight: iconSize * scaling
|
||||||
|
Layout.alignment: Qt.AlignCenter
|
||||||
|
|
||||||
color: Color.transparent
|
color: Color.transparent
|
||||||
radius: Style.radiusM * scaling
|
radius: Style.radiusM * scaling
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue