console and mining tab visual improvements
This commit is contained in:
@@ -118,8 +118,12 @@ bool Typography::load(ImGuiIO& io, float dpiScale)
|
||||
// and DisplayFramebufferScale is 1.0 (no automatic upscaling).
|
||||
// The window is resized by dpiScale in main.cpp so that fonts at
|
||||
// size*dpiScale fit proportionally (no overflow).
|
||||
float scale = dpiScale * Layout::kFontScale();
|
||||
DEBUG_LOGF("Typography: Loading Material Design type scale (DPI: %.2f, fontScale: %.2f, combined: %.2f)\n", dpiScale, Layout::kFontScale(), scale);
|
||||
// Layout::userFontScale() is the user-chosen accessibility multiplier
|
||||
// (1.0–3.0) persisted in Settings; it makes glyphs physically larger
|
||||
// without any bitmap up-scaling (sharp at every size).
|
||||
float scale = dpiScale * Layout::kFontScale() * Layout::userFontScale();
|
||||
DEBUG_LOGF("Typography: Loading Material Design type scale (DPI: %.2f, fontScale: %.2f, userFontScale: %.2f, combined: %.2f)\n",
|
||||
dpiScale, Layout::kFontScale(), Layout::userFontScale(), scale);
|
||||
|
||||
// For ImGui, we need to load fonts at specific pixel sizes.
|
||||
// Font sizes come from Layout:: accessors (backed by UISchema JSON)
|
||||
|
||||
Reference in New Issue
Block a user