summaryrefslogtreecommitdiffstats
path: root/wayland/democompositor/qml/Chrome.qml
diff options
context:
space:
mode:
Diffstat (limited to 'wayland/democompositor/qml/Chrome.qml')
-rw-r--r--wayland/democompositor/qml/Chrome.qml28
1 files changed, 3 insertions, 25 deletions
diff --git a/wayland/democompositor/qml/Chrome.qml b/wayland/democompositor/qml/Chrome.qml
index 9a7132c..c07782d 100644
--- a/wayland/democompositor/qml/Chrome.qml
+++ b/wayland/democompositor/qml/Chrome.qml
@@ -36,12 +36,10 @@
import QtQuick 2.0
import QtWayland.Compositor 1.0
-import QtGraphicalEffects 1.0
Rectangle {
- border.width: 1
- border.color: "#102080"
- color: "#1337af"
+ border.width: 0
+ color: "#1b1c1d"
id: rootChrome
property alias surface: surfaceItem.surface
property alias valid: surfaceItem.valid
@@ -51,24 +49,7 @@ Rectangle {
property alias destroyAnimation : destroyAnimationImpl
property int marginWidth : 5
- property int titlebarHeight : 25
-
- Item {
- anchors.margins: 1
- anchors.top: parent.top
- anchors.left: parent.left
- anchors.right: parent.right
- height: titlebarHeight
- LinearGradient {
- anchors.fill: parent
- start: Qt.point(0, 0)
- end: Qt.point(0, height)
- gradient: Gradient {
- GradientStop { position: 0.0; color: "steelblue" }
- GradientStop { position: 1.0; color: "#1337af" }
- }
- }
- }
+ property int titlebarHeight : 5
function requestSize(w, h) {
surfaceItem.requestSize(Qt.size(w - 2 * marginWidth, h - titlebarHeight - marginWidth))
@@ -111,7 +92,6 @@ Rectangle {
}
]
-
WaylandQuickItem {
id: surfaceItem
@@ -125,7 +105,6 @@ Rectangle {
property var shellSurface: ShellSurface {
}
-
sizeFollowsSurface: false
onSurfaceDestroyed: {
@@ -166,7 +145,6 @@ Rectangle {
y: 0
width: 0
height: 0
- //visible: false
}
}
]