fix margins for config window pages

--the right margins should be equal to the
left margins, this is the only way to create
a symmetric look for congig window options
pull/1/head
Michail Vourlakos 8 years ago
parent f40dbc29ca
commit 1145b42e17

@ -46,6 +46,7 @@ PlasmaComponents.Page {
ColumnLayout {
Layout.fillWidth: true
spacing: units.smallSpacing
Layout.rightMargin: units.smallSpacing * 2
Header {
text: i18n("Location")
@ -241,6 +242,7 @@ PlasmaComponents.Page {
ColumnLayout {
Layout.fillWidth: true
spacing: units.smallSpacing
Layout.rightMargin: units.smallSpacing * 2
Header {
text: i18n("Alignment")
@ -325,6 +327,7 @@ PlasmaComponents.Page {
ColumnLayout {
Layout.fillWidth: true
spacing: units.smallSpacing
Layout.rightMargin: units.smallSpacing * 2
Header {
text: i18n("Visibility")
@ -410,6 +413,7 @@ PlasmaComponents.Page {
//! BEGIN: Delay
ColumnLayout {
Layout.fillWidth: true
Layout.rightMargin: units.smallSpacing * 2
spacing: units.smallSpacing
enabled: !(dock.visibility.mode === Latte.Dock.AlwaysVisible
@ -421,13 +425,12 @@ PlasmaComponents.Page {
}
RowLayout {
Layout.fillWidth: false
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
Layout.alignment: Qt.AlignHCenter
spacing: units.smallSpacing
spacing: 2
PlasmaComponents.Label {
Layout.fillWidth: false

@ -39,10 +39,12 @@ PlasmaComponents.Page {
spacing: dialog.subGroupSpacing
anchors.centerIn: parent
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
//! BEGIN: Tasks Appearance
ColumnLayout {
spacing: units.smallSpacing
Layout.rightMargin: units.smallSpacing * 2
Header {
text: i18n("Appearance")
@ -99,6 +101,7 @@ PlasmaComponents.Page {
//! BEGIN: Tasks Interaction
ColumnLayout {
spacing: units.smallSpacing
Layout.rightMargin: units.smallSpacing * 2
Header {
text: i18n("Interaction")
@ -231,6 +234,7 @@ PlasmaComponents.Page {
//! BEGIN: Tasks Filters
ColumnLayout {
spacing: units.smallSpacing
Layout.rightMargin: units.smallSpacing * 2
Header {
text: i18n("Filters")

@ -39,10 +39,12 @@ PlasmaComponents.Page {
spacing: dialog.subGroupSpacing
anchors.centerIn: parent
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
//! BEGIN: Appearance
ColumnLayout {
spacing: units.smallSpacing
Layout.rightMargin: units.smallSpacing * 2
Header {
text: i18n("Appearance")
@ -75,6 +77,7 @@ PlasmaComponents.Page {
//! BEGIN: Behavior
ColumnLayout {
spacing: units.smallSpacing
Layout.rightMargin: units.smallSpacing * 2
Header {
text: i18n("Behavior")
@ -163,14 +166,18 @@ PlasmaComponents.Page {
//! BEGIN: Session
ColumnLayout {
spacing: units.smallSpacing
Layout.rightMargin: units.smallSpacing * 2
Header {
text: i18n("Session")
}
PlasmaComponents.Button {
RowLayout {
Layout.fillWidth: true
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
spacing: units.smallSpacing
PlasmaComponents.Button {
Layout.fillWidth: true
text: i18n("Alternative Session")
checked: globalSettings.currentSession === Latte.Dock.AlternativeSession
@ -186,13 +193,16 @@ PlasmaComponents.Page {
dockConfig.hideConfigWindow()
}
}
}
}
//! END: Session
//! BEGIN: Extra Actions
ColumnLayout {
Layout.fillWidth: false
Layout.fillWidth: true
spacing: units.smallSpacing
Layout.rightMargin: units.smallSpacing * 2
Header {
text: i18n("Extra Actions")
@ -201,12 +211,12 @@ PlasmaComponents.Page {
RowLayout {
Layout.fillWidth: true
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
spacing: units.smallSpacing
spacing: 2
PlasmaComponents.Button {
iconSource: "distribute-horizontal-x"
text: i18n("Add Spacer")
Layout.fillWidth: true
Layout.alignment: Qt.AlignLeft
// tooltip: i18n("Add a spacer to separate applets")
@ -214,13 +224,12 @@ PlasmaComponents.Page {
dockConfig.addPanelSpacer()
}
}
PlasmaComponents.Button {
iconSource: plasmoid.configuration.hasInternalSeparator ? "edit-delete" : "list-add"
text: i18n("Tasks Separator")
Layout.fillWidth: true
Layout.alignment: Qt.AlignLeft
//The Tasks separator adds a lot of complexity in the parabolic effect
//signaling... For now I disable it and in the future if a better way
//is found to support it with the parabolic effect we can enable it again
visible: dock.tasksPresent()
// tooltip: i18n("Add a separator for tasks")
@ -231,10 +240,17 @@ PlasmaComponents.Page {
dockConfig.addTasksSeparator();
}
}
}
RowLayout {
Layout.fillWidth: true
Layout.leftMargin: units.smallSpacing * 2
Layout.rightMargin: units.smallSpacing * 2
spacing: units.smallSpacing
PlasmaComponents.Button {
iconSource: "edit-delete"
text: i18n("Remove Tasks")
Layout.alignment: Qt.AlignRight
enabled: dock.tasksPresent()
// tooltip: i18n("Remove Latte plasmoid")
@ -242,7 +258,6 @@ PlasmaComponents.Page {
dock.removeTasksPlasmoid();
}
}
}
}
//! END: Extra Actions

Loading…
Cancel
Save