Skip to content

Commit

Permalink
Add missing breeze-icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuperino committed Sep 29, 2024
1 parent 9f132fd commit 3483cec
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ set(icon_files
icons/16/circular-arrow-shape.svg
icons/16/key-enter.svg
icons/16/edit-opacity.svg
icons/16/edit-undo.svg
icons/16/edit-redo.svg
icons/16/mail-mark-unread.svg
icons/16/draw-star.svg
icons/16/edit-find.svg
Expand Down
13 changes: 13 additions & 0 deletions src/icons/16/edit-redo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/icons/16/edit-undo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions src/kirigami_ui/PrompterPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ Kirigami.Page {
id: decreaseVelocityButton
enabled: Kirigami.Settings.isMobile
text: pageStack.globalToolBar.actualStyle === Kirigami.ApplicationHeaderStyle.None ? i18n("Decrease velocity") : ""
icon.name: Qt.application.layoutDirection === Qt.RightToLeft ? "go-previous-rtl" : "go-previous"
icon.source: Qt.application.layoutDirection === Qt.RightToLeft ? "../icons/go-next.svg" : "../icons/go-previous.svg"
onTriggered: {
if (parseInt(prompter.state) === Prompter.States.Prompting)
Expand All @@ -91,7 +90,6 @@ Kirigami.Page {
id: increaseVelocityButton
enabled: Kirigami.Settings.isMobile
text: pageStack.globalToolBar.actualStyle === Kirigami.ApplicationHeaderStyle.None ? i18n("Increase velocity") : ""
icon.name: Qt.application.layoutDirection === Qt.RightToLeft ? "go-next-rtl" : "go-next"
icon.source: Qt.application.layoutDirection === Qt.RightToLeft ? "../icons/go-previous.svg" : "../icons/go-next.svg"
onTriggered: {
if (parseInt(prompter.state) === Prompter.States.Prompting)
Expand Down
12 changes: 8 additions & 4 deletions src/prompter/Prompter.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,8 @@ Flickable {
}
PropertyChanges {
target: promptingButton
icon.name: Qt.application.layoutDirection === Qt.RightToLeft ? "go-next-rtl" : "go-next"
icon.source: Qt.application.layoutDirection === Qt.RightToLeft ?
"../icons/go-previous.svg" : "../icons/go-next.svg"
}
PropertyChanges {
target: prompter
Expand Down Expand Up @@ -1846,7 +1847,8 @@ Flickable {
PropertyChanges {
target: promptingButton
text: viewport.countdown.enabled ? i18n("Begin countdown") : i18n("Start prompting")
icon.name: Qt.application.layoutDirection === Qt.RightToLeft ? "go-next-rtl" : "go-next"
icon.source: Qt.application.layoutDirection === Qt.RightToLeft ?
"../icons/go-previous.svg" : "../icons/go-next.svg"
}
PropertyChanges {
target: prompter
Expand Down Expand Up @@ -1893,7 +1895,8 @@ Flickable {
PropertyChanges {
target: promptingButton
text: i18n("Skip countdown")
icon.name: Qt.application.layoutDirection === Qt.RightToLeft ? "go-next-rtl" : "go-next"
icon.source: Qt.application.layoutDirection === Qt.RightToLeft ?
"../icons/go-previous.svg" : "../icons/go-next.svg"
}
PropertyChanges {
target: prompter
Expand Down Expand Up @@ -1937,7 +1940,8 @@ Flickable {
PropertyChanges {
target: promptingButton
text: i18n("Return to edit mode")
icon.name: Qt.application.layoutDirection===Qt.LeftToRight ? "edit-undo" : "edit-redo"
icon.source: Qt.application.layoutDirection === Qt.LeftToRight ?
"../icons/edit-undo.svg" : "../icons/edit-redo.svg"
}
PropertyChanges {
target: prompter
Expand Down

0 comments on commit 3483cec

Please sign in to comment.