Skip to content

Commit

Permalink
Merge pull request #4397 from habatake/master
Browse files Browse the repository at this point in the history
UI Custom Font
  • Loading branch information
DavidXanatos authored Nov 26, 2024
2 parents a1f09a0 + f8be375 commit ed73a7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SandboxiePlus/SandMan/SandMan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4251,6 +4251,11 @@ void CSandMan::SetUITheme()


QFont font = QApplication::font();
QString customFontStr = theConf->GetString("UIConfig/UIFont", "");
if (customFontStr != "") {
font.setFamily(customFontStr);
QApplication::setFont(font);
}
double newFontSize = m_DefaultFontSize * theConf->GetInt("Options/FontScaling", 100) / 100.0;
if (newFontSize != font.pointSizeF()) {
font.setPointSizeF(newFontSize);
Expand Down

0 comments on commit ed73a7f

Please sign in to comment.