added style for panel class
This commit is contained in:
parent
9e5efa4abd
commit
9774c8260f
1 changed files with 8 additions and 5 deletions
|
@ -145,8 +145,8 @@ Ref<Theme> create_editor_theme() {
|
|||
theme->set_icon("unchecked", "PopupMenu", theme->get_icon("Unchecked", "EditorIcons"));
|
||||
|
||||
// Editor background
|
||||
Ref<StyleBoxFlat> style_background = make_flat_stylebox(dark_color_2, 4, 4, 4, 4);
|
||||
theme->set_stylebox("Background", "EditorStyles", style_background);
|
||||
Ref<StyleBoxFlat> style_panel = make_flat_stylebox(dark_color_2, 4, 4, 4, 4);
|
||||
theme->set_stylebox("Background", "EditorStyles", style_panel);
|
||||
|
||||
// Focus
|
||||
Ref<StyleBoxFlat> focus_sbt = make_flat_stylebox(light_color_1, 4, 4, 4, 4);
|
||||
|
@ -193,9 +193,9 @@ Ref<Theme> create_editor_theme() {
|
|||
theme->set_stylebox("MenuHover", "EditorStyles", style_menu_hover_border);
|
||||
|
||||
// Content of each tab
|
||||
Ref<StyleBoxFlat> style_panel = make_flat_stylebox(base_color, 1, 4, 1, 1);
|
||||
theme->set_stylebox("panel", "TabContainer", style_panel);
|
||||
theme->set_stylebox("Content", "EditorStyles", style_panel);
|
||||
Ref<StyleBoxFlat> style_content_panel = make_flat_stylebox(base_color, 1, 4, 1, 1);
|
||||
theme->set_stylebox("panel", "TabContainer", style_content_panel);
|
||||
theme->set_stylebox("Content", "EditorStyles", style_content_panel);
|
||||
|
||||
// Button
|
||||
Ref<StyleBoxFlat> style_button = make_flat_stylebox(dark_color_1, 4, 4, 4, 4);
|
||||
|
@ -394,6 +394,9 @@ Ref<Theme> create_editor_theme() {
|
|||
theme->set_icon("grabber", "VSlider", theme->get_icon("SliderGrabber", "EditorIcons"));
|
||||
theme->set_icon("grabber_highlight", "VSlider", theme->get_icon("SliderGrabberHl", "EditorIcons"));
|
||||
|
||||
// Panel
|
||||
theme->set_stylebox("panel", "Panel", style_panel);
|
||||
|
||||
// TooltipPanel
|
||||
Ref<StyleBoxFlat> style_tooltip = make_flat_stylebox(Color(1, 1, 1, 0.8), 8, 8, 8, 8);
|
||||
style_tooltip->set_border_size(2 * EDSCALE);
|
||||
|
|
Loading…
Reference in a new issue