Hide theme behind an accessor (so we can expose it only as const)

This commit is contained in:
Henrik Rydgård
2025-09-15 09:31:18 -06:00
parent e39c78dab2
commit e78341b822
19 changed files with 168 additions and 168 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ void AsyncImageFileView::Draw(UIContext &dc) {
}
if (HasFocus()) {
dc.FillRect(dc.theme->itemFocusedStyle.background, bounds_.Expand(3));
dc.FillRect(dc.GetTheme().itemFocusedStyle.background, bounds_.Expand(3));
}
// TODO: involve sizemode