-
-
Notifications
You must be signed in to change notification settings - Fork 98
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 Disabled text color and x and y offset #6576
Comments
I just realized that icons and styles like line style have this issue too |
#4909 is likely a cleaner solution to this (you can override the font shadow properties whenever the control is disabled manually). |
@Calinou Will that be possible to have pixel perfect font shadowing? |
This should already be the case. Font shadow offset is specified as an integer in pixels, so the shadow always aligned to the pixel grid if the display scale is an integer factor (see #1666). (In fact, Godot doesn't have support for soft text shadows or soft outlines unless you use a custom shader to draw those.) Also, if you disable antialiasing on the font, this will also affect its shadow (as the font shadow always renders the same font). This requires the font to be designed for a specific display size, and you must also display the font at that specified size (or an integer multiple of it). |
Describe the project you are working on
Windows 95 like theme
Describe the problem or limitation you are having in your project
Windows 95 had a text shadow or you could say copy when the text was disabled
It is currently impossible to recreate in a godot theme without attaching a script to the control and redrawing the text
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Add Disabled text color and x and y offset
Possibly add it for the normal, focused, pressed and hovered styles too for future customization..
Add it fro all controls that can display text
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
If this enhancement will not be used often, can it be worked around with a few lines of script?
No
Is there a reason why this should be core and not an add-on in the asset library?
It makes themes more customizable
The text was updated successfully, but these errors were encountered: