diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-10-08 14:22:52 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-13 11:32:27 -0700 |
commit | 56713842b90c6bf329c636812ba985c793c81be3 (patch) | |
tree | b5f66a5143bbeef7b6b5f8ab4ff77e3a729c76c3 | |
parent | e3eaf03d2fcab8dc3cd655ae298e30daa53b9d8a (diff) | |
download | subsurface-56713842b90c6bf329c636812ba985c793c81be3.tar.gz |
Mobile: ensure consistent path when accessing arrow icons
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qml/main.qml | 6 | ||||
-rw-r--r-- | mobile-widgets/qml/mobile-resources.qrc | 8 | ||||
-rw-r--r-- | scripts/kirigami.diff | 50 |
3 files changed, 39 insertions, 25 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index 79f2e57b3..f06863dbd 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -243,7 +243,7 @@ Kirigami.ApplicationWindow { text: qsTr("Dive management") Kirigami.Action { icon { - name: ":/org/kde/kirigami/icons/go-previous-symbolic.svg" + name: ":/go-previous-symbolic" } text: qsTr("Back") onTriggered: gDrawer.scrollViewItem.pop() @@ -331,7 +331,7 @@ if you have network connectivity and want to sync your data to cloud storage."), Kirigami.Action { icon { - name: ":/org/kde/kirigami/icons/go-previous-symbolic.svg" + name: ":/go-previous-symbolic" } text: qsTr("Back") onTriggered: gDrawer.scrollViewItem.pop() @@ -403,7 +403,7 @@ if you have network connectivity and want to sync your data to cloud storage."), visible: PrefDisplay.show_developer Kirigami.Action { icon { - name: ":/org/kde/kirigami/icons/go-previous-symbolic.svg" + name: ":/go-previous-symbolic" } text: qsTr("Back") onTriggered: gDrawer.scrollViewItem.pop() diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc index 989a7e936..eb4f91ef2 100644 --- a/mobile-widgets/qml/mobile-resources.qrc +++ b/mobile-widgets/qml/mobile-resources.qrc @@ -81,9 +81,11 @@ <file alias="icons/view-readermode.svg">kirigami/icons/view-readermode.svg</file> </qresource> - <qresource prefix="/org/kde/kirigami/icons/"> + <qresource prefix="/"> <!-- ********** kirigami icons ********** --> - <file alias="go-next-symbolic.svg">kirigami/icons/go-next.svg</file> - <file alias="go-previous-symbolic.svg">kirigami/icons/go-previous.svg</file> + <file alias="/org/kde/kirigami/templates/private/go-next-symbolic">kirigami/icons/go-next.svg</file> + <file alias="/org/kde/kirigami/templates/private/go-previous-symbolic">kirigami/icons/go-previous.svg</file> + <file alias="go-next-symbolic">kirigami/icons/go-next.svg</file> + <file alias="go-previous-symbolic">kirigami/icons/go-previous.svg</file> </qresource> </RCC> diff --git a/scripts/kirigami.diff b/scripts/kirigami.diff index 01fc2c9b7..9f19d970d 100644 --- a/scripts/kirigami.diff +++ b/scripts/kirigami.diff @@ -1,6 +1,6 @@ -diff -rwu ../kirigami/src/controls/GlobalDrawer.qml src/controls/GlobalDrawer.qml ---- ../kirigami/src/controls/GlobalDrawer.qml 2019-10-08 13:21:17.459065272 -0500 -+++ src/controls/GlobalDrawer.qml 2019-10-09 13:31:33.788198422 -0500 +diff -ru ../kirigami/src/controls/GlobalDrawer.qml ./src/controls/GlobalDrawer.qml +--- ../kirigami/src/controls/GlobalDrawer.qml 2019-10-10 17:13:41.384333413 -0700 ++++ ./src/controls/GlobalDrawer.qml 2019-10-11 13:39:22.200854355 -0700 @@ -215,6 +215,20 @@ readonly property Action currentSubMenu: stackView.currentItem ? stackView.currentItem.current: null @@ -58,7 +58,7 @@ diff -rwu ../kirigami/src/controls/GlobalDrawer.qml src/controls/GlobalDrawer.qm BasicListItem { id: backItem visible: level > 0 -@@ -454,7 +468,7 @@ +@@ -454,7 +465,7 @@ sequence: backItem.MnemonicData.sequence onActivated: backItem.clicked() } @@ -67,9 +67,21 @@ diff -rwu ../kirigami/src/controls/GlobalDrawer.qml src/controls/GlobalDrawer.qm Repeater { id: actionsRepeater model: root.actions -diff -rwu ../kirigami/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml ---- ../kirigami/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml 2019-10-05 11:32:27.135224411 -0500 -+++ src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml 2019-10-08 10:57:14.603086232 -0500 +diff -ru ../kirigami/src/controls/private/GlobalDrawerActionItem.qml ./src/controls/private/GlobalDrawerActionItem.qml +--- ../kirigami/src/controls/private/GlobalDrawerActionItem.qml 2019-10-10 17:13:41.387666766 -0700 ++++ ./src/controls/private/GlobalDrawerActionItem.qml 2019-10-11 14:16:03.013887752 -0700 +@@ -94,7 +94,7 @@ + Layout.preferredHeight: !root.collapsed ? Units.iconSizes.smallMedium : Units.iconSizes.small/2 + selected: listItem.checked || listItem.pressed + Layout.preferredWidth: Layout.preferredHeight +- source: (LayoutMirroring.enabled ? "go-next-symbolic-rtl" : "go-next-symbolic") ++ source: (LayoutMirroring.enabled ? ":/go-next-symbolic-rtl" : ":/go-next-symbolic") + visible: (!isExpandible || root.collapsed) && !listItem.isSeparator && modelData.hasOwnProperty("children") && modelData.children!==undefined && modelData.children.length > 0 + } + data: [ +diff -ru ../kirigami/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml ./src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml +--- ../kirigami/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml 2019-10-10 17:13:41.391000120 -0700 ++++ ./src/controls/private/globaltoolbar/PageRowGlobalToolBarUI.qml 2019-10-11 13:39:22.204187697 -0700 @@ -40,6 +40,7 @@ preferredHeight: globalToolBar.preferredHeight maximumHeight: globalToolBar.maximumHeight @@ -86,9 +98,9 @@ diff -rwu ../kirigami/src/controls/private/globaltoolbar/PageRowGlobalToolBarUI. + //background.opacity: breadcrumbLoader.opacity } -diff -rwu ../kirigami/src/controls/templates/private/BackButton.qml src/controls/templates/private/BackButton.qml ---- ../kirigami/src/controls/templates/private/BackButton.qml 2019-10-05 11:32:27.138557762 -0500 -+++ src/controls/templates/private/BackButton.qml 2019-10-08 14:16:53.677758571 -0500 +diff -ru ../kirigami/src/controls/templates/private/BackButton.qml ./src/controls/templates/private/BackButton.qml +--- ../kirigami/src/controls/templates/private/BackButton.qml 2019-10-10 17:13:41.391000120 -0700 ++++ ./src/controls/templates/private/BackButton.qml 2019-10-11 13:55:58.985325656 -0700 @@ -27,6 +27,7 @@ id: button @@ -97,20 +109,20 @@ diff -rwu ../kirigami/src/controls/templates/private/BackButton.qml src/controls enabled: applicationWindow().pageStack.layers.depth > 1 || (applicationWindow().pageStack.depth > 1 && (applicationWindow().pageStack.currentIndex > 0 || applicationWindow().pageStack.contentItem.contentX > 0)) -diff -rwu ../kirigami/src/controls/templates/private/ForwardButton.qml src/controls/templates/private/ForwardButton.qml ---- ../kirigami/src/controls/templates/private/ForwardButton.qml 2019-10-05 11:32:27.138557762 -0500 -+++ src/controls/templates/private/ForwardButton.qml 2019-10-08 14:13:40.804488568 -0500 +diff -ru ../kirigami/src/controls/templates/private/ForwardButton.qml ./src/controls/templates/private/ForwardButton.qml +--- ../kirigami/src/controls/templates/private/ForwardButton.qml 2019-10-10 17:13:41.391000120 -0700 ++++ ./src/controls/templates/private/ForwardButton.qml 2019-10-11 13:55:52.765272124 -0700 @@ -27,6 +27,7 @@ id: button - + icon.name: (LayoutMirroring.enabled ? "go-next-symbolic-rtl" : "go-next-symbolic") + icon.source: (LayoutMirroring.enabled ? "go-next-symbolic-rtl" : "go-next-symbolic") - + enabled: applicationWindow().pageStack.currentIndex < applicationWindow().pageStack.depth-1 - -diff -rwu ../kirigami/src/kirigamiplugin.cpp src/kirigamiplugin.cpp ---- ../kirigami/src/kirigamiplugin.cpp 2019-10-05 11:32:27.141891113 -0500 -+++ src/kirigamiplugin.cpp 2019-10-05 11:52:30.444777441 -0500 + +diff -ru ../kirigami/src/kirigamiplugin.cpp ./src/kirigamiplugin.cpp +--- ../kirigami/src/kirigamiplugin.cpp 2019-10-10 17:13:41.391000120 -0700 ++++ ./src/kirigamiplugin.cpp 2019-10-11 13:39:22.204187697 -0700 @@ -41,7 +41,7 @@ //Q_INIT_RESOURCE(kirigami); |