Android: Add method to set root window color at runtime#109491
Merged
Repiteo merged 2 commits intogodotengine:masterfrom Sep 26, 2025
Merged
Android: Add method to set root window color at runtime#109491Repiteo merged 2 commits intogodotengine:masterfrom
Repiteo merged 2 commits intogodotengine:masterfrom
Conversation
10fcd96 to
64a61b7
Compare
|
No context? |
64a61b7 to
c610732
Compare
Member
Author
Updated PR description. |
c610732 to
b98554e
Compare
m4gr3d
approved these changes
Aug 11, 2025
b98554e to
459cb33
Compare
Contributor
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I mean by "root window" here?
The root window is the one on which the Godot app is rendered. It’s only visible in areas where Godot doesn’t render, the status bar, navigation bar, and display cutouts.
#108557 added an export option to set this background color at export time. However, there are valid reasons to want to change it at runtime. For example, I want to change it dynamically based on the app’s theme color.
Currently, it’s already possible to change this color at runtime usingJavaClassWrapperandAndroidRuntime. Since I was already adding a method to change it for the Editor, I figured it made sense to expose it as well. That’s the only reason.Example to set it via JavaClassWrapper
Update: It's not trivial to do this via JavaClassWrapper. See #109667