X Tutup
Skip to content

Modern style: switch to classic renderer name colors#112242

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
DeeJayLSP:rend-swap-fix
Nov 1, 2025
Merged

Modern style: switch to classic renderer name colors#112242
akien-mga merged 1 commit intogodotengine:masterfrom
DeeJayLSP:rend-swap-fix

Conversation

@DeeJayLSP
Copy link
Contributor

@DeeJayLSP DeeJayLSP commented Oct 31, 2025

Fixes #112234.

Just copy-pasted from Classic to Modern.

@DeeJayLSP DeeJayLSP requested review from a team as code owners October 31, 2025 11:34
@AThousandShips AThousandShips added this to the 4.6 milestone Oct 31, 2025
@Mickeon
Copy link
Member

Mickeon commented Oct 31, 2025

Color::hex was done as a general, past bulk effort to save on file size by @Calinou , if I recall correctly.

@DeeJayLSP
Copy link
Contributor Author

DeeJayLSP commented Oct 31, 2025

Modified to hex on Modern, so it matches with Classic without a diff bigger than it needs to be.

Copy link
Member

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

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

🤷 about the hex thing, it doesn't matter right now probably.

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.

Code looks good to me.

IIRC, there's no difference in binary size between Color::hex() and Color(r, g, b, a). The only form we want to avoid is Color("hex_string") as it's slower and takes up more space in the binary.

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

Thanks!

@DeeJayLSP DeeJayLSP deleted the rend-swap-fix branch November 1, 2025 18:15
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.

Modern style theme changed Compatibility and Mobile colors

6 participants

X Tutup