Commit e1f90dbf authored by Marco Martin's avatar Marco Martin

square and smaller icons

parent 72275fb7
...@@ -28,10 +28,11 @@ ColumnLayout { ...@@ -28,10 +28,11 @@ ColumnLayout {
spacing: units.smallSpacing spacing: units.smallSpacing
Rectangle { Rectangle {
Layout.preferredWidth: units.iconSizes.large + units.smallSpacing * 6 Layout.preferredWidth: units.iconSizes.large + units.smallSpacing * 2
Layout.minimumHeight: width Layout.minimumHeight: width
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
radius: width radius: units.smallSpacing
border.color: Qt.rgba(PlasmaCore.ColorScope.textColor.r, PlasmaCore.ColorScope.textColor.g, PlasmaCore.ColorScope.textColor.b, 0.2)
color: toggled ? color: toggled ?
Qt.rgba(PlasmaCore.ColorScope.highlightColor.r, PlasmaCore.ColorScope.highlightColor.g, PlasmaCore.ColorScope.highlightColor.b, iconMouseArea.pressed ? 0.5 : 0.3) : Qt.rgba(PlasmaCore.ColorScope.highlightColor.r, PlasmaCore.ColorScope.highlightColor.g, PlasmaCore.ColorScope.highlightColor.b, iconMouseArea.pressed ? 0.5 : 0.3) :
Qt.rgba(PlasmaCore.ColorScope.textColor.r, PlasmaCore.ColorScope.textColor.g, PlasmaCore.ColorScope.textColor.b, iconMouseArea.pressed ? 0.5 : 0.1) Qt.rgba(PlasmaCore.ColorScope.textColor.r, PlasmaCore.ColorScope.textColor.g, PlasmaCore.ColorScope.textColor.b, iconMouseArea.pressed ? 0.5 : 0.1)
...@@ -40,7 +41,7 @@ ColumnLayout { ...@@ -40,7 +41,7 @@ ColumnLayout {
colorGroup: PlasmaCore.ColorScope.colorGroup colorGroup: PlasmaCore.ColorScope.colorGroup
anchors { anchors {
fill: parent fill: parent
margins: units.smallSpacing * 3 margins: units.smallSpacing * 2
} }
source: model.icon source: model.icon
MouseArea { MouseArea {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment