aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-06-08 21:49:45 +0000
committerdam <dam@gudinoff>2022-06-08 21:49:45 +0000
commita4b9a04763bb60c45300a267778f6586e43ce454 (patch)
treef8fd6c520766d28fe5703662b5971ea8d271b636
parent79691f93bab7aa093bb606bfb80d2b4b236ee091 (diff)
downloadsurgery-log-a4b9a04763bb60c45300a267778f6586e43ce454.tar.zst
surgery-log-a4b9a04763bb60c45300a267778f6586e43ce454.zip
Preparing project for day/night themes.
-rw-r--r--default_env.tres7
-rw-r--r--main.tscn2
-rw-r--r--project.godot3
-rw-r--r--themes/day.tres (renamed from themes/dark.tres)0
-rw-r--r--themes/night.tres126
5 files changed, 128 insertions, 10 deletions
diff --git a/default_env.tres b/default_env.tres
deleted file mode 100644
index 20207a4..0000000
--- a/default_env.tres
+++ /dev/null
@@ -1,7 +0,0 @@
-[gd_resource type="Environment" load_steps=2 format=2]
-
-[sub_resource type="ProceduralSky" id=1]
-
-[resource]
-background_mode = 2
-background_sky = SubResource( 1 )
diff --git a/main.tscn b/main.tscn
index 9fce789..2b69af7 100644
--- a/main.tscn
+++ b/main.tscn
@@ -2,7 +2,7 @@
[ext_resource path="res://main.gd" type="Script" id=1]
[ext_resource path="res://ui/date_picker/date_picker.tscn" type="PackedScene" id=2]
-[ext_resource path="res://themes/dark.tres" type="Theme" id=3]
+[ext_resource path="res://themes/night.tres" type="Theme" id=3]
[ext_resource path="res://logic/menu.gd" type="Script" id=4]
[ext_resource path="res://logic/database.gd" type="Script" id=5]
[ext_resource path="res://fonts/font_icons.tres" type="DynamicFont" id=6]
diff --git a/project.godot b/project.godot
index b71ddf9..0a05d3d 100644
--- a/project.godot
+++ b/project.godot
@@ -119,5 +119,4 @@ common/enable_pause_aware_picking=true
[rendering]
vram_compression/import_etc=true
-environment/default_clear_color=Color( 0, 0, 0, 1 )
-environment/default_environment="res://default_env.tres"
+environment/default_clear_color=Color( 0, 0, 0, 0 )
diff --git a/themes/dark.tres b/themes/day.tres
index 875ee21..875ee21 100644
--- a/themes/dark.tres
+++ b/themes/day.tres
diff --git a/themes/night.tres b/themes/night.tres
new file mode 100644
index 0000000..875ee21
--- /dev/null
+++ b/themes/night.tres
@@ -0,0 +1,126 @@
+[gd_resource type="Theme" load_steps=17 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]
+
+[sub_resource type="StyleBoxEmpty" id=10]
+content_margin_left = 10.0
+content_margin_right = 10.0
+
+[sub_resource type="StyleBoxFlat" id=11]
+content_margin_left = 10.0
+content_margin_right = 10.0
+bg_color = Color( 0.223529, 0.352941, 0.501961, 0.784314 )
+corner_radius_top_left = 15
+corner_radius_top_right = 15
+corner_radius_bottom_right = 15
+corner_radius_bottom_left = 15
+
+[sub_resource type="StyleBoxFlat" id=2]
+content_margin_left = 10.0
+content_margin_right = 10.0
+bg_color = Color( 0.25098, 0.25098, 0.25098, 0.870588 )
+corner_radius_top_left = 15
+corner_radius_top_right = 15
+corner_radius_bottom_right = 15
+corner_radius_bottom_left = 15
+
+[sub_resource type="StyleBoxFlat" id=4]
+content_margin_left = 10.0
+content_margin_right = 10.0
+bg_color = Color( 0.337255, 0.529412, 0.74902, 0.870588 )
+corner_radius_top_left = 15
+corner_radius_top_right = 15
+corner_radius_bottom_right = 15
+corner_radius_bottom_left = 15
+
+[sub_resource type="StyleBoxEmpty" id=5]
+
+[sub_resource type="StyleBoxEmpty" id=21]
+content_margin_left = 10.0
+content_margin_right = 10.0
+content_margin_top = 15.0
+
+[sub_resource type="StyleBoxFlat" id=9]
+content_margin_left = 10.0
+content_margin_right = 10.0
+bg_color = Color( 0, 0, 0, 0 )
+draw_center = false
+border_width_bottom = 4
+border_color = Color( 0.337255, 0.529412, 0.74902, 0.870588 )
+
+[sub_resource type="StyleBoxFlat" id=7]
+content_margin_left = 10.0
+content_margin_right = 10.0
+bg_color = Color( 0, 0, 0, 0 )
+draw_center = false
+border_width_bottom = 2
+border_color = Color( 0.329412, 0.329412, 0.329412, 1 )
+
+[sub_resource type="StyleBoxFlat" id=12]
+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
+
+[sub_resource type="StyleBoxFlat" id=20]
+bg_color = Color( 0.223529, 0.352941, 0.501961, 0.784314 )
+corner_radius_top_left = 15
+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
+
+[sub_resource type="StyleBoxFlat" id=18]
+bg_color = Color( 0.223529, 0.352941, 0.501961, 0.784314 )
+corner_radius_top_left = 10
+corner_radius_top_right = 10
+corner_radius_bottom_right = 10
+corner_radius_bottom_left = 10
+
+[sub_resource type="StyleBoxFlat" id=19]
+bg_color = Color( 0.337255, 0.529412, 0.74902, 0.870588 )
+corner_radius_top_left = 10
+corner_radius_top_right = 10
+corner_radius_bottom_right = 10
+corner_radius_bottom_left = 10
+
+[sub_resource type="StyleBoxEmpty" id=17]
+content_margin_left = 20.0
+
+[resource]
+default_font = ExtResource( 1 )
+Button/styles/disabled = SubResource( 10 )
+Button/styles/focus = SubResource( 10 )
+Button/styles/hover = SubResource( 11 )
+Button/styles/normal = SubResource( 2 )
+Button/styles/pressed = SubResource( 4 )
+ItemList/fonts/font = ExtResource( 2 )
+ItemList/styles/bg = SubResource( 5 )
+ItemList/styles/selected = SubResource( 4 )
+ItemList/styles/selected_focus = SubResource( 4 )
+Label/styles/normal = SubResource( 21 )
+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/hover = SubResource( 20 )
+PopupMenu/styles/panel = SubResource( 13 )
+VBoxContainer/constants/separation = 10
+VScrollBar/styles/grabber = SubResource( 18 )
+VScrollBar/styles/grabber_highlight = SubResource( 18 )
+VScrollBar/styles/grabber_pressed = SubResource( 19 )
+VScrollBar/styles/scroll = SubResource( 17 )
+VScrollBar/styles/scroll_focus = SubResource( 17 )