radio buttons to choose backound

This commit is contained in:
Sebastian Kügler 2013-03-19 05:08:39 +01:00
parent 601f61ec39
commit 55c3eeacea

View File

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