overlays: Shrink the shader notification popup

This commit is contained in:
kd-11 2026-03-19 23:24:20 +03:00 committed by kd-11
parent 6590f1b55d
commit 852317a071
4 changed files with 10 additions and 4 deletions

View File

@ -18,7 +18,7 @@ namespace rsx
}
queue_message(
localized_string_id::RSX_OVERLAYS_COMPILING_SHADERS,
localized_string_id::INVALID,
5'000'000,
{},
message_pin_location::bottom_left,

View File

@ -407,6 +407,12 @@ namespace rsx
void overlay_element::set_text(localized_string_id id)
{
if (id == localized_string_id::INVALID)
{
set_text("");
return;
}
set_unicode_text(get_localized_u32string(id));
}

View File

@ -27,8 +27,8 @@ namespace rsx
m_frame_width = m_frame_height = 24;
m_spacing_x = m_spacing_y = 6;
set_size(24, 30);
set_padding(4, 0, 2, 8);
set_size(24, 24);
set_padding(4, 0, 4, 0);
}
};
}

View File

@ -31,7 +31,7 @@ namespace rsx
m_visible_duration = expiration;
m_refs = std::move(refs);
m_text.set_font("Arial", 14);
m_text.set_font("Arial", 12);
m_text.set_text(msg_id);
m_text.set_padding(4, 8, 4, 8);
m_text.auto_resize();