1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Description: Place the open in browser button first
I noticed on my tablet that otherwise the open in browser ends up
hidden in a drop down menu, and that is a common action while the
bookmarking is not very common.
Author: Salvo 'LtWorf' Tomaselli <ltworf@debian.org>
Forwarded: https://invent.kde.org/network/alligator/-/merge_requests/140
Last-Update: 2025-04-21
--- alligator-25.04.0.orig/src/qml/EntryPage.qml
+++ alligator-25.04.0/src/qml/EntryPage.qml
@@ -66,17 +66,17 @@ Kirigami.ScrollablePage {
actions: [
Kirigami.Action {
+ text: i18n("Open in Browser")
+ icon.name: "globe"
+ onTriggered: Qt.openUrlExternally(page.link)
+ },
+ Kirigami.Action {
text: page.favorite ? i18nc("@action:button", "Remove from Favorites") : i18nc("@action:button", "Add to Favorites")
icon.name: page.favorite ? "bookmarks-bookmarked" : "bookmarks"
onTriggered: {
Database.setFavorite(page.entryId, !page.favorite);
page.favorite = !page.favorite;
}
- },
- Kirigami.Action {
- text: i18n("Open in Browser")
- icon.name: "globe"
- onTriggered: Qt.openUrlExternally(page.link)
}
]
}
|