mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 02:34:45 +00:00
Use rounded edges for drawer
This commit is contained in:
parent
392ed46c55
commit
0308d1fd62
1 changed files with 20 additions and 8 deletions
|
|
@ -19,22 +19,34 @@
|
||||||
import QtQuick 2.6
|
import QtQuick 2.6
|
||||||
import QtQuick.Layouts 1.4
|
import QtQuick.Layouts 1.4
|
||||||
import QtQuick.Controls 2.4 as QQC2
|
import QtQuick.Controls 2.4 as QQC2
|
||||||
|
import QtGraphicalEffects 1.0
|
||||||
|
|
||||||
|
import org.kde.plasma.plasmoid 2.0
|
||||||
import org.kde.plasma.core 2.0 as PlasmaCore
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
||||||
|
|
||||||
|
|
||||||
QQC2.Control {
|
QQC2.Control {
|
||||||
id: root
|
id: root
|
||||||
leftPadding: background.margins.left
|
leftPadding: units.largeSpacing
|
||||||
topPadding: background.margins.top
|
topPadding: units.largeSpacing
|
||||||
rightPadding: background.margins.right
|
rightPadding: units.largeSpacing
|
||||||
bottomPadding: background.margins.bottom
|
bottomPadding: units.largeSpacing
|
||||||
|
|
||||||
background: PlasmaCore.FrameSvgItem {
|
background: Item {
|
||||||
imagePath: "widgets/background"
|
|
||||||
// This MouseArea just prevents the Control from eating pure touch event (breaking flickables)
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
|
Rectangle {
|
||||||
|
id: container
|
||||||
|
color: Qt.rgba(PlasmaCore.ColorScope.backgroundColor.r, PlasmaCore.ColorScope.backgroundColor.g, PlasmaCore.ColorScope.backgroundColor.b, 0.85)
|
||||||
|
anchors {
|
||||||
|
fill: parent
|
||||||
|
leftMargin: units.smallSpacing
|
||||||
|
rightMargin: units.smallSpacing
|
||||||
|
topMargin: units.smallSpacing
|
||||||
|
bottomMargin: units.smallSpacing
|
||||||
|
}
|
||||||
|
radius: units.smallSpacing
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue