Skip to content

UI Controls: add wifi settings button to status bar#2845

Open
ybott-qinetic wants to merge 2 commits intomainfrom
ttomkins/add-statusbar-wifi-button
Open

UI Controls: add wifi settings button to status bar#2845
ybott-qinetic wants to merge 2 commits intomainfrom
ttomkins/add-statusbar-wifi-button

Conversation

@ybott-qinetic
Copy link
Contributor

Contributes to #2834

onWifiButtonClicked: {
Global.pageManager.pushPage("/pages/settings/PageSettingsWifi.qml",
{"title": qsTrId("pagesettingsconnectivity_wifi")})
}
Copy link
Contributor Author

@ybott-qinetic ybott-qinetic Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The breadcrumbs do not show the "Settings" root element.

Copy link
Contributor

Choose a reason for hiding this comment

The 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.

Copy link
Contributor

Choose a reason for hiding this comment

The 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 goToNotificationsPage() in MainView.qml, which pops all pages and closes the card loader before going to the notifications page.

@ybott-qinetic ybott-qinetic force-pushed the ttomkins/add-statusbar-wifi-button branch from b94f1d7 to 9b79e96 Compare February 24, 2026 04:51
@ybott-qinetic ybott-qinetic force-pushed the ttomkins/add-statusbar-wifi-button branch from 9b79e96 to 1026c8b Compare February 28, 2026 06:30

onWifiButtonClicked: {
Global.pageManager.pushPage("/pages/settings/PageSettingsWifi.qml",
{"title": qsTrId("pagesettingsconnectivity_wifi")})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For maintenance, move the pagesettingsconnectivity_wifi translation id to CommonWords. Otherwise if the original pagesettingsconnectivity_wifi translation source is removed, it's not obvious that the translation will disappear from as well. Eventually we will probably get rid of CommonWords, but since we're using translation ids, we'll have to do this for now.

Copy link
Contributor

Choose a reason for hiding this comment

The 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)

return "qrc:/images/icon_WiFi_noconnection_32.svg"
}
}
StatusBarButton {
Copy link
Contributor

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.

Copy link
Contributor

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:

Image

After:

Image

onWifiButtonClicked: {
Global.pageManager.pushPage("/pages/settings/PageSettingsWifi.qml",
{"title": qsTrId("pagesettingsconnectivity_wifi")})
}
Copy link
Contributor

Choose a reason for hiding this comment

The 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.

onWifiButtonClicked: {
Global.pageManager.pushPage("/pages/settings/PageSettingsWifi.qml",
{"title": qsTrId("pagesettingsconnectivity_wifi")})
}
Copy link
Contributor

Choose a reason for hiding this comment

The 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 goToNotificationsPage() in MainView.qml, which pops all pages and closes the card loader before going to the notifications page.

@ybott-qinetic ybott-qinetic force-pushed the ttomkins/add-statusbar-wifi-button branch from 1026c8b to a2f612b Compare March 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants