From 3e5923b7830b1512b9ae5ca4fc059661326b186b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Fri, 8 Feb 2019 17:47:03 +0100 Subject: [PATCH] Replace plasmoids with settings app --- .../panel/package/contents/ui/main.qml | 1 - .../ui/quicksettings/QuickSettings.qml | 43 ++++++++++++++++++- 2 files changed, 41 insertions(+), 3 deletions(-) diff --git a/containments/panel/package/contents/ui/main.qml b/containments/panel/package/contents/ui/main.qml index 68d6510a..23b94cf4 100644 --- a/containments/panel/package/contents/ui/main.qml +++ b/containments/panel/package/contents/ui/main.qml @@ -65,7 +65,6 @@ PlasmaCore.ColorScope { applet.fullRepresentationItem.anchors.fill = notificationsParent; } else { applet.preferredRepresentation = applet.compactRepresentation - quickSettings.addPlasmoid(applet); } } diff --git a/containments/panel/package/contents/ui/quicksettings/QuickSettings.qml b/containments/panel/package/contents/ui/quicksettings/QuickSettings.qml index 593b8d8c..42ef7043 100644 --- a/containments/panel/package/contents/ui/quicksettings/QuickSettings.qml +++ b/containments/panel/package/contents/ui/quicksettings/QuickSettings.qml @@ -99,10 +99,49 @@ Item { "enabled": false, "applet": null }); - + settingsModel.append({ + "text": i18n("Wifi"), + "icon": "network-wireless-signal", + "enabled": false, + "settingsCommand": "plasma-settings -m kcm_mobile_wifi", + "toggleFunction": "", + "delegate": "", + "enabled": false, + "applet": null + }); + settingsModel.append({ + "text": i18n("Mobile Data"), + "icon": "network-modem", + "enabled": false, + "settingsCommand": "plasma-settings -m kcm_mobile_broadband", + "toggleFunction": "", + "delegate": "", + "enabled": false, + "applet": null + }); + settingsModel.append({ + "text": i18n("Battery"), + "icon": "battery", + "enabled": false, + "settingsCommand": "plasma-settings -m kcm_mobile_power", + "toggleFunction": "", + "delegate": "", + "enabled": false, + "applet": null + }); + settingsModel.append({ + "text": i18n("Sound"), + "icon": "audio-speakers-symbolic", + "enabled": false, + "settingsCommand": "plasma-settings -m kcm_pulseaudio", + "toggleFunction": "", + "delegate": "", + "enabled": false, + "applet": null + }); settingsModel.append({ "text": i18n("Flashlight"), - "icon": "package_games_puzzle", + "icon": "flashlight-on", "enabled": false, "settingsCommand": "", "toggleFunction": "toggleTorch",