[UI scaling] Selection highlight (Marching ants) slider in Configure Krita

In Photoshop, the selection highlight is about three times as large as Krita’s, making it much easier to see. Could a setting be added to configure the size of the selection highlight?

On my 4k screen, Krita’s selection is easily missed, especially on a light grey background.

E: the Image’s compression to 1080p makes it much more visible than it actually is.


I don’t think we should make it an option – we’re currently using 4 pixels, and we can easily make that 8.


Merge request here: Make the ants 8 instead of 4 pixels (!1176) · Merge requests · Graphics / Krita · GitLab


Thank you very much for the swift action, I’ll have a look at it when the new build is up! Have a nice day!

I haven’t merged it, though, because I want the opinion of the other people on the team, until then it won’t be in a build.

I’ll keep an eye on it, thanks!

@halla : Hey, I updated my Krita Plus appimage. The new size for the selection marching ants feels now on my display like caravans of worms. But probably I can get used to it. I’ll tell after using it a couple of days.

1 Like

@halla : I’m sorry but I had to roll back to a previous appimage after 1h to workaround the new marching ants size: I had two cases of small lasso selections (selecting an eye iris to move it around, and selecting a finger to rotate position) where the large dashes of white and black were both on my way visually (mainly not about the lenght, but too much contrast created by the 8 contiguous white pixels moving around).

Is it possible to revert it before beta3? I understand @Hologram 's issue; maybe this new size could depend of detection of high-resolution monitor?

Hmm, I checked Krita (4.4.8) , Photoshop, CSP and for me marching ants seems almost the same in all apps (FullHd res). Probably Photoshop is adjusting to the display resolution.

I agree with @Deevad about visual hindering, and, personally, I would prefer even smaller than we have now in stable version.

Or maybe make it an option after all as value box where users can type in the selection display width. For high dpi monitors the old size was barely visible, but considering the vast difference in monitor sizes (now and in the future) between 1080p and 8k, it’ll surely become an issue again at some point.

The option is a bad idea. It might be better to change the size of the “worms” dynamically depending on the size of selection.


I see that there is a difference in thickness in the comparison screen shot you showed earlier in the first post. It looks like photoshop has 2 px thickness.

Also can you take the screenshot in the same background color in both the program the darker background in the screenshot for Krita also makes it so that krita is less visible.

Yeah sure, this is the pre-merge behaviour:

Affinity Photo:


Higher res images: Imgur: The magic of the Internet


Please have a look at the recording, this makes the comparison especially visible.


There is no doubt @Hologram that the selection is too thin for a 4K monitor. It’s really visible especially when your resolution is downscaled to 1080p screenshot: interpolation makes the 4px marching ants blending together and a greyish soup of pixels. We can see on your example that other software scale up selection decoration depending the dpi of monitor. @raghukamath yes, it makes sens if the thickness can be adjusted for hi-DPI monitor too.

Here is what I experience:

Legacy size (4px):


Beta 3 size (8px):


Note: the behavior was reverted on my request on Krita 5.0 branch/Krita Plus (thanks @halla) but will still be part of Krita beta 3 (frozen since today 10amCET time). A dynamic solution taking account screen monitor or selection size (or both) is planed. :+1:

1 Like

On my 4K screen I don’t have any problem

I mean, the 4px ant line is visually Ok for me.
I’m using a 27" monitor.

I can agree that a 15" @ 4K monitor it could be small :sweat_smile:

But in this case, the ant size should be relative to dpi (and not number of pixels on screen…)


1 Like

@Grum999 My monitor is 27 inch too :upside_down_face:

Have you tried a more neutral grey? That’s were it starts to disappear on my end. On pure white or a saturated colour it is already much more visible.


Here’s result on a 50% grey:

That’s still Ok for me, but I think I understand what you mean.
For me on neutral grey there’s a slight effect that is more something like an optical illusion.

Don’t know if greater ants would really solve the problem.

Maybe, if ant size could be a parameter in kritarc file it could help to solve the problem:

  • Keep small 4px value by default
  • Let users really annoyed by the ant size to change it (no need to add an option in settings dialog for Krita 5…)
  • Might be easier to implement than a system that will try do determinate which size to apply according to screen resolution, Hi-Dpi support enabled or not…



The fact that both Photoshop and Affinity Photo use a larger size to compensate for high-dpi tells me that that’s what makes it more visible. Although it looks like their ants are not as elongated, they are rather short dashes, instead of the long dashes in Krita. So the more frequent pixel change from black to white may also be part of the solution.

Unfortunately, Krita still isn’t useable for me with selections, see:

I can barely see that I have anyting selected, if at all.

This (my) posting doesn’t help either, but I can clearly understand/confirm your problem when viewing your screenshots. Strangely enough, I only have this on my monitors on the Full HD monitor (my TV) and can barely see anything there (though it’s about 3 m away), on the 1080×1200 and on the 4k I can clearly see the selection on all backgrounds. So I suspect, it seems to have something to do with the monitor? :thinking:
A setting to adjust the marching ants would be helpful, at least for some.