[pc3] Make ToolBar more aligned with qqc2-desktop-style one
The qqc2-desktop-style one has an implicit height of 40 plus some other tweaks
This commit is contained in:
parent
6329eb7af4
commit
52f81b4630
@ -24,15 +24,17 @@ import org.kde.plasma.core 2.0 as PlasmaCore
|
|||||||
T.ToolBar {
|
T.ToolBar {
|
||||||
id: control
|
id: control
|
||||||
|
|
||||||
implicitWidth: contentWidth + leftPadding + rightPadding
|
implicitWidth: Math.max(background ? background.implicitWidth : 0, contentWidth + leftPadding + rightPadding)
|
||||||
implicitHeight: contentHeight + topPadding + bottomPadding
|
implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight + topPadding + bottomPadding)
|
||||||
|
|
||||||
contentWidth: contentChildren[0].implicitWidth
|
contentWidth: contentChildren[0].implicitWidth
|
||||||
contentHeight: contentChildren[0].implicitHeight
|
contentHeight: contentChildren[0].implicitHeight
|
||||||
|
|
||||||
|
padding: units.smallSpacing
|
||||||
contentItem: Item { }
|
contentItem: Item { }
|
||||||
|
|
||||||
background: PlasmaCore.FrameSvgItem {
|
background: PlasmaCore.FrameSvgItem {
|
||||||
|
implicitHeight: 40
|
||||||
imagePath: "widgets/toolbar"
|
imagePath: "widgets/toolbar"
|
||||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||||
enabledBorders: control.position == T.ToolBar.Header ? PlasmaCore.FrameSvgItem.BottomBorder : PlasmaCore.FrameSvgItem.TopBorder
|
enabledBorders: control.position == T.ToolBar.Header ? PlasmaCore.FrameSvgItem.BottomBorder : PlasmaCore.FrameSvgItem.TopBorder
|
||||||
|
Loading…
x
Reference in New Issue
Block a user