1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

[Scene] Add SceneStringName::FlatButton

This commit is contained in:
Chaosus
2024-12-05 17:13:20 +03:00
parent a372214a4a
commit ba39b078f5
44 changed files with 256 additions and 254 deletions

View File

@@ -182,7 +182,7 @@ VoxelGIEditorPlugin::VoxelGIEditorPlugin() {
bake_hb->set_h_size_flags(Control::SIZE_EXPAND_FILL);
bake_hb->hide();
bake = memnew(Button);
bake->set_theme_type_variation("FlatButton");
bake->set_theme_type_variation(SceneStringName(FlatButton));
// TODO: Rework this as a dedicated toolbar control so we can hook into theme changes and update it
// when the editor theme updates.
bake->set_button_icon(EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("Bake"), EditorStringName(EditorIcons)));