* osicon: Unblurred sidebar icon + The multiplier on the implicitWidth and implicitHeight caused the distro icon on the sidebar to look blurry. I believe this is because the screen can't render a fraction of a pixel, and so, the qtengine compensates by using anti-aliasing which causes the icon look smudged. + I changed the font size of the icon to a standard integer size (extraLarge) and removed the multipliers. A side-effect of this commit is that the icon looks a bit bigger now, I chose extraLarge instead of just large because the icon looked a bit too small, but I do not know of other people's preference on this. * feat: Adjusted root implictWidth and implicitHeight * fix --------- Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
46 lines
1.1 KiB
QML
46 lines
1.1 KiB
QML
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
|
|
}
|
|
}
|
|
}
|