summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKalagmitan <121934419+Kalagmitan@users.noreply.github.com>2026-03-15 15:51:07 +0800
committerGitHub <noreply@github.com>2026-03-15 18:51:07 +1100
commit0903a6a84b34e806ae6f4458f127010982e41bcb (patch)
tree665221aa3dbdf8cd9d2d568ed7a72230f8edd824 /modules
parentcontrolcenter/taskbar: add excludedScreens (#1215) (diff)
downloadcaelestia-shell-0903a6a84b34e806ae6f4458f127010982e41bcb.tar.gz
caelestia-shell-0903a6a84b34e806ae6f4458f127010982e41bcb.tar.bz2
caelestia-shell-0903a6a84b34e806ae6f4458f127010982e41bcb.zip
bar/osicon: fix blurriness (#1271)
* 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>
Diffstat (limited to 'modules')
-rw-r--r--modules/bar/components/OsIcon.qml14
-rw-r--r--modules/lock/Fetch.qml1
2 files changed, 7 insertions, 8 deletions
diff --git a/modules/bar/components/OsIcon.qml b/modules/bar/components/OsIcon.qml
index a61500a..6710294 100644
--- a/modules/bar/components/OsIcon.qml
+++ b/modules/bar/components/OsIcon.qml
@@ -1,15 +1,15 @@
+import qs.components
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
+
+ implicitWidth: Math.round(Appearance.font.size.large * 1.2)
+ implicitHeight: Math.round(Appearance.font.size.large * 1.2)
MouseArea {
anchors.fill: parent
@@ -29,8 +29,8 @@ Item {
id: caelestiaLogo
Logo {
- implicitWidth: Appearance.font.size.large * 1.8
- implicitHeight: Appearance.font.size.large * 1.8
+ implicitWidth: Math.round(Appearance.font.size.large * 1.6)
+ implicitHeight: Math.round(Appearance.font.size.large * 1.6)
}
}
@@ -39,7 +39,7 @@ Item {
ColouredIcon {
source: SysInfo.osLogo
- implicitSize: Appearance.font.size.large * 1.2
+ implicitSize: Math.round(Appearance.font.size.large * 1.2)
colour: Colours.palette.m3tertiary
}
}
diff --git a/modules/lock/Fetch.qml b/modules/lock/Fetch.qml
index 55d6aa7..e96b143 100644
--- a/modules/lock/Fetch.qml
+++ b/modules/lock/Fetch.qml
@@ -147,7 +147,6 @@ ColumnLayout {
Logo {
width: height
- height: height
}
}