multiple fixes for pages first loading/activating

work/spdx
Michail Vourlakos 4 years ago
parent 4b9b0e59b7
commit 0a877c017e

@ -103,10 +103,9 @@ FocusScope {
onAdvancedLevelChanged: {
//! switch to appearancePage when effectsPage becomes hidden because
//! advancedLevel was disabled by the user
/* if (!advancedLevel && tabGroup.currentTab === effectsPage) {
tabGroup.currentTab = appearancePage;
if (!advancedLevel && tabBar.currentTab === effectsTabBtn) {
tabBar.currentTab = appearanceTabBtn;
}*/
}
}
Component.onCompleted: {
@ -394,7 +393,17 @@ FocusScope {
pagesStackView.replace(pagesStackView.currentItem, behaviorPage);
}
}
Connections {
target: viewConfig
onIsReadyChanged: {
if (viewConfig.isReady) {
tabBar.currentTab = behaviorTabBtn;
}
}
}
}
PlasmaComponents.TabButton {
id: appearanceTabBtn
text: i18n("Appearance")
@ -548,7 +557,8 @@ FocusScope {
Component.onCompleted: {
pagesStackView.push(tasksPage);
pagesStackView.pop(tasksPage);
pagesStackView.forwardSliding = true;
pagesStackView.replace(tasksPage, behaviorPage);
}
}
}

@ -1027,11 +1027,14 @@ PlasmaComponents.Page {
Layout.minimumWidth: parent.buttonSize
Layout.maximumWidth: Layout.minimumWidth
text: i18n("Blur")
checked: plasmoid.configuration.blurEnabled
checkable: true
enabled: showBackground.checked && LatteCore.WindowSystem.compositingActive
tooltip: i18n("Background is blurred underneath")
readonly property int blurEnabled: plasmoid.configuration.blurEnabled
onBlurEnabledChanged: checked = blurEnabled;
onClicked: {
plasmoid.configuration.blurEnabled = checked
}
@ -1042,11 +1045,14 @@ PlasmaComponents.Page {
Layout.minimumWidth: parent.buttonSize
Layout.maximumWidth: Layout.minimumWidth
text: i18n("Shadows")
checked: plasmoid.configuration.panelShadows
checkable: true
enabled: showBackground.checked && LatteCore.WindowSystem.compositingActive && themeExtended.hasShadow
tooltip: i18n("Background shows its shadows")
readonly property int panelShadows: plasmoid.configuration.panelShadows
onPanelShadowsChanged: checked = panelShadows
onClicked: {
plasmoid.configuration.panelShadows = checked
}
@ -1057,11 +1063,14 @@ PlasmaComponents.Page {
Layout.minimumWidth: parent.buttonSize
Layout.maximumWidth: Layout.minimumWidth
text: i18n("Outline")
checked: plasmoid.configuration.panelOutline
checkable: true
enabled: showBackground.checked
tooltip: i18n("Background draws a line for its borders. You can set the line size from Latte Preferences")
readonly property int panelOutline: plasmoid.configuration.panelOutline
onPanelOutlineChanged: checked = panelOutline
onClicked: {
plasmoid.configuration.panelOutline = !plasmoid.configuration.panelOutline;
}
@ -1072,7 +1081,6 @@ PlasmaComponents.Page {
Layout.minimumWidth: parent.buttonSize
Layout.maximumWidth: Layout.minimumWidth
text: i18n("All Corners")
checked: plasmoid.configuration.backgroundAllCorners
checkable: true
enabled: showBackground.checked
&& ((plasmoid.configuration.screenEdgeMargin===-1) /*no-floating*/
@ -1081,6 +1089,10 @@ PlasmaComponents.Page {
&& plasmoid.configuration.maxLength===100))
tooltip: i18n("Background draws all corners at all cases.")
readonly property int backgroundAllCorners: plasmoid.configuration.backgroundAllCorners
onBackgroundAllCornersChanged: checked = backgroundAllCorners
onClicked: {
plasmoid.configuration.backgroundAllCorners = !plasmoid.configuration.backgroundAllCorners;
}

Loading…
Cancel
Save