From a9a90235d93c6a959353423614660dd7326cc165 Mon Sep 17 00:00:00 2001 From: ChaoticByte Date: Thu, 19 Dec 2024 19:14:30 +0100 Subject: [PATCH] Make UI a little more compact and define a minimum window size --- scenes/main.tscn | 10 +++++----- src/Main.gd | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scenes/main.tscn b/scenes/main.tscn index 415984c..6792ecb 100644 --- a/scenes/main.tscn +++ b/scenes/main.tscn @@ -67,9 +67,9 @@ color = Color(1, 1, 1, 0) [node name="AppName" type="Label" parent="UI_Layer/UserInterfaceContainer"] layout_mode = 0 offset_left = 24.0 -offset_top = 24.0 +offset_top = 16.0 offset_right = 208.0 -offset_bottom = 56.0 +offset_bottom = 48.0 theme_override_font_sizes/font_size = 20 text = "Fragmented" vertical_alignment = 2 @@ -77,9 +77,9 @@ vertical_alignment = 2 [node name="AppVersion" type="Label" parent="UI_Layer/UserInterfaceContainer"] layout_mode = 0 offset_left = 152.0 -offset_top = 24.0 +offset_top = 17.0 offset_right = 208.0 -offset_bottom = 55.0 +offset_bottom = 47.0 theme_override_font_sizes/font_size = 14 text = "v0 " @@ -92,7 +92,7 @@ anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 24.0 -offset_top = 80.0 +offset_top = 64.0 offset_right = -24.0 offset_bottom = -24.0 grow_horizontal = 2 diff --git a/src/Main.gd b/src/Main.gd index cf6c1c5..42be43b 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -5,6 +5,7 @@ extends Node2D func _ready(): + DisplayServer.window_set_min_size(Vector2i(900, 500)) Globals.target_viewport = image_viewport func _on_save_image_button_pressed():