[ToolButtonStyle] Fix menu arrow

This fixes the size of the icon as well as its color group.

REVIEW: 128870
This commit is contained in:
Kai Uwe Broulik 2016-09-28 12:31:36 +02:00
parent 014d417080
commit b115ea1c55

View File

@ -103,16 +103,18 @@ QtQuickControlStyle.ButtonStyle {
visible: when visible: when
Layout.minimumWidth: units.iconSizes.small Layout.minimumWidth: units.iconSizes.small
Layout.maximumWidth: Layout.minimumWidth Layout.maximumWidth: Layout.minimumWidth
Layout.minimumHeight: Layout.minimumWidth
Layout.maximumHeight: Layout.maximumWidth
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
height: width
source: Component { source: Component {
PlasmaCore.SvgItem { PlasmaCore.SvgItem {
visible: control.menu !== null visible: control.menu !== null
anchors.fill: parent
svg: PlasmaCore.Svg { svg: PlasmaCore.Svg {
imagePath: "widgets/arrows" imagePath: "widgets/arrows"
colorGroup: style.controlHovered || !style.flat ? PlasmaCore.Theme.ButtonColorGroup : PlasmaCore.Theme.NormalColorGroup colorGroup: style.controlHovered || !style.flat ? PlasmaCore.Theme.ButtonColorGroup : PlasmaCore.ColorScope.colorGroup
} }
elementId: "down-arrow" elementId: "down-arrow"
} }