@@ -16,10 +16,11 @@
1616
1717import QtQuick 2.4
1818import Ubuntu.Components 1.3
19+import "../Components/TouchControlsState"
1920
2021Row {
2122 id: root
22− spacing: units.gu(1)
23+ spacing: TouchControlsState.overlayShown && !windowIsMaximized ? units.gu(2) : units.gu(1)
2324
2425 // to be set from outside
2526 property bool active: false
@@ -41,7 +42,7 @@ Row {
4142 anchors.fill: parent
4243 radius: height / 2
4344 color: UbuntuColors.red
44− visible: parent.containsMouse
45+ visible: parent.containsMouse && !TouchControlsState.overlayShown
4546 }
4647 Icon {
4748 anchors.fill: parent
@@ -63,7 +64,7 @@ Row {
6364 anchors.fill: parent
6465 radius: height / 2
6566 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
66− visible: parent.containsMouse
67+ visible: parent.containsMouse && !TouchControlsState.overlayShown
6768 }
6869 Icon {
6970 anchors.fill: parent
@@ -85,7 +86,7 @@ Row {
8586 anchors.fill: parent
8687 radius: height / 2
8788 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
88− visible: parent.containsMouse
89+ visible: parent.containsMouse && !TouchControlsState.overlayShown
8990 }
9091 Icon {
9192 anchors.fill: parent