diff options
| author | dam <dam@gudinoff> | 2022-06-17 23:53:52 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-06-17 23:53:52 +0000 |
| commit | bc7df6808b404f96dd8a0677a90b4dcfaf9eca47 (patch) | |
| tree | 9666debba4bb7a9a476f308a883444c5a8aa1021 /ui/modal_popup/modal_popup.gd | |
| parent | 075aa00b2bdda61640c3e089a8d01c898506903a (diff) | |
| download | surgery-log-bc7df6808b404f96dd8a0677a90b4dcfaf9eca47.tar.zst surgery-log-bc7df6808b404f96dd8a0677a90b4dcfaf9eca47.zip | |
First iteration over the day/night themes.
Diffstat (limited to 'ui/modal_popup/modal_popup.gd')
| -rw-r--r-- | ui/modal_popup/modal_popup.gd | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
