summaryrefslogtreecommitdiffstats
path: root/wayland/democompositor/qml/Chrome.qml
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@theqtcompany.com>2016-02-01 15:20:59 +0100
committerPaul Olav Tvete <paul.tvete@theqtcompany.com>2016-02-09 11:26:46 +0000
commit01405a2515243d81b4a7718dacb879eb5fd7cc92 (patch)
tree2625539ae19c5c595667800b4448b9d71eb11b61 /wayland/democompositor/qml/Chrome.qml
parent19acec2796c26bd902472ddd87858fac4d20ada4 (diff)
Initial implementation of Diana's design
Based on the screenshots. Not using exact values for sizes and distances. Change-Id: I37c9593b776f4fb6f98ab4b8b571357f182ee65a Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
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
}
}
]