radio buttons to choose backound
This commit is contained in:
parent
601f61ec39
commit
55c3eeacea
@ -38,19 +38,29 @@ PlasmaComponents.Page {
|
|||||||
text: "I'm an applet"
|
text: "I'm an applet"
|
||||||
}
|
}
|
||||||
|
|
||||||
PlasmaComponents.Button {
|
PlasmaComponents.ButtonColumn {
|
||||||
height: theme.iconSizes.desktop
|
PlasmaComponents.RadioButton {
|
||||||
text: "Background"
|
text: "No background"
|
||||||
checked: plasmoid.backgroundHints == 1
|
onClicked: {
|
||||||
onClicked: {
|
if (checked) plasmoid.backgroundHints = 0;
|
||||||
print("Background hints: " + plasmoid.backgroundHints)
|
|
||||||
if (plasmoid.backgroundHints == 0) {
|
|
||||||
plasmoid.backgroundHints = 1//TODO: make work "StandardBackground"
|
|
||||||
} else {
|
|
||||||
plasmoid.backgroundHints = 0//TODO: make work "NoBackground"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
PlasmaComponents.RadioButton {
|
||||||
|
text: "Default background"
|
||||||
|
checked: true
|
||||||
|
onClicked: {
|
||||||
|
if (checked) plasmoid.backgroundHints = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
PlasmaComponents.RadioButton {
|
||||||
|
text: "Translucent background"
|
||||||
|
onClicked: {
|
||||||
|
if (checked) plasmoid.backgroundHints = 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PlasmaComponents.Button {
|
PlasmaComponents.Button {
|
||||||
height: theme.iconSizes.desktop
|
height: theme.iconSizes.desktop
|
||||||
text: "Busy"
|
text: "Busy"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user