Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/DiscoverWindow.qml
Show All 13 Lines | 10 | { | |||
---|---|---|---|---|---|
14 | readonly property string reviewsComp: ("qrc:/qml/ReviewsPage.qml") | 14 | readonly property string reviewsComp: ("qrc:/qml/ReviewsPage.qml") | ||
15 | 15 | | |||
16 | //toplevels | 16 | //toplevels | ||
17 | readonly property string topBrowsingComp: ("qrc:/qml/BrowsingPage.qml") | 17 | readonly property string topBrowsingComp: ("qrc:/qml/BrowsingPage.qml") | ||
18 | readonly property string topInstalledComp: ("qrc:/qml/InstalledPage.qml") | 18 | readonly property string topInstalledComp: ("qrc:/qml/InstalledPage.qml") | ||
19 | readonly property string topSearchComp: ("qrc:/qml/SearchPage.qml") | 19 | readonly property string topSearchComp: ("qrc:/qml/SearchPage.qml") | ||
20 | readonly property string topUpdateComp: ("qrc:/qml/UpdatesPage.qml") | 20 | readonly property string topUpdateComp: ("qrc:/qml/UpdatesPage.qml") | ||
21 | readonly property string topSourcesComp: ("qrc:/qml/SourcesPage.qml") | 21 | readonly property string topSourcesComp: ("qrc:/qml/SourcesPage.qml") | ||
22 | readonly property string topAboutComp: ("qrc:/qml/AboutPage.qml") | ||||
22 | readonly property string loadingComponent: ("qrc:/qml/LoadingPage.qml") | 23 | readonly property string loadingComponent: ("qrc:/qml/LoadingPage.qml") | ||
23 | readonly property QtObject stack: window.pageStack | 24 | readonly property QtObject stack: window.pageStack | ||
24 | property string currentTopLevel: defaultStartup ? topBrowsingComp : loadingComponent | 25 | property string currentTopLevel: defaultStartup ? topBrowsingComp : loadingComponent | ||
25 | property bool defaultStartup: true | 26 | property bool defaultStartup: true | ||
26 | 27 | | |||
27 | objectName: "DiscoverMainWindow" | 28 | objectName: "DiscoverMainWindow" | ||
28 | title: leftPage ? leftPage.title : "" | 29 | title: leftPage ? leftPage.title : "" | ||
29 | 30 | | |||
Show All 37 Lines | |||||
67 | } | 68 | } | ||
68 | TopLevelPageData { | 69 | TopLevelPageData { | ||
69 | id: updateAction | 70 | id: updateAction | ||
70 | iconName: ResourcesModel.updatesCount>0 ? ResourcesModel.hasSecurityUpdates ? "update-high" : "update-low" : "update-none" | 71 | iconName: ResourcesModel.updatesCount>0 ? ResourcesModel.hasSecurityUpdates ? "update-high" : "update-low" : "update-none" | ||
71 | text: ResourcesModel.updatesCount<=0 ? (ResourcesModel.isFetching ? i18n("Checking for updates...") : i18n("No Updates") ) : i18nc("Update section name", "Update (%1)", ResourcesModel.updatesCount) | 72 | text: ResourcesModel.updatesCount<=0 ? (ResourcesModel.isFetching ? i18n("Checking for updates...") : i18n("No Updates") ) : i18nc("Update section name", "Update (%1)", ResourcesModel.updatesCount) | ||
72 | component: topUpdateComp | 73 | component: topUpdateComp | ||
73 | objectName: "update" | 74 | objectName: "update" | ||
74 | } | 75 | } | ||
75 | TopLevelPageData { | 76 | TopLevelPageData { | ||
mart: can you try how does it look for this page to be pushed as a layer instead of the main PageRow? | |||||
77 | id: aboutAction | ||||
78 | iconName: "help-feedback" | ||||
79 | text: i18n("Help") | ||||
80 | component: topAboutComp | ||||
81 | objectName: "about" | ||||
82 | } | ||||
83 | TopLevelPageData { | ||||
76 | id: sourcesAction | 84 | id: sourcesAction | ||
77 | text: i18n("Sources") | 85 | text: i18n("Sources") | ||
78 | component: topSourcesComp | 86 | component: topSourcesComp | ||
79 | objectName: "sources" | 87 | objectName: "sources" | ||
80 | } | 88 | } | ||
81 | 89 | | |||
82 | Kirigami.Action { | 90 | Kirigami.Action { | ||
83 | id: refreshAction | 91 | id: refreshAction | ||
▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines |
can you try how does it look for this page to be pushed as a layer instead of the main PageRow?
would be like applicationWindow().pageStack.layers.push(thecomponentorurl)
it would end up more "modal"than using the main row.
I have no idea what would be better usability-wise, but is a thing could be tried (and then codified in the hig)