1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Replace flat buttons with flat-styled buttons with a visible pressed state

This commit is contained in:
Yuri Sizov
2023-09-19 18:03:10 +02:00
parent 571cd0eb79
commit 4bd569be95
40 changed files with 291 additions and 212 deletions

View File

@@ -168,7 +168,7 @@ void LightmapGIEditorPlugin::_bind_methods() {
LightmapGIEditorPlugin::LightmapGIEditorPlugin() {
bake = memnew(Button);
bake->set_flat(true);
bake->set_theme_type_variation("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_icon(EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("Bake"), EditorStringName(EditorIcons)));