Skip to content

Commit

Permalink
tweek popup_list height to match qlaunch, change white/abyss scrollba…
Browse files Browse the repository at this point in the history
…r colour, fix menu using text instead of line colours
  • Loading branch information
ITotalJustice committed Jan 9, 2025
1 parent abc7a07 commit 91a08d3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions assets/romfs/themes/abyss_theme.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ inherit=romfs:/themes/base_black_theme.ini
background = 0x0f111a
grid = 0x0f115c30
popup = 0x0f115c

line = 0xffbc41
line_seperator = 0xffbc41

text = 0xffbc41
text_info = 0xffbc41
text_selected = 0x529cff
selected_background = 0x0f115c

scrollbar = 0x3250f0
scrollbar_background = ; hide the background

progressbar = 0x3250f0
2 changes: 1 addition & 1 deletion assets/romfs/themes/base_white_theme.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ selected_background = 0xfdfdfd

sidebar = 0xe2e2e2f5

scrollbar = 0x3250f0
scrollbar = 0xB0B0B0
scrollbar_background = ; hide the background
; scrollbar_background = 0xababab

Expand Down
4 changes: 2 additions & 2 deletions sphaira/source/ui/menus/menu_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion sphaira/source/ui/popup_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 91a08d3

Please sign in to comment.