mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
GridComponent now sets its default position and size if this is not defined by the theme configuration.
This commit is contained in:
parent
d14983d4ae
commit
8062ebaf3a
|
@ -385,7 +385,13 @@ void GridComponent<T>::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
|||
const std::string& element,
|
||||
unsigned int properties)
|
||||
{
|
||||
mSize.x = Renderer::getScreenWidth();
|
||||
mSize.y = Renderer::getScreenHeight() * 0.8;
|
||||
GuiComponent::mPosition.x = 0.0f;
|
||||
GuiComponent::mPosition.y = Renderer::getScreenHeight() * 0.1;
|
||||
|
||||
GuiComponent::applyTheme(theme, view, element, properties);
|
||||
|
||||
using namespace ThemeFlags;
|
||||
const ThemeData::ThemeElement* elem {theme->getElement(view, element, "grid")};
|
||||
|
||||
|
|
Loading…
Reference in a new issue