[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 {
|
||||
id: control
|
||||
|
||||
implicitWidth: contentWidth + leftPadding + rightPadding
|
||||
implicitHeight: contentHeight + topPadding + bottomPadding
|
||||
implicitWidth: Math.max(background ? background.implicitWidth : 0, contentWidth + leftPadding + rightPadding)
|
||||
implicitHeight: Math.max(background ? background.implicitHeight : 0, contentHeight + topPadding + bottomPadding)
|
||||
|
||||
contentWidth: contentChildren[0].implicitWidth
|
||||
contentHeight: contentChildren[0].implicitHeight
|
||||
|
||||
padding: units.smallSpacing
|
||||
contentItem: Item { }
|
||||
|
||||
background: PlasmaCore.FrameSvgItem {
|
||||
implicitHeight: 40
|
||||
imagePath: "widgets/toolbar"
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
enabledBorders: control.position == T.ToolBar.Header ? PlasmaCore.FrameSvgItem.BottomBorder : PlasmaCore.FrameSvgItem.TopBorder
|
||||
|
Loading…
Reference in New Issue
Block a user