@@ -19,7 +19,7 @@ import Ubuntu.Components 1.3
22− spacing: overlayShown ? units.gu(2) : units.gu(1)
22+ spacing: overlayShown ? units.gu(2) : windowIsMaximized ? 0 : units.gu(1)
23 Behavior on spacing {
23 Behavior on spacing {
24 UbuntuNumberAnimation {}
24 UbuntuNumberAnimation {}
@@ -48,13 +48,14 @@ Row {
49 Rectangle {
49 Rectangle {
50 anchors.fill: parent
50 anchors.fill: parent
51+ anchors.margins: windowIsMaximized ? units.dp(3) : 0
51 radius: height / 2
52 radius: height / 2
52 color: theme.palette.normal.negative
53 color: theme.palette.normal.negative
53 visible: parent.containsMouse && !overlayShown
54 visible: parent.containsMouse && !overlayShown
56 anchors.fill: parent
57 anchors.fill: parent
57− anchors.margins: units.dp(3)
58+ anchors.margins: windowIsMaximized ? units.dp(6) : units.dp(3)
58 source: "graphics/window-close.svg"
59 source: "graphics/window-close.svg"
59 color: root.active ? "white" : UbuntuColors.slate
60 color: root.active ? "white" : UbuntuColors.slate
@@ -70,13 +71,14 @@ Row {
71 Rectangle {
72 Rectangle {
72 anchors.fill: parent
73 anchors.fill: parent
74+ anchors.margins: windowIsMaximized ? units.dp(3) : 0
73 radius: height / 2
75 radius: height / 2
74 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
76 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
75 visible: parent.containsMouse && !overlayShown
77 visible: parent.containsMouse && !overlayShown
78 anchors.fill: parent
80 anchors.fill: parent
79− anchors.margins: units.dp(3)
81+ anchors.margins: windowIsMaximized ? units.dp(6) : units.dp(3)
80 source: "graphics/window-minimize.svg"
82 source: "graphics/window-minimize.svg"
81 color: root.active ? "white" : UbuntuColors.slate
83 color: root.active ? "white" : UbuntuColors.slate
@@ -102,13 +104,14 @@ Row {
103 Rectangle {
105 Rectangle {
104 anchors.fill: parent
106 anchors.fill: parent
107+ anchors.margins: windowIsMaximized ? units.dp(3) : 0
105 radius: height / 2
108 radius: height / 2
106 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
109 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
107 visible: parent.containsMouse && !overlayShown
110 visible: parent.containsMouse && !overlayShown
110 anchors.fill: parent
113 anchors.fill: parent
111− anchors.margins: units.dp(3)
114+ anchors.margins: windowIsMaximized ? units.dp(6) : units.dp(3)
112 source: root.windowIsMaximized ? "graphics/window-window.svg" : "graphics/window-maximize.svg"
115 source: root.windowIsMaximized ? "graphics/window-window.svg" : "graphics/window-maximize.svg"
113 color: root.active ? "white" : UbuntuColors.slate
116 color: root.active ? "white" : UbuntuColors.slate