-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Add outline to ruler tool #36530
Add outline to ruler tool #36530
Conversation
Try adding a 1-pixel offset on each side of the backdrop so the text doesn't "touch" any of its edges. This may look a bit better. Other than that, the feature looks good to me 🙂 |
Wouldn't be better for the text to just have a stronger outline? |
c113e27
to
1e77186
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the feature. Also good code formatting.
Gonna sound like a broken record, but would be nice to have it be an outline instead. Would be subtler, and be consistent with #42995. |
Ah damn, sorry I didn't see your comment. Indeed, a simple oultine might be better IMHO. |
I copied the code from #42995. |
Could you maybe try with a slightly larger outline? It seems that in some cases the outline ends up not rendered. |
If you use an outline, consider using the editor's bold font so that the "white" part of the font is more visible. Right now, the text isn't easy to read. |
It's weird that the outline get such a a weird rendering. But anyway, I believe it's legible enough so that's fine to me. |
1e77186
to
a9fd1f0
Compare
I noticed this happening with the zoom label too some time ago. Apparently, the outline is "desync-ed" and is slightly smaller than the original text: I have no clue why this is happening, I inspected some variables in the debugger, and the outline's size matched the font's size. However, with the new font rewrite, this was fixed, by changing to this:
|
a9fd1f0
to
2254849
Compare
2254849
to
f2751f4
Compare
Thanks! |
Any chance of this being present in the next version? Perhaps I'm missing something, but it's definitely not here right now. |
This was never backported to 3.x, because it uses some functionality that doesn't exist there. It would need a separate PR. |
Not sure about this tbh, but at least it solves an issue. It seriously triggered me.
Before:
After:
Probably resolves #33523 and resolves #42988