-
Notifications
You must be signed in to change notification settings - Fork 28
UI Controls: add wifi settings button to status bar #2845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -426,6 +426,16 @@ FocusScope { | |
| } | ||
| } | ||
|
|
||
| onWifiButtonClicked: { | ||
| Global.pageManager.pushPage("/pages/settings/PageSettingsWifi.qml", | ||
| {"title": qsTrId("pagesettingsconnectivity_wifi")}) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For maintenance, move the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (This comment is irrelevant if you push the pages from the settings pages instead, as per the comments below) |
||
| } | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The breadcrumbs do not show the "Settings" root element.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be nice to preserve the Settings > Connectivity breadcrumb chain. You could put a couple of functions in SettingsPage.qml and PageSettingsConnectivity.qml to get them to push the appropriate pages, and then you wouldn't need to duplicate the "Wifi" and "Mobile network" translation ids as you could reference the text from the list items directly within those pages.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The buttons are visible when the Control/Switch panes are open, so currently when those are open, it's possible to click the WiFi/GSM buttons and open the settings pages below. You'll need something like |
||
|
|
||
| onGsmButtonClicked: { | ||
| Global.pageManager.pushPage("/pages/settings/PageSettingsGsm.qml", | ||
| {"title": qsTrId("pagesettingsconnectivity_mobile_network")}) | ||
| } | ||
|
|
||
| onPopToPage: function(toPage) { | ||
| pageManager.popPage(toPage) | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the app is showing one of the main pages, after 6 seconds it goes into "idle" mode where the top buttons fade out. Previously the Wifi and GSM indicators remained visible in this idle mode, but now they fade out of view.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, the wifi icon is now coloured blue, and there's a bit too much space between the icons now:
Before:
After: