diff options
| author | dam <dam@gudinoff> | 2022-04-09 02:42:46 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-04-09 02:42:46 +0000 |
| commit | e02b6d1e72deaf5f98bc7d78c7f0e6d269174d7b (patch) | |
| tree | f21914f5147d803512250a4bc1f3ae53a72ac40f | |
| parent | a084df95867a478d5cb2ddc1ad53322082c52450 (diff) | |
| download | surgery-log-e02b6d1e72deaf5f98bc7d78c7f0e6d269174d7b.tar.zst surgery-log-e02b6d1e72deaf5f98bc7d78c7f0e6d269174d7b.zip | |
Themed database popup menu.
| -rw-r--r-- | menu/menu.gd | 2 | ||||
| -rw-r--r-- | themes/dark.tres | 15 |
2 files changed, 15 insertions, 2 deletions
diff --git a/menu/menu.gd b/menu/menu.gd index 735f86a..c3e3185 100644 --- a/menu/menu.gd +++ b/menu/menu.gd @@ -8,7 +8,7 @@ const menu_items: Array = [ { label = "Export Database", action = "export_database_action" }, { label = "Clear Database", action = "clear_database_action" }, { label = "About", action = "about_action" }, - { label = "TEST_FAKE_DB", action = "test_fake_db_action" }, +# { label = "TEST_FAKE_DB", action = "test_fake_db_action" }, ] const license_font_b612: String = "res://licenses/font_b612.txt" const license_godot: String = "res://licenses/godot.txt" diff --git a/themes/dark.tres b/themes/dark.tres index 92ca706..3e3fcc2 100644 --- a/themes/dark.tres +++ b/themes/dark.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=11 format=2] +[gd_resource type="Theme" load_steps=12 format=2] [ext_resource path="res://fonts/font_regular.tres" type="DynamicFont" id=1] [ext_resource path="res://fonts/font_mono_regular.tres" type="DynamicFont" id=2] @@ -59,6 +59,17 @@ corner_radius_top_right = 15 corner_radius_bottom_right = 15 corner_radius_bottom_left = 15 +[sub_resource type="StyleBoxFlat" id=13] +content_margin_left = 20.0 +content_margin_right = 20.0 +content_margin_top = 10.0 +content_margin_bottom = 10.0 +bg_color = Color( 0.15, 0.15, 0.15, 1 ) +corner_radius_top_left = 15 +corner_radius_top_right = 15 +corner_radius_bottom_right = 15 +corner_radius_bottom_left = 15 + [resource] default_font = ExtResource( 1 ) Button/styles/disabled = SubResource( 10 ) @@ -72,4 +83,6 @@ LineEdit/styles/focus = SubResource( 9 ) LineEdit/styles/normal = SubResource( 7 ) LineEdit/styles/read_only = null Panel/styles/panel = SubResource( 12 ) +PopupMenu/constants/vseparation = 20 +PopupMenu/styles/panel = SubResource( 13 ) VBoxContainer/constants/separation = 10 |
