blob: 6710294a06f2f9df982edd936aae33dc2a5935a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
import qs.components
import qs.components.effects
import qs.services
import qs.config
import qs.utils
import QtQuick
Item {
id: root
implicitWidth: Math.round(Appearance.font.size.large * 1.2)
implicitHeight: Math.round(Appearance.font.size.large * 1.2)
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
const visibilities = Visibilities.getForActive();
visibilities.launcher = !visibilities.launcher;
}
}
Loader {
anchors.centerIn: parent
sourceComponent: SysInfo.isDefaultLogo ? caelestiaLogo : distroIcon
}
Component {
id: caelestiaLogo
Logo {
implicitWidth: Math.round(Appearance.font.size.large * 1.6)
implicitHeight: Math.round(Appearance.font.size.large * 1.6)
}
}
Component {
id: distroIcon
ColouredIcon {
source: SysInfo.osLogo
implicitSize: Math.round(Appearance.font.size.large * 1.2)
colour: Colours.palette.m3tertiary
}
}
}
|