Commit bda79fc5 authored by Nate Graham's avatar Nate Graham
Browse files

Give Sort button an icon

BUG: 448097
FIXED-IN: 22.04
parent 534942d3
Pipeline #123144 passed with stage
in 3 minutes and 54 seconds
......@@ -78,17 +78,26 @@ Item {
// that opens a dropdown menu
// TODO: Port more fully to Kirigami so we get this for free
contentItem: RowLayout {
spacing: Kirigami.Units.largeSpacing
spacing: Kirigami.Units.smallSpacing
Label {
Kirigami.Icon {
Layout.leftMargin: Kirigami.Units.largeSpacing
implicitWidth: Kirigami.Units.iconSizes.smallMedium
implicitHeight: Kirigami.Units.iconSizes.smallMedium
source: 'view-sort'
isMask: true
}
Label {
text: if (sortMenu.sortRoleName !== "") {
i18nc("Sort By Menu Title with no sort selected", "Sort: %1", sortMenu.sortRoleName)
} else {
i18nc("Sort By Menu Title with no sort selected", "Sort")
}
}
Kirigami.Icon {
Layout.leftMargin: Kirigami.Units.smallSpacing
Layout.rightMargin: Kirigami.Units.largeSpacing
implicitWidth: Kirigami.Units.iconSizes.small
implicitHeight: Kirigami.Units.iconSizes.small
......
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