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>
This commit is contained in:
parent
aea2ac96ef
commit
0903a6a84b
3 changed files with 40 additions and 40 deletions
|
|
@ -4,8 +4,6 @@ import qs.services
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
implicitWidth: designWidth
|
|
||||||
implicitHeight: designHeight
|
|
||||||
|
|
||||||
readonly property real designWidth: 128
|
readonly property real designWidth: 128
|
||||||
readonly property real designHeight: 90.38
|
readonly property real designHeight: 90.38
|
||||||
|
|
@ -13,6 +11,9 @@ Item {
|
||||||
property color topColour: Colours.palette.m3primary
|
property color topColour: Colours.palette.m3primary
|
||||||
property color bottomColour: Colours.palette.m3onSurface
|
property color bottomColour: Colours.palette.m3onSurface
|
||||||
|
|
||||||
|
implicitWidth: designWidth
|
||||||
|
implicitHeight: designHeight
|
||||||
|
|
||||||
Shape {
|
Shape {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
width: root.designWidth
|
width: root.designWidth
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
|
import qs.components
|
||||||
import qs.components.effects
|
import qs.components.effects
|
||||||
import qs.services
|
import qs.services
|
||||||
import qs.config
|
import qs.config
|
||||||
import qs.utils
|
import qs.utils
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import qs.components
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
implicitWidth: Appearance.font.size.large * 1.2
|
implicitWidth: Math.round(Appearance.font.size.large * 1.2)
|
||||||
implicitHeight: Appearance.font.size.large * 1.2
|
implicitHeight: Math.round(Appearance.font.size.large * 1.2)
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
@ -29,8 +29,8 @@ Item {
|
||||||
id: caelestiaLogo
|
id: caelestiaLogo
|
||||||
|
|
||||||
Logo {
|
Logo {
|
||||||
implicitWidth: Appearance.font.size.large * 1.8
|
implicitWidth: Math.round(Appearance.font.size.large * 1.6)
|
||||||
implicitHeight: Appearance.font.size.large * 1.8
|
implicitHeight: Math.round(Appearance.font.size.large * 1.6)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -39,7 +39,7 @@ Item {
|
||||||
|
|
||||||
ColouredIcon {
|
ColouredIcon {
|
||||||
source: SysInfo.osLogo
|
source: SysInfo.osLogo
|
||||||
implicitSize: Appearance.font.size.large * 1.2
|
implicitSize: Math.round(Appearance.font.size.large * 1.2)
|
||||||
colour: Colours.palette.m3tertiary
|
colour: Colours.palette.m3tertiary
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,6 @@ ColumnLayout {
|
||||||
|
|
||||||
Logo {
|
Logo {
|
||||||
width: height
|
width: height
|
||||||
height: height
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue