diff --git a/src/raddbg/raddbg_core.c b/src/raddbg/raddbg_core.c index 10f78a4b..670d1564 100644 --- a/src/raddbg/raddbg_core.c +++ b/src/raddbg/raddbg_core.c @@ -9796,11 +9796,18 @@ rd_window_frame(void) rd_icon_kind_text_table[RD_IconKind_Add], panel->cfg); UI_Signal sig = ui_signal_from_box(add_new_box); - if(ui_clicked(sig)) + if(ui_pressed(sig)) { rd_cmd(RD_CmdKind_FocusPanel); UI_Key view_menu_key = ui_key_from_string(ui_key_zero(), str8_lit("_view_menu_key_")); - ui_ctx_menu_open(view_menu_key, add_new_box->key, v2f32(0, tab_bar_vheight)); + if(ui_ctx_menu_is_open(view_menu_key)) + { + ui_ctx_menu_close(); + } + else + { + ui_ctx_menu_open(view_menu_key, add_new_box->key, v2f32(0, tab_bar_vheight)); + } } } } diff --git a/src/ui/ui_core.c b/src/ui/ui_core.c index c21f2430..8bf53e7b 100644 --- a/src/ui/ui_core.c +++ b/src/ui/ui_core.c @@ -1959,9 +1959,9 @@ internal void ui_tooltip_begin(void) { ui_tooltip_begin_base(); - ui_set_next_squish(0.25f-ui_state->tooltip_open_t*0.25f); + ui_set_next_squish(0.1f-ui_state->tooltip_open_t*0.1f); ui_set_next_transparency(1-ui_state->tooltip_open_t); - UI_Flags(UI_BoxFlag_DrawBorder|UI_BoxFlag_DrawBackground|UI_BoxFlag_DrawBackgroundBlur|UI_BoxFlag_DrawDropShadow) + UI_Flags(UI_BoxFlag_DrawBorder|UI_BoxFlag_DrawBackground|UI_BoxFlag_DrawBackgroundBlur|UI_BoxFlag_DrawDropShadow|UI_BoxFlag_SquishAnchored) UI_PrefWidth(ui_children_sum(1)) UI_PrefHeight(ui_children_sum(1)) UI_CornerRadius(ui_top_font_size()*0.25f)