UI tweaks

This commit is contained in:
Henrik Rydgård committed 2021-01-07 09:40:01 +01:00
1 parent 1c753e4a22
commit e30d079fb5
2 files changed
+10 -12

No files matched your search

+4
View File
@@ -803,6 +803,10 @@ void TextView::Draw(UIContext &dc) {
dc.DrawTextRect(text_.c_str(), bounds_.Offset(1.0f, 1.0f), shadowColor, textAlign_);
}
dc.DrawTextRect(text_.c_str(), bounds_, textColor, textAlign_);
if (small_) {
// If we changed font style, reset it.
dc.SetFontStyle(dc.theme->uiFont);
}
if (clip) {
dc.PopScissor();
}