1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

LibGfx: Make Palette::color(ColorRole) inline

This commit is contained in:
Andreas Kling 2021-02-07 16:52:53 +01:00
parent 767ff06f56
commit 22baa5e64f
2 changed files with 7 additions and 13 deletions

View file

@ -49,17 +49,6 @@ Palette::~Palette()
{
}
const SystemTheme& PaletteImpl::theme() const
{
return *m_theme_buffer.data<SystemTheme>();
}
Color PaletteImpl::color(ColorRole role) const
{
ASSERT((int)role < (int)ColorRole::__Count);
return Color::from_rgba(theme().color[(int)role]);
}
int PaletteImpl::metric(MetricRole role) const
{
ASSERT((int)role < (int)MetricRole::__Count);