mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 17:47:09 +00:00
quickshell and hyprland additions
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user