From c33d81755158d17621aa83b76c6bbd723256b4d9 Mon Sep 17 00:00:00 2001 From: Sebastian Morr Date: Mon, 28 Sep 2020 18:25:44 +0200 Subject: [PATCH] Theme for Trees, remove [...] button --- styles/theme.tres | 56 ++++++++++++++++++++++++++++++++++++++++++++++- terminal.tscn | 9 ++++---- 2 files changed, 60 insertions(+), 5 deletions(-) diff --git a/styles/theme.tres b/styles/theme.tres index f3b98f8..c5a62e0 100644 --- a/styles/theme.tres +++ b/styles/theme.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=21 format=2] +[gd_resource type="Theme" load_steps=23 format=2] [ext_resource path="res://fonts/default.tres" type="DynamicFont" id=1] [ext_resource path="res://fonts/monospace.tres" type="DynamicFont" id=2] @@ -138,6 +138,24 @@ corner_radius_top_right = 10 corner_radius_bottom_right = 10 corner_radius_bottom_left = 10 +[sub_resource type="StyleBoxFlat" id=19] +content_margin_left = 5.0 +content_margin_right = 5.0 +content_margin_top = 5.0 +content_margin_bottom = 5.0 +bg_color = Color( 0.215686, 0.219608, 0.258824, 1 ) +corner_radius_top_left = 5 +corner_radius_top_right = 5 +corner_radius_bottom_right = 5 +corner_radius_bottom_left = 5 + +[sub_resource type="StyleBoxFlat" id=20] +bg_color = Color( 0.309804, 0.317647, 0.372549, 1 ) +corner_radius_top_left = 5 +corner_radius_top_right = 5 +corner_radius_bottom_right = 5 +corner_radius_bottom_left = 5 + [resource] default_font = ExtResource( 1 ) Button/colors/font_color = Color( 1, 1, 1, 1 ) @@ -257,4 +275,40 @@ TextEdit/styles/completion = null TextEdit/styles/focus = SubResource( 17 ) TextEdit/styles/normal = SubResource( 18 ) TextEdit/styles/read_only = null +Tree/colors/custom_button_font_highlight = Color( 0.94, 0.94, 0.94, 1 ) +Tree/colors/drop_position_color = Color( 1, 0.3, 0.2, 1 ) +Tree/colors/font_color = Color( 0.69, 0.69, 0.69, 1 ) +Tree/colors/font_color_selected = Color( 1, 1, 1, 1 ) +Tree/colors/guide_color = Color( 0, 0, 0, 0.1 ) +Tree/colors/relationship_line_color = Color( 0.27, 0.27, 0.27, 1 ) +Tree/colors/title_button_color = Color( 0.88, 0.88, 0.88, 1 ) +Tree/constants/button_margin = 4 +Tree/constants/draw_guides = 0 +Tree/constants/draw_relationship_lines = 0 +Tree/constants/hseparation = 4 +Tree/constants/item_margin = 0 +Tree/constants/scroll_border = 4 +Tree/constants/scroll_speed = 12 +Tree/constants/vseparation = 4 +Tree/fonts/font = null +Tree/fonts/title_button_font = null +Tree/icons/arrow = null +Tree/icons/arrow_collapsed = null +Tree/icons/checked = null +Tree/icons/select_arrow = null +Tree/icons/unchecked = null +Tree/icons/updown = null +Tree/styles/bg = SubResource( 19 ) +Tree/styles/bg_focus = null +Tree/styles/button_pressed = null +Tree/styles/cursor = null +Tree/styles/cursor_unfocused = null +Tree/styles/custom_button = null +Tree/styles/custom_button_hover = null +Tree/styles/custom_button_pressed = null +Tree/styles/selected = SubResource( 20 ) +Tree/styles/selected_focus = null +Tree/styles/title_button_hover = null +Tree/styles/title_button_normal = null +Tree/styles/title_button_pressed = null VBoxContainer/constants/separation = 5 diff --git a/terminal.tscn b/terminal.tscn index 8b3db1b..9222955 100644 --- a/terminal.tscn +++ b/terminal.tscn @@ -36,7 +36,7 @@ __meta__ = { [node name="TopHalf" type="Control" parent="VBoxContainer"] margin_right = 1920.0 -margin_bottom = 1045.0 +margin_bottom = 1052.0 size_flags_vertical = 3 [node name="Output" type="RichTextLabel" parent="VBoxContainer/TopHalf"] @@ -62,13 +62,13 @@ __meta__ = { } [node name="InputLine" type="HBoxContainer" parent="VBoxContainer"] -margin_top = 1049.0 +margin_top = 1056.0 margin_right = 1920.0 margin_bottom = 1080.0 [node name="Input" type="LineEdit" parent="VBoxContainer/InputLine"] -margin_right = 1892.0 -margin_bottom = 31.0 +margin_right = 1920.0 +margin_bottom = 24.0 size_flags_horizontal = 3 caret_blink = true __meta__ = { @@ -76,6 +76,7 @@ __meta__ = { } [node name="CommandDropdown" type="MenuButton" parent="VBoxContainer/InputLine"] +visible = false margin_left = 1896.0 margin_right = 1920.0 margin_bottom = 31.0