add Layouts and move backup Tweaks->Appearance

pull/1/head
Michail Vourlakos 8 years ago
parent e41792e636
commit 4f85b916f8

@ -50,6 +50,55 @@ PlasmaComponents.Page {
anchors.centerIn: parent
Layout.leftMargin: units.smallSpacing * 2
//! BEGIN: Layout
ColumnLayout {
Layout.fillWidth: true
spacing: units.smallSpacing
Header {
text: i18n("Layout")
}
RowLayout {
Layout.fillWidth: true
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
spacing: units.smallSpacing
PlasmaComponents.ComboBox {
id: layoutCmb
Layout.preferredWidth: 0.5 * dialog.maxWidth
Component.onCompleted: layoutCmb.loadLayouts();
function loadLayouts(){
var layouts = [i18n("Current"), i18n("Default"), "Plasma", "Unity", i18n("Extended"), " ------- ", "myfavourite1"];
model = layouts;
currentIndex = 0;
}
}
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("Import")
onClicked: {
globalSettings.importConfiguration()
}
}
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("Export")
onClicked: {
globalSettings.exportConfiguration()
}
}
}
}
//! END: Layout
//! BEGIN: Applet Size
ColumnLayout {
Layout.fillWidth: true

@ -160,41 +160,6 @@ PlasmaComponents.Page {
}
//! END: Behavior
//! BEGIN: Backup
ColumnLayout {
Layout.fillWidth: true
spacing: units.smallSpacing
Header {
text: i18n("Backup")
}
RowLayout {
Layout.fillWidth: true
spacing: units.smallSpacing
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
PlasmaComponents.Button {
Layout.fillWidth: true
iconSource: "document-import"
text: i18n("Import configuration")
onClicked: {
globalSettings.importConfiguration()
}
}
PlasmaComponents.Button {
Layout.fillWidth: true
iconSource: "document-export"
text: i18n("Export configuration")
onClicked: {
globalSettings.exportConfiguration()
}
}
}
}
//! END: Backup
//! BEGIN: Session
ColumnLayout {
spacing: units.smallSpacing

Loading…
Cancel
Save