@@ -19,7 +19,7 @@ import Ubuntu.Components 1.3
1919
2020Row {
2121 id: root
22− spacing: overlayShown ? units.gu(2) : units.gu(1)
22+ spacing: overlayShown ? units.gu(2) : windowIsMaximized ? 0 : units.gu(1)
2323 Behavior on spacing {
2424 UbuntuNumberAnimation {}
2525 }
@@ -48,13 +48,14 @@ Row {
4848
4949 Rectangle {
5050 anchors.fill: parent
51+ anchors.margins: windowIsMaximized ? units.dp(3) : 0
5152 radius: height / 2
5253 color: theme.palette.normal.negative
5354 visible: parent.containsMouse && !overlayShown
5455 }
5556 Icon {
5657 anchors.fill: parent
57− anchors.margins: units.dp(3)
58+ anchors.margins: windowIsMaximized ? units.dp(6) : units.dp(3)
5859 source: "graphics/window-close.svg"
5960 color: root.active ? "white" : UbuntuColors.slate
6061 }
@@ -70,13 +71,14 @@ Row {
7071
7172 Rectangle {
7273 anchors.fill: parent
74+ anchors.margins: windowIsMaximized ? units.dp(3) : 0
7375 radius: height / 2
7476 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
7577 visible: parent.containsMouse && !overlayShown
7678 }
7779 Icon {
7880 anchors.fill: parent
79− anchors.margins: units.dp(3)
81+ anchors.margins: windowIsMaximized ? units.dp(6) : units.dp(3)
8082 source: "graphics/window-minimize.svg"
8183 color: root.active ? "white" : UbuntuColors.slate
8284 }
@@ -102,13 +104,14 @@ Row {
102104
103105 Rectangle {
104106 anchors.fill: parent
107+ anchors.margins: windowIsMaximized ? units.dp(3) : 0
105108 radius: height / 2
106109 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
107110 visible: parent.containsMouse && !overlayShown
108111 }
109112 Icon {
110113 anchors.fill: parent
111− anchors.margins: units.dp(3)
114+ anchors.margins: windowIsMaximized ? units.dp(6) : units.dp(3)
112115 source: root.windowIsMaximized ? "graphics/window-window.svg" : "graphics/window-maximize.svg"
113116 color: root.active ? "white" : UbuntuColors.slate
114117 }