Skip to content

Commit 9ede032

Browse files
Fix some misc issues
1 parent f93f5fc commit 9ede032

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/ui_widgets/ContextPopup.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ static func create_button(text: String, press_callback: Callable, disabled := fa
5454
var main_button := Button.new()
5555
main_button.theme_type_variation = "ContextButton"
5656
main_button.focus_mode = Control.FOCUS_NONE
57+
main_button.mouse_filter = Control.MouseFilter.MOUSE_FILTER_PASS
5758
if disabled:
5859
main_button.disabled = true
5960
else:

src/ui_widgets/PanelGrid.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ var copy_button: Button
1919

2020
func _ready() -> void:
2121
mouse_exited.connect(remove_copy_button)
22+
mouse_filter = MOUSE_FILTER_IGNORE
2223

2324
func _draw() -> void:
2425
boxes.clear()

src/utils/ThemeUtils.gd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ static func recalculate_colors() -> void:
191191

192192
flat_button_color_disabled = base_color.lerp(max_contrast_color, 0.08)
193193
translucent_button_color_disabled = base_color.lerp(max_contrast_color, 0.1)
194+
context_button_color_disabled = Color(Color.BLACK, maxf(0.16, 0.48 - color_difference(Color.BLACK, basic_panel_inner_color) * 2)) if is_theme_dark\
195+
else Color(Color.BLACK, 0.055)
194196

195197
connected_button_inner_color_hover = line_edit_inner_color.blend(hover_overlay_color)
196198
connected_button_border_color_hover = line_edit_normal_border_color.blend(strong_hover_overlay_color)

0 commit comments

Comments
 (0)