From bc7df6808b404f96dd8a0677a90b4dcfaf9eca47 Mon Sep 17 00:00:00 2001 From: dam Date: Fri, 17 Jun 2022 23:53:52 +0000 Subject: First iteration over the day/night themes. --- ui/date_picker/date_picker.tscn | 4 ++-- ui/modal_popup/modal_popup.gd | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'ui') diff --git a/ui/date_picker/date_picker.tscn b/ui/date_picker/date_picker.tscn index e3d88c4..0e2e64e 100644 --- a/ui/date_picker/date_picker.tscn +++ b/ui/date_picker/date_picker.tscn @@ -174,7 +174,7 @@ __meta__ = { anchor_top = 0.333 anchor_right = 1.0 anchor_bottom = 0.343 -color = Color( 1, 1, 1, 0.25 ) +color = Color( 0.501961, 0.501961, 0.501961, 0.501961 ) __meta__ = { "_edit_use_anchors_": false } @@ -183,7 +183,7 @@ __meta__ = { anchor_top = 0.666 anchor_right = 1.0 anchor_bottom = 0.676 -color = Color( 1, 1, 1, 0.25 ) +color = Color( 0.501961, 0.501961, 0.501961, 0.501961 ) __meta__ = { "_edit_use_anchors_": false } diff --git a/ui/modal_popup/modal_popup.gd b/ui/modal_popup/modal_popup.gd index 95fc2c3..857f90e 100644 --- a/ui/modal_popup/modal_popup.gd +++ b/ui/modal_popup/modal_popup.gd @@ -1,4 +1,4 @@ -extends Control +extends ColorRect class_name ModalPopup signal dismissed # () @@ -42,6 +42,8 @@ func open_popup(title: String, item: Control): if visible == true: return + self.color = get_color("background", "theme") + self.color.a = 0.85 self.title.text = title control = item -- cgit v1.2.3