* Logo Shape component - Added Logo.qml component with scaling - Updated OsIcon to use Logo component * missed removing tour * [CI] chore: update flake * Colours.palette defaults * fixed import, added logo to Fetch.qml * single shape parent, prop changes * prop changes --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
46 lines
1 KiB
QML
46 lines
1 KiB
QML
import qs.components.effects
|
|
import qs.services
|
|
import qs.config
|
|
import qs.utils
|
|
import QtQuick
|
|
import qs.components
|
|
|
|
Item {
|
|
id: root
|
|
|
|
implicitWidth: Appearance.font.size.large * 1.2
|
|
implicitHeight: 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: Appearance.font.size.large * 1.8
|
|
implicitHeight: Appearance.font.size.large * 1.8
|
|
}
|
|
}
|
|
|
|
Component {
|
|
id: distroIcon
|
|
|
|
ColouredIcon {
|
|
source: SysInfo.osLogo
|
|
implicitSize: Appearance.font.size.large * 1.2
|
|
colour: Colours.palette.m3tertiary
|
|
}
|
|
}
|
|
}
|