You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
[Scene] Add SceneStringName::FlatButton
This commit is contained in:
@@ -178,7 +178,7 @@ void LightmapGIEditorPlugin::_bind_methods() {
|
||||
|
||||
LightmapGIEditorPlugin::LightmapGIEditorPlugin() {
|
||||
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)));
|
||||
|
||||
Reference in New Issue
Block a user