diff options
| author | dam <dam@gudinoff> | 2022-04-10 07:34:40 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2022-04-10 07:34:40 +0000 |
| commit | 8146ae8e43a26787159d5840bae876d79112bd44 (patch) | |
| tree | 37f9ba41ee63bef77662216a71deabbf457534b5 /option_set/option_set_list.gd | |
| parent | e32cef1fee6eabd6db71af71356664d259c5eb2b (diff) | |
| download | surgery-log-8146ae8e43a26787159d5840bae876d79112bd44.tar.zst surgery-log-8146ae8e43a26787159d5840bae876d79112bd44.zip | |
Themed scrollbar. Tweaked theme of option_set_list.
Diffstat (limited to 'option_set/option_set_list.gd')
| -rw-r--r-- | option_set/option_set_list.gd | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/option_set/option_set_list.gd b/option_set/option_set_list.gd index 1ab753b..21692dd 100644 --- a/option_set/option_set_list.gd +++ b/option_set/option_set_list.gd @@ -75,10 +75,16 @@ func _ready(): normal_style.bg_color = Color.transparent selected_style = StyleBoxFlat.new() - var bg_color = get_stylebox("pressed", "Button").bg_color - selected_style.border_width_bottom = border_size - selected_style.border_color = bg_color.lightened(0.333) + var button_style := get_stylebox("pressed", "Button") + var bg_color := button_style.bg_color as Color + var corner_radius := button_style.corner_radius_top_right as int +# selected_style.border_width_bottom = border_size +# selected_style.border_color = bg_color.lightened(0.333) selected_style.bg_color = bg_color + selected_style.corner_radius_top_left = corner_radius + selected_style.corner_radius_top_right = corner_radius + selected_style.corner_radius_bottom_right = corner_radius + selected_style.corner_radius_bottom_left = corner_radius func mark_as_dirty(): |
