From 8146ae8e43a26787159d5840bae876d79112bd44 Mon Sep 17 00:00:00 2001 From: dam Date: Sun, 10 Apr 2022 07:34:40 +0000 Subject: Themed scrollbar. Tweaked theme of option_set_list. --- option_set/option_set_list.gd | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'option_set/option_set_list.gd') 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(): -- cgit v1.2.3