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

Tweak the editor CheckButton appearance to clarify what's the "on" state #2002

Closed
01271 opened this issue Dec 20, 2020 · 1 comment · Fixed by godotengine/godot#44556
Closed

Comments

@01271
Copy link

01271 commented Dec 20, 2020

Describe the project you are working on

Making a top-down racing game.

Describe the problem or limitation you are having in your project

The Godot UI is unclear at-a-glance when it comes to on/off switches.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

image
image

This is an on/off toggle. It is unclear if this is ON or OFF.
On certain programs toggles "fade out" when they are inactive. On others they go dark when inactive. It is therefore difficult to tell whether this is ON or OFF.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

I would like the graphic changed to be clearer. The new graphic would need to be clear in all languages so it would be great to use colour instead of words.
The IOS toggle button is a great example.
image

If this enhancement will not be used often, can it be worked around with a few lines of script?

It will be used often. We see it all the time.

Is there a reason why this should be core and not an add-on in the asset library?

The core experience should be as clear as possible.

@Calinou Calinou changed the title Clearer on/off switches Clearer on/off switches in the editor theme Dec 20, 2020
@Calinou Calinou changed the title Clearer on/off switches in the editor theme Tweak the editor CheckButton appearance to clarify what's the "on" state Dec 20, 2020
@Calinou
Copy link
Member

Calinou commented Dec 20, 2020

I'd like to implement this, but there are two caveats right now:

  • CheckButton doesn't have modulate theme items for its icon when the CheckButton is pressed. We need this to change the CheckButton's color depending on the editor theme's accent color (which is blue by default, but can be changed).
  • CheckButton needs to be able to draw an "underlay" that we can modulate without modulating the white dot displayed on top.

Using an hardcoded blue color is an option too, but it won't look as pretty for those using a non-default editor theme.

Edit: I opened a pull request with a hardcoded blue color: godotengine/godot#44556

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

Successfully merging a pull request may close this issue.

3 participants