nosignal-shell/modules/bar/components/OsIcon.qml
Robin Seger 1bb7afe7b0
feat: add Logo shape component (#1247)
* 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>
2026-03-10 00:27:43 +11:00

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
}
}
}