mirror of
https://github.com/KDE/kasts.git
synced 2025-02-06 04:13:51 +01:00
Use display property
This commit is contained in:
parent
7afc43f833
commit
c035bcad92
@ -159,6 +159,7 @@ Kirigami.ApplicationWindow {
|
|||||||
Kirigami.NavigationTabButton {
|
Kirigami.NavigationTabButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
width: column.width - column.Layout.leftMargin - column.Layout.rightMargin
|
width: column.width - column.Layout.leftMargin - column.Layout.rightMargin
|
||||||
|
display: root.isWidescreen ? Kirigami.NavigationTabButton.TextUnderIcon : Kirigami.NavigationTabButton.IconOnly
|
||||||
text: i18n("Queue")
|
text: i18n("Queue")
|
||||||
icon.name: "source-playlist"
|
icon.name: "source-playlist"
|
||||||
checked: currentPage == "QueuePage"
|
checked: currentPage == "QueuePage"
|
||||||
@ -171,6 +172,7 @@ Kirigami.ApplicationWindow {
|
|||||||
Kirigami.NavigationTabButton {
|
Kirigami.NavigationTabButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
width: column.width - column.Layout.leftMargin - column.Layout.rightMargin
|
width: column.width - column.Layout.leftMargin - column.Layout.rightMargin
|
||||||
|
display: root.isWidescreen ? Kirigami.NavigationTabButton.TextUnderIcon : Kirigami.NavigationTabButton.IconOnly
|
||||||
text: i18n("Discover")
|
text: i18n("Discover")
|
||||||
icon.name: "search"
|
icon.name: "search"
|
||||||
checked: currentPage == "DiscoverPage"
|
checked: currentPage == "DiscoverPage"
|
||||||
@ -183,6 +185,7 @@ Kirigami.ApplicationWindow {
|
|||||||
Kirigami.NavigationTabButton {
|
Kirigami.NavigationTabButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
width: column.width - column.Layout.leftMargin - column.Layout.rightMargin
|
width: column.width - column.Layout.leftMargin - column.Layout.rightMargin
|
||||||
|
display: root.isWidescreen ? Kirigami.NavigationTabButton.TextUnderIcon : Kirigami.NavigationTabButton.IconOnly
|
||||||
text: i18n("Subscriptions")
|
text: i18n("Subscriptions")
|
||||||
icon.name: "bookmarks"
|
icon.name: "bookmarks"
|
||||||
checked: currentPage == "FeedListPage"
|
checked: currentPage == "FeedListPage"
|
||||||
@ -195,6 +198,7 @@ Kirigami.ApplicationWindow {
|
|||||||
Kirigami.NavigationTabButton {
|
Kirigami.NavigationTabButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
width: column.width - column.Layout.leftMargin - column.Layout.rightMargin
|
width: column.width - column.Layout.leftMargin - column.Layout.rightMargin
|
||||||
|
display: root.isWidescreen ? Kirigami.NavigationTabButton.TextUnderIcon : Kirigami.NavigationTabButton.IconOnly
|
||||||
text: i18n("Episodes")
|
text: i18n("Episodes")
|
||||||
icon.name: "rss"
|
icon.name: "rss"
|
||||||
checked: currentPage == "EpisodeListPage"
|
checked: currentPage == "EpisodeListPage"
|
||||||
@ -207,6 +211,7 @@ Kirigami.ApplicationWindow {
|
|||||||
Kirigami.NavigationTabButton {
|
Kirigami.NavigationTabButton {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
width: column.width - column.Layout.leftMargin - column.Layout.rightMargin
|
width: column.width - column.Layout.leftMargin - column.Layout.rightMargin
|
||||||
|
display: root.isWidescreen ? Kirigami.NavigationTabButton.TextUnderIcon : Kirigami.NavigationTabButton.IconOnly
|
||||||
text: i18n("Downloads")
|
text: i18n("Downloads")
|
||||||
icon.name: "download"
|
icon.name: "download"
|
||||||
checked: currentPage == "DownloadListPage"
|
checked: currentPage == "DownloadListPage"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user