Replace plasmoids with settings app

This commit is contained in:
Jonah Brüchert 2019-02-08 17:47:03 +01:00
parent 01ce3c4040
commit 3e5923b783
2 changed files with 41 additions and 3 deletions

View file

@ -65,7 +65,6 @@ PlasmaCore.ColorScope {
applet.fullRepresentationItem.anchors.fill = notificationsParent;
} else {
applet.preferredRepresentation = applet.compactRepresentation
quickSettings.addPlasmoid(applet);
}
}

View file

@ -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",