... | ... | @@ -7,9 +7,9 @@ Examples can be seen here: https://invent.kde.org/plasma/plasma-mobile/-/tree/ma |
|
|
To create a new quick setting, you must create a **[KPackage](https://api.kde.org/frameworks/kpackage/html/index.html)**, which will be installed to `/usr/share/plasma/quicksettings`.
|
|
|
|
|
|
```qml
|
|
|
import org.kde.plasma.private.mobileshell 1.0 as MobileShell
|
|
|
import org.kde.plasma.private.mobileshell.quicksettingsplugin as QS
|
|
|
|
|
|
MobileShell.QuickSetting {
|
|
|
QS.QuickSetting {
|
|
|
text: i18n("WiFi") // Name of quick setting
|
|
|
icon: "network-flightmode-on" // icon that is shown in the quick setting
|
|
|
status: "" // description shown below name, leave blank for On/Off
|
... | ... | |