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
Breeze Style for QQC2
Commits
47fe8a2b
Commit
47fe8a2b
authored
Mar 04, 2021
by
Noah Davis
🌵
Browse files
[Drawer] Add a shadow, rewrite separator, clean up
parent
def4caed
Changes
1
Hide whitespace changes
Inline
Side-by-side
style/qtquickcontrols/Drawer.qml
View file @
47fe8a2b
...
...
@@ -14,34 +14,31 @@ import "impl"
T.Drawer
{
id
:
control
palette
:
Kirigami
.
Theme
.
palette
parent
:
T
.
ApplicationWindow
.
overlay
parent
:
T
.
Overlay
.
overlay
implicitWidth
:
Math
.
max
(
implicitBackgroundWidth
+
leftInset
+
rightInset
,
contentWidth
+
leftPadding
+
rightPadding
)
implicitHeight
:
Math
.
max
(
implicitBackgroundHeight
+
topInset
+
bottomInset
,
contentHeight
+
topPadding
+
bottomPadding
)
contentWidth
:
contentItem
.
implicitWidth
||
(
contentChildren
.
length
===
1
?
contentChildren
[
0
].
implicitWidth
:
0
)
contentHeight
:
contentItem
.
implicitHeight
||
(
contentChildren
.
length
===
1
?
contentChildren
[
0
].
implicitHeight
:
0
)
topPadding
:
control
.
edge
===
Qt
.
BottomEdge
?
1
:
0
leftPadding
:
control
.
edge
===
Qt
.
RightEdge
?
1
:
0
rightPadding
:
control
.
edge
===
Qt
.
LeftEdge
?
1
:
0
bottomPadding
:
control
.
edge
===
Qt
.
TopEdge
?
1
:
0
background
:
Rectangle
{
background
:
Kirigami.Shadowed
Rectangle
{
color
:
Kirigami
.
Theme
.
backgroundColor
Rectangle
{
anchors
{
left
:
control
.
edge
!==
Qt
.
LeftEdge
?
parent
.
left
:
undefined
right
:
control
.
edge
!==
Qt
.
RightEdge
?
parent
.
right
:
undefined
top
:
control
.
edge
!==
Qt
.
TopEdge
?
parent
.
top
:
undefined
bottom
:
control
.
edge
!==
Qt
.
BottomEdge
?
parent
.
bottom
:
undefined
}
color
:
Kirigami
.
Theme
.
separatorColor
implicitWidth
:
1
implicitHeight
:
1
shadow
{
color
:
Qt
.
rgba
(
0
,
0
,
0
,
0.2
)
size
:
15
}
Kirigami.Separator
{
readonly
property
bool
horizontal
:
control
.
edge
===
Qt
.
LeftEdge
||
control
.
edge
===
Qt
.
RightEdge
width
:
horizontal
?
Kirigami
.
Units
.
smallBorder
:
parent
.
width
height
:
horizontal
?
parent
.
height
:
Kirigami
.
Units
.
smallBorder
x
:
control
.
edge
===
Qt
.
LeftEdge
?
parent
.
width
-
1
:
0
y
:
control
.
edge
===
Qt
.
TopEdge
?
parent
.
height
-
1
:
0
visible
:
!
control
.
dim
}
}
...
...
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