From 004f8eaf857d1a84b6348c6e1abb3da43e4d483a Mon Sep 17 00:00:00 2001 From: Sebastian Morr Date: Mon, 21 Sep 2020 19:03:09 +0200 Subject: [PATCH] Set default BoxContainer separation of 5 px --- main.tscn | 32 ++++++++++++++++++-------------- repository.tscn | 2 ++ styles/theme.tres | 2 ++ terminal.tscn | 5 +++-- 4 files changed, 25 insertions(+), 16 deletions(-) diff --git a/main.tscn b/main.tscn index f9eda01..8910bb0 100644 --- a/main.tscn +++ b/main.tscn @@ -93,13 +93,13 @@ size_flags_vertical = 3 label = "Your repository" [node name="RightSide" type="VBoxContainer" parent="HBoxContainer"] -margin_left = 1274.0 +margin_left = 1275.0 margin_right = 1910.0 margin_bottom = 1070.0 size_flags_horizontal = 3 [node name="Menu" type="HBoxContainer" parent="HBoxContainer/RightSide"] -margin_right = 636.0 +margin_right = 635.0 margin_bottom = 35.0 [node name="LevelSelect" type="MenuButton" parent="HBoxContainer/RightSide/Menu"] @@ -112,33 +112,37 @@ __meta__ = { } [node name="ReloadButton" type="Button" parent="HBoxContainer/RightSide/Menu"] -margin_left = 134.0 -margin_right = 213.0 +margin_left = 135.0 +margin_right = 214.0 margin_bottom = 35.0 +focus_mode = 0 +enabled_focus_mode = 0 text = "Reload" __meta__ = { "_edit_use_anchors_": false } [node name="NextLevelButton" type="Button" parent="HBoxContainer/RightSide/Menu"] -margin_left = 217.0 -margin_right = 327.0 +margin_left = 219.0 +margin_right = 329.0 margin_bottom = 35.0 +focus_mode = 0 custom_styles/hover = SubResource( 1 ) custom_styles/normal = ExtResource( 4 ) +enabled_focus_mode = 0 text = "Next Level" __meta__ = { "_edit_use_anchors_": false } [node name="LevelPanel" type="VBoxContainer" parent="HBoxContainer/RightSide"] -margin_top = 39.0 -margin_right = 636.0 +margin_top = 40.0 +margin_right = 635.0 margin_bottom = 552.0 size_flags_vertical = 3 [node name="LevelName" type="RichTextLabel" parent="HBoxContainer/RightSide/LevelPanel"] -margin_right = 636.0 +margin_right = 635.0 margin_bottom = 60.0 rect_min_size = Vector2( 0, 60 ) custom_fonts/normal_font = ExtResource( 7 ) @@ -148,9 +152,9 @@ __meta__ = { } [node name="Text" type="Control" parent="HBoxContainer/RightSide/LevelPanel"] -margin_top = 64.0 -margin_right = 636.0 -margin_bottom = 513.0 +margin_top = 65.0 +margin_right = 635.0 +margin_bottom = 512.0 size_flags_vertical = 3 [node name="LevelDescription" type="RichTextLabel" parent="HBoxContainer/RightSide/LevelPanel/Text"] @@ -179,8 +183,8 @@ __meta__ = { [node name="Terminal" parent="HBoxContainer/RightSide" instance=ExtResource( 1 )] anchor_right = 0.0 anchor_bottom = 0.0 -margin_top = 556.0 -margin_right = 636.0 +margin_top = 557.0 +margin_right = 635.0 margin_bottom = 1070.0 size_flags_vertical = 3 repository_path = NodePath("../../Repositories/ActiveRepository") diff --git a/repository.tscn b/repository.tscn index e443c5f..7401cd2 100644 --- a/repository.tscn +++ b/repository.tscn @@ -62,6 +62,8 @@ anchor_top = 0.968 anchor_bottom = 0.968 margin_right = 24.0 margin_bottom = 24.0 +focus_mode = 0 +enabled_focus_mode = 0 text = "Hide trees and blobs" [node name="Nodes" type="Control" parent="."] diff --git a/styles/theme.tres b/styles/theme.tres index 2a8d6c7..491d8e2 100644 --- a/styles/theme.tres +++ b/styles/theme.tres @@ -156,6 +156,7 @@ CheckBox/styles/hover = SubResource( 8 ) CheckBox/styles/hover_pressed = SubResource( 9 ) CheckBox/styles/normal = SubResource( 10 ) CheckBox/styles/pressed = SubResource( 11 ) +HBoxContainer/constants/separation = 5 LineEdit/colors/clear_button_color = Color( 0.878431, 0.878431, 0.878431, 1 ) LineEdit/colors/clear_button_color_pressed = Color( 1, 1, 1, 1 ) LineEdit/colors/cursor_color = Color( 0.94, 0.94, 0.94, 1 ) @@ -226,3 +227,4 @@ TextEdit/styles/completion = null TextEdit/styles/focus = SubResource( 17 ) TextEdit/styles/normal = SubResource( 18 ) TextEdit/styles/read_only = null +VBoxContainer/constants/separation = 5 diff --git a/terminal.tscn b/terminal.tscn index 2c43e21..08dd826 100644 --- a/terminal.tscn +++ b/terminal.tscn @@ -25,14 +25,13 @@ __meta__ = { [node name="Control" type="VBoxContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 -custom_constants/separation = 0 __meta__ = { "_edit_use_anchors_": false } [node name="Output" type="RichTextLabel" parent="Control"] margin_right = 1920.0 -margin_bottom = 1049.0 +margin_bottom = 1045.0 size_flags_vertical = 3 custom_styles/normal = SubResource( 1 ) custom_fonts/normal_font = ExtResource( 4 ) @@ -67,7 +66,9 @@ anchor_right = 1.0 margin_left = -10.0 margin_top = 10.0 margin_right = -10.0 +focus_mode = 0 custom_fonts/font = ExtResource( 1 ) +enabled_focus_mode = 0 text = "Clear" [node name="TextEditor" parent="." instance=ExtResource( 5 )]