mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #108872 from Giganzo/text-contrast-stack-var
Fix bad text contrast on readonly EditorPropertyArray/Dict/Res
This commit is contained in:
commit
5e8c2f9a0e
1 changed files with 2 additions and 0 deletions
|
@ -781,6 +781,7 @@ void EditorProperty::_update_property_bg() {
|
|||
add_theme_style_override("bg_selected", get_theme_stylebox("sub_inspector_property_bg" + itos(count_subinspectors), EditorStringName(EditorStyles)));
|
||||
add_theme_style_override("bg", get_theme_stylebox("sub_inspector_property_bg" + itos(count_subinspectors), EditorStringName(EditorStyles)));
|
||||
add_theme_color_override("property_color", get_theme_color(SNAME("sub_inspector_property_color"), EditorStringName(EditorStyles)));
|
||||
add_theme_color_override("readonly_color", get_theme_color(SNAME("sub_inspector_property_color"), EditorStringName(EditorStyles)));
|
||||
bottom_editor->add_theme_style_override(SceneStringName(panel), get_theme_stylebox("sub_inspector_bg" + itos(count_subinspectors), EditorStringName(EditorStyles)));
|
||||
} else {
|
||||
bottom_editor->add_theme_style_override(SceneStringName(panel), get_theme_stylebox("sub_inspector_bg_no_border", EditorStringName(EditorStyles)));
|
||||
|
@ -789,6 +790,7 @@ void EditorProperty::_update_property_bg() {
|
|||
remove_theme_style_override("bg_selected");
|
||||
remove_theme_style_override("bg");
|
||||
remove_theme_color_override("property_color");
|
||||
remove_theme_color_override("readonly_color");
|
||||
}
|
||||
end_bulk_theme_override();
|
||||
queue_redraw();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue