mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-01 01:13:40 +00:00
Fix font preview/thumbnail in dark mode/any theme (fix #3851)
This commit is contained in:
parent
ff993f1687
commit
ad57997482
@ -114,8 +114,11 @@ private:
|
||||
generateThumbnail();
|
||||
|
||||
if (m_thumbnail) {
|
||||
const auto* theme = app::skin::SkinTheme::get(this);
|
||||
Graphics* g = ev.graphics();
|
||||
g->drawRgbaSurface(m_thumbnail.get(), textWidth()+4, 0);
|
||||
g->drawColoredRgbaSurface(m_thumbnail.get(),
|
||||
theme->colors.text(),
|
||||
textWidth()+4, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -141,9 +144,8 @@ private:
|
||||
text::FontStyle(),
|
||||
FontInfo::Flags::Antialias);
|
||||
|
||||
const gfx::Color color = theme->colors.text();
|
||||
doc::ImageRef image =
|
||||
render_text(fontInfoDefSize, text(), color);
|
||||
render_text(fontInfoDefSize, text(), gfx::rgba(0, 0, 0));
|
||||
if (!image)
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user