aboutsummaryrefslogtreecommitdiff
path: root/option_set/option_set_list.gd
diff options
context:
space:
mode:
Diffstat (limited to 'option_set/option_set_list.gd')
-rw-r--r--option_set/option_set_list.gd12
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():