Skip to content

Commit

Permalink
Fix HoverPressed stylebox for CheckBox buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Jowan-Spooner committed Aug 4, 2024
1 parent 0364872 commit b484342
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions material_maker/nodes/generic/generic.gd
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ static func create_parameter_control(p : Dictionary, accept_float_expressions :
control.custom_minimum_size.x = 80
elif p.type == "boolean":
control = CheckBox.new()
control.theme_type_variation = "MM_NodeCheckbox"
elif p.type == "color":
control = ColorPickerButton.new()
control.set_script(preload("res://material_maker/widgets/color_picker_button/color_picker_button.gd"))
Expand Down
2 changes: 2 additions & 0 deletions material_maker/theme/modern.tres
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ Button/colors/icon_pressed_color = Color(0.792157, 0.478431, 0.94902, 1)
Button/styles/disabled = SubResource("StyleBoxFlat_inl5r")
Button/styles/focus = SubResource("StyleBoxFlat_kvrsn")
Button/styles/hover = SubResource("StyleBoxFlat_2qiie")
Button/styles/hover_pressed = SubResource("StyleBoxFlat_2qiie")
Button/styles/normal = SubResource("StyleBoxFlat_rxikb")
Button/styles/pressed = SubResource("StyleBoxFlat_rxikb")
GraphEdit/colors/grid_major = Color(0.137255, 0.141176, 0.152941, 1)
Expand Down Expand Up @@ -571,6 +572,7 @@ MM_FlexibleTab/base_type = &"TabBar"
MM_FlexibleTab/constants/separation = 3
MM_MainBackground/base_type = &"PanelContainer"
MM_MainBackground/styles/panel = SubResource("StyleBoxFlat_wqwm5")
MM_NodeCheckbox/base_type = &"Button"
MM_NodeFloatEdit/base_type = &"Button"
MM_NodeFloatEdit/font_sizes/font_size = 15
MM_NodeFloatEdit/fonts/font = SubResource("FontVariation_80ifi")
Expand Down

0 comments on commit b484342

Please sign in to comment.