Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Nano
Commits
57912b41
Commit
57912b41
authored
Feb 01, 2021
by
Marco Martin
Browse files
fullscreen applet configs
the layout of wallpapers configs survives better
parent
47863479
Changes
2
Hide whitespace changes
Inline
Side-by-side
shell/contents/configuration/AppletConfiguration.qml
View file @
57912b41
...
...
@@ -36,11 +36,11 @@ Rectangle {
LayoutMirroring.enabled
:
Qt
.
application
.
layoutDirection
===
Qt
.
RightToLeft
LayoutMirroring.childrenInherit
:
true
color
:
Qt
.
rgba
(
0
,
0
,
0
,
0.6
*
dialog
.
position
)
color
:
"
transparent
"
//BEGIN properties
property
bool
isContainment
:
false
property
alias
internalDialog
:
dialog
property
alias
internalDialog
:
dialog
Contents
//END properties
//BEGIN model
...
...
@@ -119,31 +119,24 @@ Rectangle {
// root.width = dialogRootItem.implicitWidth
// root.height = dialogRootItem.implicitHeight
}
onVisibleChanged
:
{
if
(
visible
)
{
dialogContents
.
visible
=
true
;
}
}
//END connections
//BEGIN UI components
QtControls.Drawer
{
id
:
dialog
Rectangle
{
id
:
dialog
Contents
visible
:
true
edge
:
Qt
.
BottomEdge
onClosed
:
configDialog
.
close
()
x
:
parent
.
width
/
2
-
width
/
2
opacity
:
position
width
:
Math
.
min
(
Math
.
max
(
units
.
gridUnit
*
35
,
dialogRootItem
.
implicitWidth
+
leftPadding
+
rightPadding
),
root
.
width
)
height
:
Math
.
min
(
root
.
height
-
units
.
gridUnit
*
2
,
dialogRootItem
.
implicitHeight
+
topPadding
+
bottomPadding
+
units
.
gridUnit
,
root
.
height
)
leftPadding
:
background
.
margins
.
left
topPadding
:
background
.
margins
.
top
rightPadding
:
background
.
margins
.
right
bottomPadding
:
0
background
:
PlasmaCore.FrameSvgItem
{
imagePath
:
"
widgets/background
"
enabledBorders
:
PlasmaCore
.
FrameSvgItem
.
LeftBorder
|
PlasmaCore
.
FrameSvgItem
.
TopBorder
|
PlasmaCore
.
FrameSvgItem
.
RightBorder
}
contentItem
:
ColumnLayout
{
anchors.fill
:
parent
color
:
Kirigami
.
Theme
.
backgroundColor
ColumnLayout
{
id
:
dialogRootItem
anchors.fill
:
parent
spacing
:
0
implicitWidth
:
scroll
.
implicitWidth
...
...
shell/contents/configuration/ContainmentConfiguration.qml
View file @
57912b41
...
...
@@ -56,6 +56,8 @@ AppletConfiguration {
id
:
imageWallpaperDrawer
edge
:
root
.
horizontal
?
Qt
.
LeftEdge
:
Qt
.
BottomEdge
visible
:
true
dragMargin
:
0
onClosed
:
{
if
(
!
root
.
internalDialog
.
visible
)
{
configDialog
.
close
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment