controlcenter: changed button groups to match other elements
This commit is contained in:
parent
678f7e3343
commit
d92911b7e4
1 changed files with 70 additions and 61 deletions
|
|
@ -177,68 +177,77 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectedButtonGroup {
|
SectionContainer {
|
||||||
rootItem: root
|
Layout.fillWidth: true
|
||||||
title: qsTr("Status Icons")
|
alignTop: true
|
||||||
|
|
||||||
options: [
|
StyledText {
|
||||||
{
|
text: qsTr("Status Icons")
|
||||||
label: qsTr("Audio"),
|
font.pointSize: Appearance.font.size.normal
|
||||||
propertyName: "showAudio",
|
}
|
||||||
onToggled: function(checked) {
|
|
||||||
root.showAudio = checked;
|
ConnectedButtonGroup {
|
||||||
root.saveConfig();
|
rootItem: root
|
||||||
|
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
label: qsTr("Audio"),
|
||||||
|
propertyName: "showAudio",
|
||||||
|
onToggled: function(checked) {
|
||||||
|
root.showAudio = checked;
|
||||||
|
root.saveConfig();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: qsTr("Microphone"),
|
||||||
|
propertyName: "showMicrophone",
|
||||||
|
onToggled: function(checked) {
|
||||||
|
root.showMicrophone = checked;
|
||||||
|
root.saveConfig();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: qsTr("Keyboard"),
|
||||||
|
propertyName: "showKbLayout",
|
||||||
|
onToggled: function(checked) {
|
||||||
|
root.showKbLayout = checked;
|
||||||
|
root.saveConfig();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: qsTr("Network"),
|
||||||
|
propertyName: "showNetwork",
|
||||||
|
onToggled: function(checked) {
|
||||||
|
root.showNetwork = checked;
|
||||||
|
root.saveConfig();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: qsTr("Bluetooth"),
|
||||||
|
propertyName: "showBluetooth",
|
||||||
|
onToggled: function(checked) {
|
||||||
|
root.showBluetooth = checked;
|
||||||
|
root.saveConfig();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: qsTr("Battery"),
|
||||||
|
propertyName: "showBattery",
|
||||||
|
onToggled: function(checked) {
|
||||||
|
root.showBattery = checked;
|
||||||
|
root.saveConfig();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: qsTr("Capslock"),
|
||||||
|
propertyName: "showLockStatus",
|
||||||
|
onToggled: function(checked) {
|
||||||
|
root.showLockStatus = checked;
|
||||||
|
root.saveConfig();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
]
|
||||||
{
|
}
|
||||||
label: qsTr("Microphone"),
|
|
||||||
propertyName: "showMicrophone",
|
|
||||||
onToggled: function(checked) {
|
|
||||||
root.showMicrophone = checked;
|
|
||||||
root.saveConfig();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: qsTr("Keyboard"),
|
|
||||||
propertyName: "showKbLayout",
|
|
||||||
onToggled: function(checked) {
|
|
||||||
root.showKbLayout = checked;
|
|
||||||
root.saveConfig();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: qsTr("Network"),
|
|
||||||
propertyName: "showNetwork",
|
|
||||||
onToggled: function(checked) {
|
|
||||||
root.showNetwork = checked;
|
|
||||||
root.saveConfig();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: qsTr("Bluetooth"),
|
|
||||||
propertyName: "showBluetooth",
|
|
||||||
onToggled: function(checked) {
|
|
||||||
root.showBluetooth = checked;
|
|
||||||
root.saveConfig();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: qsTr("Battery"),
|
|
||||||
propertyName: "showBattery",
|
|
||||||
onToggled: function(checked) {
|
|
||||||
root.showBattery = checked;
|
|
||||||
root.saveConfig();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: qsTr("Capslock"),
|
|
||||||
propertyName: "showLockStatus",
|
|
||||||
onToggled: function(checked) {
|
|
||||||
root.showLockStatus = checked;
|
|
||||||
root.saveConfig();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue