tray: open settings button matches other popouts
This commit is contained in:
parent
a10c22480c
commit
b1e5660c56
3 changed files with 3 additions and 5 deletions
|
|
@ -110,7 +110,7 @@ Item {
|
||||||
Layout.topMargin: Appearance.spacing.normal
|
Layout.topMargin: Appearance.spacing.normal
|
||||||
color: Colours.palette.m3primaryContainer
|
color: Colours.palette.m3primaryContainer
|
||||||
onColor: Colours.palette.m3onPrimaryContainer
|
onColor: Colours.palette.m3onPrimaryContainer
|
||||||
text: qsTr("Open Settings")
|
text: qsTr("Open settings")
|
||||||
icon: "settings"
|
icon: "settings"
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
|
||||||
|
|
@ -170,7 +170,7 @@ ColumnLayout {
|
||||||
Layout.topMargin: Appearance.spacing.normal
|
Layout.topMargin: Appearance.spacing.normal
|
||||||
color: Colours.palette.m3primaryContainer
|
color: Colours.palette.m3primaryContainer
|
||||||
onColor: Colours.palette.m3onPrimaryContainer
|
onColor: Colours.palette.m3onPrimaryContainer
|
||||||
text: qsTr("Open Settings")
|
text: qsTr("Open settings")
|
||||||
icon: "settings"
|
icon: "settings"
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ StyledRect {
|
||||||
property string icon: ""
|
property string icon: ""
|
||||||
|
|
||||||
implicitWidth: rowLayout.implicitWidth + Appearance.padding.normal * 2
|
implicitWidth: rowLayout.implicitWidth + Appearance.padding.normal * 2
|
||||||
implicitHeight: rowLayout.implicitHeight + Appearance.padding.small
|
implicitHeight: rowLayout.implicitHeight + Appearance.padding.small * 2
|
||||||
radius: Appearance.rounding.normal
|
radius: Appearance.rounding.normal
|
||||||
|
|
||||||
StateLayer {
|
StateLayer {
|
||||||
|
|
@ -38,12 +38,10 @@ StyledRect {
|
||||||
visible: root.icon.length > 0
|
visible: root.icon.length > 0
|
||||||
text: root.icon
|
text: root.icon
|
||||||
color: root.onColor
|
color: root.onColor
|
||||||
font.pointSize: Appearance.font.size.large
|
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: label
|
id: label
|
||||||
Layout.leftMargin: root.icon.length > 0 ? Appearance.padding.smaller : 0
|
|
||||||
color: parent.parent.onColor
|
color: parent.parent.onColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue