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

Improve icons in the Input Map editor #35819

Merged
merged 1 commit into from
Feb 10, 2020

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Feb 1, 2020

  • Add a disabled icon for built-in inputs with a tooltip explaining why they can't be removed. This also makes the Add button's horizontal position consistent between built-in and custom inputs.
  • Fade out input event icons slightly to make them easier to distinguish from action icons.
  • Remove unnecessary punctuation from mouse button and joypad event descriptions.

See godotengine/godot-proposals#303 (comment) for more information.

Preview

Preview

@FeatherAntennae
Copy link

Pretty nice overhaul!

I'm just not sure about fading the icons. It makes it hard to distinguish between disabled and faded out icons.

Would it be possible to extend the background color of the row instead?

If we kept the same colors as the rows under the buttons, we would immediately know what they are tied to!

@Calinou
Copy link
Member Author

Calinou commented Feb 1, 2020

I'm just not sure about fading the icons. It makes it hard to distinguish between disabled and faded out icons.

That was my concern too. On one hand, I'd like to distinguish action icons from individual input icons. It helps the user click the button they actually intended, rather than misreading the list and clicking a button on the wrong row. On the other hand, it's difficult to find a color that doesn't look like the button does something entirely different.

I made another attempt where the action icons used a blue-ish hue obtained by blending the default color and the editor theme's accent color, but it didn't look that great either. What do you think about this? See also my answer below.

Would it be possible to extend the background color of the row instead?

I've tried to do that, but unfortunately, it doesn't work. Icons aren't considered part of the TreeItem column for some reason; I'm not sure if this can be solved without breaking too much stuff.

@FeatherAntennae
Copy link

Would it be possible to extend the background color of the row instead?

I've tried to do that, but unfortunately, it doesn't work. Icons aren't considered part of the TreeItem column for some reason; I'm not sure if this can be solved without breaking too much stuff.

If I remember well, the TreeItems in this tree have 3 columns and I think only the first two are given a background color, setting the 3rd column's background doesn't work?

@Calinou
Copy link
Member Author

Calinou commented Feb 1, 2020

@FeatherAntennae That's what I meant. Setting the 3rd column's background color results in this:

image

(I set it to red so the issue is easily visible.)

It seems changing the background color only changes the column's background color up to the icons. Since the column only contains icons, only a tiny part of it is actually colored. The TreeItem only has 3 columns, since both icons are in the same column.

@FeatherAntennae
Copy link

@Calinou Hmm, that might be a bug actually.

We could leave it as is for now with your current improvements and open an issue?

@Calinou
Copy link
Member Author

Calinou commented Feb 2, 2020

@FeatherAntennae Sounds good to me 🙂

- Add a disabled icon for built-in inputs with a tooltip explaining
  why they can't be removed. This also makes the Add button's horizontal
  position consistent between built-in and custom inputs.
- Fade out input event icons slightly to make them easier to distinguish
  from action icons.
- Remove unnecessary punctuation from mouse button and joypad event
  descriptions.
@Calinou Calinou force-pushed the improve-inputmap-editor-icons branch from 0254cf3 to c695751 Compare February 5, 2020 17:22
@akien-mga akien-mga added this to the 4.0 milestone Feb 10, 2020
@akien-mga akien-mga merged commit 6c1f428 into godotengine:master Feb 10, 2020
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou mentioned this pull request Feb 22, 2020
@Calinou Calinou deleted the improve-inputmap-editor-icons branch March 26, 2020 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants