reorder Appearance page

pull/2/head
Michail Vourlakos 7 years ago
parent 03312bbe9d
commit fade488f12

@ -319,71 +319,6 @@ PlasmaComponents.Page {
} }
//! END: Applet Size //! END: Applet Size
//! BEGIN: Animations
ColumnLayout {
Layout.fillWidth: true
spacing: units.smallSpacing
Header {
text: i18n("Animations")
}
RowLayout {
Layout.fillWidth: true
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
spacing: 2
property int duration: plasmoid.configuration.durationTime
ExclusiveGroup {
id: animationsGroup
onCurrentChanged: {
if (current.checked)
plasmoid.configuration.durationTime = current.duration
}
}
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("None")
checked: parent.duration === duration
checkable: true
exclusiveGroup: animationsGroup
readonly property int duration: 0
}
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("x1")
checked: parent.duration === duration
checkable: true
exclusiveGroup: animationsGroup
readonly property int duration: 1
}
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("x2")
checked: parent.duration === duration
checkable: true
exclusiveGroup: animationsGroup
readonly property int duration: 2
}
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("x3")
checked: parent.duration === duration
checkable: true
exclusiveGroup: animationsGroup
readonly property int duration: 3
}
}
}
//! END: Animations
//! BEGIN: Background //! BEGIN: Background
ColumnLayout { ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
@ -547,6 +482,71 @@ PlasmaComponents.Page {
} }
//! END: Background //! END: Background
//! BEGIN: Animations
ColumnLayout {
Layout.fillWidth: true
spacing: units.smallSpacing
Header {
text: i18n("Animations")
}
RowLayout {
Layout.fillWidth: true
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
spacing: 2
property int duration: plasmoid.configuration.durationTime
ExclusiveGroup {
id: animationsGroup
onCurrentChanged: {
if (current.checked)
plasmoid.configuration.durationTime = current.duration
}
}
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("None")
checked: parent.duration === duration
checkable: true
exclusiveGroup: animationsGroup
readonly property int duration: 0
}
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("x1")
checked: parent.duration === duration
checkable: true
exclusiveGroup: animationsGroup
readonly property int duration: 1
}
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("x2")
checked: parent.duration === duration
checkable: true
exclusiveGroup: animationsGroup
readonly property int duration: 2
}
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("x3")
checked: parent.duration === duration
checkable: true
exclusiveGroup: animationsGroup
readonly property int duration: 3
}
}
}
//! END: Animations
//! BEGIN: Active Indicator //! BEGIN: Active Indicator
ColumnLayout{ ColumnLayout{
spacing: units.smallSpacing spacing: units.smallSpacing
@ -586,6 +586,7 @@ PlasmaComponents.Page {
PlasmaComponents.Label { PlasmaComponents.Label {
text: i18n("Style:") + " " text: i18n("Style:") + " "
horizontalAlignment: Text.AlignLeft horizontalAlignment: Text.AlignLeft
visible: plasmoid.configuration.advanced
} }
PlasmaComponents.Button { PlasmaComponents.Button {
@ -749,8 +750,6 @@ PlasmaComponents.Page {
} }
} }
RowLayout{ RowLayout{
PlasmaComponents.Label { PlasmaComponents.Label {
enabled: showGlowChk.checked enabled: showGlowChk.checked

Loading…
Cancel
Save