* feat: add VPN settings and management UI
- Add VPN configuration UI
- Update VPN toggle visibility to check enabled providers
* controlcenter: VPN modal transitions & cleanup
* controlcenter: VPN modal styling
* controlcenter: VPN modal scrim
* controlcenter: VPN modal padding
* controlcenter: VPN modal enter & exit behaviour
* vpn: reworked managment & fixes
- Switched to primarily use provider status json
- Emitting more detailed toasts and errors/states
- Authentication prompt button to open in browser
- Better resets and provider change
* vpn: replace use of qt5compat
* fixing providers, status and adding custom option
* local qml-lint script lied to me
* format
* section order
* linting
---------
Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
67 lines
1.5 KiB
QML
67 lines
1.5 KiB
QML
import Quickshell.Io
|
|
|
|
JsonObject {
|
|
property bool enabled: true
|
|
property int maxToasts: 4
|
|
|
|
property Sizes sizes: Sizes {}
|
|
property Toasts toasts: Toasts {}
|
|
property Vpn vpn: Vpn {}
|
|
|
|
property list<var> quickToggles: [
|
|
{
|
|
id: "wifi",
|
|
enabled: true
|
|
},
|
|
{
|
|
id: "bluetooth",
|
|
enabled: true
|
|
},
|
|
{
|
|
id: "mic",
|
|
enabled: true
|
|
},
|
|
{
|
|
id: "settings",
|
|
enabled: true
|
|
},
|
|
{
|
|
id: "gameMode",
|
|
enabled: true
|
|
},
|
|
{
|
|
id: "dnd",
|
|
enabled: true
|
|
},
|
|
{
|
|
id: "vpn",
|
|
enabled: false
|
|
}
|
|
]
|
|
|
|
component Sizes: JsonObject {
|
|
property int width: 430
|
|
property int toastWidth: 430
|
|
}
|
|
|
|
component Toasts: JsonObject {
|
|
property bool configLoaded: true
|
|
property string fullscreen: "off"
|
|
property bool chargingChanged: true
|
|
property bool gameModeChanged: true
|
|
property bool dndChanged: true
|
|
property bool audioOutputChanged: true
|
|
property bool audioInputChanged: true
|
|
property bool capsLockChanged: true
|
|
property bool numLockChanged: true
|
|
property bool kbLayoutChanged: true
|
|
property bool kbLimit: true
|
|
property bool vpnChanged: true
|
|
property bool nowPlaying: false
|
|
}
|
|
|
|
component Vpn: JsonObject {
|
|
property bool enabled: false
|
|
property list<var> provider: []
|
|
}
|
|
}
|