tweek popup_list height to match qlaunch, change white/abyss scrollbar colour, fix menu using text instead of line colours

This commit is contained in:
ITotalJustice
2025-01-09 19:34:16 +00:00
parent abc7a0799d
commit 91a08d36b4
4 changed files with 13 additions and 4 deletions

View File

@@ -58,8 +58,8 @@ void MenuBase::Draw(NVGcontext* vg, Theme* theme) {
#undef draw
gfx::drawRect(vg, 30.f, 86.f, 1220.f, 1.f, theme->GetColour(ThemeEntryID_TEXT));
gfx::drawRect(vg, 30.f, 646.0f, 1220.f, 1.f, theme->GetColour(ThemeEntryID_TEXT));
gfx::drawRect(vg, 30.f, 86.f, 1220.f, 1.f, theme->GetColour(ThemeEntryID_LINE));
gfx::drawRect(vg, 30.f, 646.0f, 1220.f, 1.f, theme->GetColour(ThemeEntryID_LINE));
nvgFontSize(vg, 28);
gfx::textBounds(vg, 0, 0, bounds, m_title.c_str());

View File

@@ -84,7 +84,7 @@ PopupList::PopupList(std::string title, Items items, Callback cb, s64 index)
);
m_pos.w = 1280.f;
const float a = std::min(380.f, (60.f * static_cast<float>(m_items.size())));
const float a = std::min(370.f, (60.f * static_cast<float>(m_items.size())));
m_pos.h = 80.f + 140.f + a;
m_pos.y = 720.f - m_pos.h;
m_line_top = m_pos.y + 70.f;