summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rosca <[email protected]>2017-03-12 09:16:10 +0100
committerDavid Rosca <[email protected]>2017-03-16 15:03:32 +0100
commit2afa5a416eab0fe6d46874cb9f259ed51358b86a (patch)
tree658b85df4e67b047bf50c7920f3ff7da1b94d6a2
parent4d4867b8999617ac6ebfc613a1716b4950084765 (diff)
Applet: Add spacing to context menu button + same size for volume indicator
Add small spacing to context menu button icon to make it look like other ToolButtons. Also use small icon size for volume indicator instead of making it relative to slider height as that will change depending on used theme. Differential Revision: https://phabricator.kde.org/D5024
-rw-r--r--applet/contents/ui/ListItemBase.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/applet/contents/ui/ListItemBase.qml b/applet/contents/ui/ListItemBase.qml
index 4796ad1..c11d3b0 100644
--- a/applet/contents/ui/ListItemBase.qml
+++ b/applet/contents/ui/ListItemBase.qml
@@ -108,13 +108,14 @@ PlasmaComponents.ListItem {
}
PlasmaComponents.ToolButton {
id: contextMenuButton
- Layout.preferredHeight: units.iconSizes.small
+ Layout.preferredHeight: units.iconSizes.small + units.smallSpacing * 2
Layout.preferredWidth: Layout.preferredHeight
checkable: true
onClicked: contextMenu.show()
PlasmaCore.IconItem {
anchors.fill: parent
+ anchors.margins: units.smallSpacing
source: "application-menu"
// From Plasma's ToolButtonStyle:
@@ -127,8 +128,7 @@ PlasmaComponents.ListItem {
RowLayout {
PlasmaCore.IconItem {
readonly property bool isPlayback: type.substring(0, 4) == "sink"
- roundToIconSize: false
- Layout.preferredWidth: Math.round(slider.height * 0.95)
+ Layout.preferredWidth: units.iconSizes.small
Layout.preferredHeight: Layout.preferredWidth
source: Icon.name(Volume, Muted, isPlayback ? "audio-volume" : "microphone-sensitivity")