X Tutup
Skip to content

Fix GraphEdit contrast in modern theme#112260

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
passivestar:graphedit-contrast
Nov 1, 2025
Merged

Fix GraphEdit contrast in modern theme#112260
akien-mga merged 1 commit intogodotengine:masterfrom
passivestar:graphedit-contrast

Conversation

@passivestar
Copy link
Contributor

Fixes the lack of contrast between graph nodes and their background in the new theme. This PR makes the values close to what they are in the classic theme

Before After
1 2

Didn't screenshot the light theme but tested it and made it match the classic theme values too.

While I was at it I also fixed focus indication for GraphEdit, it was solving a problem that doesn't exist anymore after the theme was ported from gdscript

@passivestar passivestar requested review from a team as code owners October 31, 2025 19:57
@akien-mga akien-mga changed the title Fix GraphEdit contrast Fix GraphEdit contrast in modern theme Oct 31, 2025
@akien-mga akien-mga added this to the 4.6 milestone Oct 31, 2025
@akien-mga akien-mga requested a review from YeldhamDev October 31, 2025 20:10
@Calinou
Copy link
Member

Calinou commented Oct 31, 2025

That reminds me, I'm curious as to whether GraphNodes should be darker or lighter than the background. If we want to follow the concept of UI elevation (example), more prominent elements should have a brighter background (on both dark and light themes).

@passivestar
Copy link
Contributor Author

I think lighter nodes might look better but that would probably be a much bigger PR because I'd need to make sure that it still works well with the inner elements of the nodes. This PR on the other hand is just a simple bugfix

@PavielKraskouski
Copy link
Contributor

Blender has darker background and lighter nodes:

image

Same for Unity Engine:

image

Perhaps something like this, but lighter:

image

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, it works as expected. I can confirm the focus indicator issue is fixed too.

Code looks good to me.

Before

Default Light Black (OLED)
Image Image Image

After

Default Light Black (OLED)
Image Image Image

@akien-mga akien-mga merged commit b376a33 into godotengine:master Nov 1, 2025
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@passivestar passivestar deleted the graphedit-contrast branch November 1, 2025 19:42
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.

4 participants

X Tutup