Bug 474576

Summary: sddm-theme: add wireless network controls
Product: [Plasma] plasmashell Reporter: Sergey Katunin <sulmpx60>
Component: Theme - BreezeAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: wishlist CC: nate, sulmpx60, visual-design
Priority: NOR    
Version: 5.27.8   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: wireless widget screenshot
video with working prototype

Description Sergey Katunin 2023-09-15 20:08:17 UTC
Created attachment 161650 [details]
wireless widget screenshot

I would like to offer an feature with a widget to connect to a wireless connection directly from sddm-theme (breeze) on the login screen. It seems that this feature is present in Win 10, and possibly in GDM.

### Description
Anyway, I implemented a working prototype of the Wi-fi widget on SDDM-theme (breeze) for KDE version 5.27. We needed this feature because we have implemented a custom authorization that requires Internet on the login screen. 

The interesting fact is that it didn't even need any new C++ code. This can be implemented only by QML code (although it is not very convenient in several places, but the goal was to minimize the difference from the upstream), by using present QML plugin for `PlasmaNM` (import org.kde.plasma.networkmanagement 0.2 as PlasmaNM).

Check attachments for video and image.
For image - description of elements:
1. Button in corner of sddm-theme to launch wireless connection panel.
2. Status and name of wireless connection.
3. Wireless 'select' component.
4. Password input.
5. Connect button.

### Problem
I expect the following problems:

1. Perhaps the KDE community does not want to introduce such a feature in principle. (However, we can provide this as an optional feature through the checkbox in the settings).
2. Non-compliance with KDE design requirements.
3. It is necessary to adapt to KDE 6, and it may be necessary to make some changes to Plasma NM to implement the missing useful functions for this case (I can't remember specific examples, but something like: 1) get connected wireless name; 2) get wireless connection status; 3) get wired connection status; 4) is connection has password; 5) is selected connection has enterprise security; etc)
Comment 1 Sergey Katunin 2023-09-15 20:09:37 UTC
Created attachment 161651 [details]
video with working prototype
Comment 2 Nate Graham 2023-09-19 17:58:19 UTC
Very interesting! I can tell you for a fact that we *do* want this. Design is easy to change, so that shouldn't be a blocker, either.

To be accepted upstream, it would have the be compatible with Qt6 though, yeah.

Did you make this change purely in your SDDM theme? Were any changes to SDDM itself required?
Comment 3 Nate Graham 2023-09-19 17:59:05 UTC
...And let's continue the conversation in Bug 414062.

*** This bug has been marked as a duplicate of bug 414062 ***