1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Improvements and fixes for the default theme.

Added customizable border size and window highlight.
This commit is contained in:
Daniel J. Ramirez
2017-07-14 23:40:17 -05:00
parent a5b7c2200c
commit a3c2d9a6bd
90 changed files with 2313 additions and 155 deletions

View File

@@ -98,10 +98,10 @@ EditorAssetLibraryItem::EditorAssetLibraryItem() {
Ref<StyleBoxEmpty> border;
border.instance();
/*border->set_default_margin(MARGIN_LEFT,5);
border->set_default_margin(MARGIN_RIGHT,5);
border->set_default_margin(MARGIN_BOTTOM,5);
border->set_default_margin(MARGIN_TOP,5);*/
border->set_default_margin(MARGIN_LEFT, 5);
border->set_default_margin(MARGIN_RIGHT, 5);
border->set_default_margin(MARGIN_BOTTOM, 5);
border->set_default_margin(MARGIN_TOP, 5);
add_style_override("panel", border);
HBoxContainer *hb = memnew(HBoxContainer);
@@ -1261,15 +1261,6 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {
templates_only = p_templates_only;
Ref<StyleBoxEmpty> border;
border.instance();
border->set_default_margin(MARGIN_LEFT, 15);
border->set_default_margin(MARGIN_RIGHT, 15);
border->set_default_margin(MARGIN_BOTTOM, 5);
border->set_default_margin(MARGIN_TOP, 5);
add_style_override("panel", border);
VBoxContainer *library_main = memnew(VBoxContainer);
add_child(library_main);