~mterry/unity8/less-ubuntucolors

« back to all changes in this revision

Viewing changes to qml/Components/WindowControlButtons.qml

  • Committer: Michael Zanetti
  • Date: 2016-05-02 08:15:14 UTC
  • mfrom: (2325.1.50 unity8)
  • Revision ID: michael.zanetti@canonical.com-20160502081514-9cnbi0v1sqjkhym4
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
    // to be set from outside
25
25
    property bool active: false
 
26
    property bool closeButtonShown: true
26
27
 
27
28
    signal close()
28
29
    signal minimize()
35
36
        height: parent.height
36
37
        width: height
37
38
        onClicked: root.close()
 
39
        visible: root.closeButtonShown
38
40
 
39
41
        Rectangle {
40
42
            anchors.centerIn: parent
41
43
            width: units.gu(2)
42
44
            height: units.gu(2)
43
45
            radius: height / 2
44
 
            color: "#ed3146"
 
46
            color: UbuntuColors.red
45
47
            visible: parent.containsMouse
46
48
        }
47
49
        Icon {
49
51
            height: parent.height *.5
50
52
            anchors.centerIn: parent
51
53
            source: "graphics/window-close.svg"
52
 
            color: root.active ? "white" : "#5d5d5d"
 
54
            color: root.active ? "white" : UbuntuColors.slate
53
55
            keyColor: "black"
54
56
        }
55
57
    }
67
69
            width: units.gu(2)
68
70
            height: units.gu(2)
69
71
            radius: height / 2
70
 
            color: "#888888"
 
72
            color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
71
73
            visible: parent.containsMouse
72
74
        }
73
75
        Icon {
75
77
            height: parent.height *.5
76
78
            anchors.centerIn: parent
77
79
            source: "graphics/window-minimize.svg"
78
 
            color: root.active ? "white" : "#5d5d5d"
 
80
            color: root.active ? "white" : UbuntuColors.slate
79
81
            keyColor: "black"
80
82
        }
81
83
    }
93
95
            width: units.gu(2)
94
96
            height: units.gu(2)
95
97
            radius: height / 2
96
 
            color: "#888888"
 
98
            color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
97
99
            visible: parent.containsMouse
98
100
        }
99
101
        Icon {
101
103
            height: parent.height *.5
102
104
            anchors.centerIn: parent
103
105
            source: "graphics/window-maximize.svg"
104
 
            color: root.active ? "white" : "#5d5d5d"
 
106
            color: root.active ? "white" : UbuntuColors.slate
105
107
            keyColor: "black"
106
108
        }
107
109
    }