styled drawer
This commit is contained in:
parent
41fe72522b
commit
a3ef488434
2 changed files with 109 additions and 7 deletions
26
components/StyledDrawer.qml
Normal file
26
components/StyledDrawer.qml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import qs.config
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
|
||||
Drawer {
|
||||
id: control
|
||||
dim: false
|
||||
background: Rectangle {
|
||||
Component.onCompleted: {
|
||||
if (control.edge == Qt.TopEdge) {
|
||||
bottomLeftRadius = 8;
|
||||
bottomRightRadius = 8;
|
||||
} else if (control.edge == Qt.LeftEdge) {
|
||||
topRightRadius = 8;
|
||||
bottomRightRadius = 8;
|
||||
} else if (control.edge == Qt.RightEdge) {
|
||||
topLeftRadius = 8;
|
||||
bottomLeftRadius = 8;
|
||||
} else if (control.edge == Qt.BottomEdge) {
|
||||
topLeftRadius = 8;
|
||||
topRightRadius = 8;
|
||||
}
|
||||
}
|
||||
color: Theme.palette.base200
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue