#16116

Tray icons are blurry since 4.5.0rc1: centered on a half pixel

Openviniciosrabopened 1d ago

System details: Omarchy 4.5.0rc1 (rc channel), Hyprland 0.56.2, 1920×1080 at scale 1

What's wrong?

Since 4.5.0rc1, app icons in the tray (Discord, Steam and so on) look soft and blurry. On 4.0.6 they were sharp.

Cause

#15065 replaced anchors.centerIn: parent on the tray icon with a manual center in shell/plugins/bar/widgets/Tray.qml (TrayItem, lines 881–882 on master):

TrayIcon {
  x: (parent.width - width) / 2
  y: (parent.height - height) / 2
  width: Style.bar.iconSize
  height: Style.bar.iconSize

With the default tokens the slot is icon-slot = 27 and the icon is icon-size = 12, so (27 - 12) / 2 = 7.5. The icon lands on a half pixel on both axes and every edge gets sampled across two pixels. anchors.centerIn never had this problem because anchors.alignWhenCentered (on by default) snaps a centered item to a whole pixel.

The Omarchy status icons are not affected; only the tray app icons.

Fix

Round the position:

  x: Math.round((parent.width - width) / 2)
  y: Math.round((parent.height - height) / 2)

The same manual-center pattern was added in a few other places by #15065, so any of them with an odd slot/size difference would blur the same way.

Activity

0

No activity yet.