me like nix
1import QtQuick
2import "../../../config" as Config
3import "../../../components"
4
5Item {
6 id: root
7 signal clicked()
8
9 width: 24
10 height: 24
11
12 Rectangle {
13 anchors.centerIn: parent
14 width: parent.width + 8
15 height: parent.height + 8
16 radius: Config.Appearance.rounding.normal
17 color: logoMouse.containsMouse
18 ? Qt.rgba(Config.Colours.blue.r, Config.Colours.blue.g, Config.Colours.blue.b, 0.15)
19 : "transparent"
20 Behavior on color { CAnim {} }
21 }
22
23 Text {
24 anchors.centerIn: parent
25 color: Config.Colours.blue
26 font.family: Config.Appearance.font.family
27 font.pixelSize: 22
28 text: "\uf313"
29 }
30
31 MouseArea {
32 id: logoMouse
33 anchors.fill: parent
34 anchors.margins: -4
35 hoverEnabled: true
36 cursorShape: Qt.PointingHandCursor
37 onClicked: root.clicked()
38 }
39}