on xenial help sign in
update (c) and rename property inPanel -> windowIsMaximized
commit876406906b37bbafe29cb4af0cd7fda9fced9cb7 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateMon 11 Apr 2016, 12:29 (11 years ago) parentc7605f1
2 files changed+4−4
qml/Components/WindowControlButtons.qml+3−3 qml/Panel/Panel.qml+1−1
qml/Components/WindowControlButtons.qml+3−3
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2014-2015 Canonical, Ltd.
2+ * Copyright (C) 2014-2016 Canonical, Ltd.
33 *
44 * This program is free software; you can redistribute it and/or modify
55 * it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ Row {
2323
2424 // to be set from outside
2525 property bool active: false
26− property bool inPanel: false
26+ property bool windowIsMaximized: false
2727
2828 signal close()
2929 signal minimize()
@@ -90,7 +90,7 @@ Row {
9090 Icon {
9191 anchors.fill: parent
9292 anchors.margins: units.dp(3)
93− source: root.inPanel ? "graphics/window-window.svg" : "graphics/window-maximize.svg"
93+ source: root.windowIsMaximized ? "graphics/window-window.svg" : "graphics/window-maximize.svg"
9494 color: root.active ? "white" : UbuntuColors.slate
9595 }
9696 }
qml/Panel/Panel.qml+1−1
@@ -126,7 +126,7 @@ Item {
126126 height: indicators.minimizedPanelHeight - anchors.topMargin - anchors.bottomMargin
127127 visible: PanelState.buttonsVisible && parent.containsMouse && !root.locked && !callHint.visible
128128 active: PanelState.buttonsVisible
129− inPanel: true
129+ windowIsMaximized: true
130130 onClose: PanelState.close()
131131 onMinimize: PanelState.minimize()
132132 onMaximize: PanelState.maximize()