mirror of
https://github.com/stenzek/duckstation.git
synced 2026-04-23 14:32:14 +00:00
FullscreenUI: Slight tweak to font weights
Improves readability on low-dpi displays.
This commit is contained in:
@@ -745,8 +745,8 @@ void FullscreenUI::DrawGameGrid(const ImVec2& heading_size)
|
||||
const bool show_titles = Host::GetBaseBoolSettingValue("Main", "FullscreenUIShowGridTitles", true);
|
||||
const bool show_localized_titles = GameList::ShouldShowLocalizedTitles();
|
||||
|
||||
const float title_font_size = UIStyle.MediumFontSize;
|
||||
const float title_font_weight = UIStyle.BoldFontWeight;
|
||||
const float title_font_size = UIStyle.MediumLargeFontSize;
|
||||
const float title_font_weight = UIStyle.NormalFontWeight;
|
||||
const float avail_width = ImGui::GetContentRegionAvail().x;
|
||||
const float title_spacing = LayoutScale(10.0f);
|
||||
const float item_width_with_spacing = std::floor(avail_width / 5.0f);
|
||||
|
||||
@@ -1487,7 +1487,7 @@ void FullscreenUI::DrawFullscreenFooter()
|
||||
|
||||
ImFont* const font = UIStyle.Font;
|
||||
const float font_size = UIStyle.MediumFontSize;
|
||||
const float font_weight = UIStyle.BoldFontWeight;
|
||||
const float font_weight = UIStyle.NormalFontWeight;
|
||||
const float max_width = io.DisplaySize.x - padding * 2.0f;
|
||||
|
||||
float prev_opacity = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user