Add a new editor theme
Co-authored-by: passivestar <60579014+passivestar@users.noreply.github.com>
This commit is contained in:
@@ -1125,12 +1125,8 @@ GameView::GameView(Ref<GameViewDebugger> p_debugger, EmbeddedProcessBase *p_embe
|
||||
window_wrapper = p_wrapper;
|
||||
embedded_process = p_embedded_process;
|
||||
|
||||
// Add some margin to the sides for better aesthetics.
|
||||
// This prevents the first button's hover/pressed effect from "touching" the panel's border,
|
||||
// which looks ugly.
|
||||
MarginContainer *toolbar_margin = memnew(MarginContainer);
|
||||
toolbar_margin->add_theme_constant_override("margin_left", 4 * EDSCALE);
|
||||
toolbar_margin->add_theme_constant_override("margin_right", 4 * EDSCALE);
|
||||
toolbar_margin->set_theme_type_variation("MainToolBarMargin");
|
||||
add_child(toolbar_margin);
|
||||
|
||||
HBoxContainer *main_menu_hbox = memnew(HBoxContainer);
|
||||
|
||||
Reference in New Issue
Block a user