load config pages properly for dock settings window

work/spdx
Michail Vourlakos 4 years ago
parent 88df41982c
commit 55d0dde551

@ -401,8 +401,8 @@ FocusScope {
QtQuickControls212.StackView {
id: pagesStackView
width: currentItem.Layout.maximumWidth
height: currentItem.Layout.maximumHeight
width: currentItem.width
height: currentItem.height
property bool forwardSliding: true
@ -442,8 +442,8 @@ FocusScope {
}
}
onCurrentItemChanged: {
if (!currentItem) {
onDepthChanged: {
if (depth === 0) {
pagesStackView.forwardSliding = true;
push(behaviorPage);
}
@ -461,26 +461,26 @@ FocusScope {
anchors.fill: parent
active: plasmoid && plasmoid.configuration && latteView
sourceComponent: Pages.BehaviorConfig {
id: _behaviorPage
readonly property int pageIndex:0
Component.onCompleted: {
pagesStackView.push(_behaviorPage);
}
}
}
Loader {
id: appearanceLoader
anchors.fill: parent
active: plasmoid && plasmoid.configuration && latteView
sourceComponent: Pages.AppearanceConfig {
id: appearancePage
readonly property int pageIndex:1
}
}
Loader {
id: effectsLoader
anchors.fill: parent
active: plasmoid && plasmoid.configuration && latteView
sourceComponent: Pages.EffectsConfig {
id: effectsPage
readonly property int pageIndex:2
}
}
@ -490,7 +490,6 @@ FocusScope {
model: plasmoid && plasmoid.configuration && latteView ? latteView.extendedInterface.latteTasksModel : 0
Pages.TasksConfig {
id: tasksPage
readonly property int pageIndex: tabBar.visibleStaticPages+index
}
}

@ -34,12 +34,8 @@ import org.kde.latte.private.containment 0.1 as LatteContainment
PlasmaComponents.Page {
id: page
Layout.maximumWidth: content.width + content.Layout.leftMargin * 2
Layout.maximumHeight: content.height + units.smallSpacing * 2
Component.onCompleted: {
pagesStackView.push(page);
}
width: content.width + content.Layout.leftMargin * 2
height: content.height + units.smallSpacing * 2
Timer {
id: syncGeometry

@ -35,17 +35,11 @@ import "../../controls" as LatteExtraControls
PlasmaComponents.Page {
id: page
Layout.maximumWidth: content.width + content.Layout.leftMargin * 2
Layout.maximumHeight: content.height + units.smallSpacing * 2
Component.onCompleted: {
pagesStackView.push(page);
pagesStackView.pop(page);
}
width: content.width + content.Layout.leftMargin * 2
height: content.height + units.smallSpacing * 2
ColumnLayout {
id: content
id: content
width: (dialog.appliedWidth - units.smallSpacing * 2) - Layout.leftMargin * 2
spacing: dialog.subGroupSpacing
anchors.horizontalCenter: parent.horizontalCenter

@ -37,13 +37,8 @@ import "../../controls" as LatteExtraControls
PlasmaComponents.Page {
id: page
Layout.maximumWidth: content.width + content.Layout.leftMargin * 2
Layout.maximumHeight: content.height + units.smallSpacing
Component.onCompleted: {
pagesStackView.push(page);
pagesStackView.pop(page);
}
width: content.width + content.Layout.leftMargin * 2
height: content.height + units.smallSpacing
ColumnLayout {
id: content

@ -33,18 +33,13 @@ import org.kde.latte.private.tasks 0.1 as LatteTasks
PlasmaComponents.Page {
id: _tasksPage
Layout.maximumWidth: content.width + content.Layout.leftMargin * 2
Layout.maximumHeight: content.height + units.smallSpacing * 2
width: content.width + content.Layout.leftMargin * 2
height: content.height + units.smallSpacing * 2
property bool disableAllWindowsFunctionality: tasks.configuration.hideAllTasks
readonly property bool isCurrentPage: (dialog.currentPage === _tasksPage)
Component.onCompleted: {
pagesStackView.push(_tasksPage);
pagesStackView.pop(_tasksPage);
}
onIsCurrentPageChanged: {
if (isCurrentPage && latteView.extendedInterface.latteTasksModel.count>1) {
latteView.extendedInterface.appletRequestedVisualIndicator(tasks.id);

Loading…
Cancel
Save