Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blurry on 2k display #22

Open
etherbiswas opened this issue Aug 20, 2023 · 9 comments
Open

Blurry on 2k display #22

etherbiswas opened this issue Aug 20, 2023 · 9 comments

Comments

@etherbiswas
Copy link

IMG_20230820_132052_HDR
Dock icons appear blurry hard to see in the image but it is very pixelated when not using something like 1920x1080p, this is noticeable on 2560x1600p

@nwg-piotr
Copy link
Owner

nwg-piotr commented Aug 20, 2023

One of my monitors is 2K, and the icons are sharp as a razor. They may be blurry if you use fractional scaling, but this is the problem of GTK and Wayland. I can do nothing about it.

@etherbiswas
Copy link
Author

as you can see no fractional scaling in my hyprland config

@etherbiswas
Copy link
Author

Uploading IMG_20230820_184357_HDR_AI.jpg…

@etherbiswas
Copy link
Author

Uploading IMG_20230820_184357_HDR_AI~2.jpg…

@etherbiswas
Copy link
Author

etherbiswas commented Aug 20, 2023

github isnt updating;

monitor=DP-1,preferred,auto,2
monitor=DP-2,preferred,auto,1

# unscale XWayland
xwayland {
  force_zero_scaling = true
}

# toolkit-specific scale
env = GDK_SCALE,2
env = XCURSOR_SIZE,32
exec-once = brightnessctl set 30%
exec-once = nwg-panel
exec-once = nwg-dock-hyprland -x
exec-once = hyprpaper

this should not be in the fractional scaling category?

@nwg-piotr
Copy link
Owner

With monitor scale: 2.00 icons appear blurry, indeed - even if it's not a fractional scaling. But there's nothing I could do about it.

@nwg-piotr
Copy link
Owner

nwg-piotr commented Aug 20, 2023

After a short investigation: we could achieve sharp icons on scaled displays by giving up on icon size in pixels and gdk.Pixbuf. We would need to always use predefined icon sizes:

const (
	ICON_SIZE_INVALID       IconSize = C.GTK_ICON_SIZE_INVALID
	ICON_SIZE_MENU          IconSize = C.GTK_ICON_SIZE_MENU
	ICON_SIZE_SMALL_TOOLBAR IconSize = C.GTK_ICON_SIZE_SMALL_TOOLBAR
	ICON_SIZE_LARGE_TOOLBAR IconSize = C.GTK_ICON_SIZE_LARGE_TOOLBAR
	ICON_SIZE_BUTTON        IconSize = C.GTK_ICON_SIZE_BUTTON
	ICON_SIZE_DND           IconSize = C.GTK_ICON_SIZE_DND
	ICON_SIZE_DIALOG        IconSize = C.GTK_ICON_SIZE_DIALOG
)

This is quite a fundamental and limiting change, that would need to be applied to all my stuff, not only the dock. I am not sure if I want to go into it for just a single issue reported.

Also: gtk menus will still appear blurred. :/

@aljustiet
Copy link

aljustiet commented Nov 17, 2024

Same. Icons look blurry on 1920x1200 screen with 1.6 scaling value.

@serenyadev
Copy link

Would it be possible to make this a config option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants