mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 18:24:46 +00:00
Replace plasmoids with settings app
This commit is contained in:
parent
01ce3c4040
commit
3e5923b783
2 changed files with 41 additions and 3 deletions
|
|
@ -65,7 +65,6 @@ PlasmaCore.ColorScope {
|
||||||
applet.fullRepresentationItem.anchors.fill = notificationsParent;
|
applet.fullRepresentationItem.anchors.fill = notificationsParent;
|
||||||
} else {
|
} else {
|
||||||
applet.preferredRepresentation = applet.compactRepresentation
|
applet.preferredRepresentation = applet.compactRepresentation
|
||||||
quickSettings.addPlasmoid(applet);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -99,10 +99,49 @@ Item {
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"applet": null
|
"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({
|
settingsModel.append({
|
||||||
"text": i18n("Flashlight"),
|
"text": i18n("Flashlight"),
|
||||||
"icon": "package_games_puzzle",
|
"icon": "flashlight-on",
|
||||||
"enabled": false,
|
"enabled": false,
|
||||||
"settingsCommand": "",
|
"settingsCommand": "",
|
||||||
"toggleFunction": "toggleTorch",
|
"toggleFunction": "toggleTorch",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue