mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Removed some unnecessary applyTheme calls from CarouselComponent and GridComponent
This commit is contained in:
parent
493f51cbe8
commit
42e5e2c096
|
@ -313,7 +313,6 @@ void CarouselComponent<T>::addEntry(Entry& entry, const std::shared_ptr<ThemeDat
|
|||
item->setCroppedSize(glm::round(mItemSize * (mItemScale >= 1.0f ? mItemScale : 1.0f)));
|
||||
item->setCornerRadius(mImageCornerRadius);
|
||||
item->setImage(entry.data.imagePath);
|
||||
item->applyTheme(theme, "system", "", ThemeFlags::ALL);
|
||||
if (mImageBrightness != 0.0)
|
||||
item->setBrightness(mImageBrightness);
|
||||
if (mImageSaturation != 1.0)
|
||||
|
@ -344,7 +343,6 @@ void CarouselComponent<T>::addEntry(Entry& entry, const std::shared_ptr<ThemeDat
|
|||
glm::round(mItemSize * (mItemScale >= 1.0f ? mItemScale : 1.0f)));
|
||||
mDefaultImage->setCornerRadius(mImageCornerRadius);
|
||||
mDefaultImage->setImage(entry.data.defaultImagePath);
|
||||
mDefaultImage->applyTheme(theme, "system", "", ThemeFlags::ALL);
|
||||
if (mImageBrightness != 0.0)
|
||||
mDefaultImage->setBrightness(mImageBrightness);
|
||||
if (mImageSaturation != 1.0)
|
||||
|
@ -419,7 +417,6 @@ void CarouselComponent<T>::updateEntry(Entry& entry, const std::shared_ptr<Theme
|
|||
item->setCroppedSize(glm::round(mItemSize * (mItemScale >= 1.0f ? mItemScale : 1.0f)));
|
||||
item->setCornerRadius(mImageCornerRadius);
|
||||
item->setImage(entry.data.imagePath);
|
||||
item->applyTheme(theme, "system", "", ThemeFlags::ALL);
|
||||
if (mImageBrightness != 0.0)
|
||||
item->setBrightness(mImageBrightness);
|
||||
if (mImageSaturation != 1.0)
|
||||
|
|
|
@ -312,7 +312,6 @@ void GridComponent<T>::addEntry(Entry& entry, const std::shared_ptr<ThemeData>&
|
|||
item->setCroppedSize(mItemSize * mImageRelativeScale);
|
||||
item->setCornerRadius(mImageCornerRadius);
|
||||
item->setImage(entry.data.imagePath);
|
||||
item->applyTheme(theme, "system", "", ThemeFlags::ALL);
|
||||
if (mImageBrightness != 0.0)
|
||||
item->setBrightness(mImageBrightness);
|
||||
if (mImageSaturation != 1.0)
|
||||
|
@ -345,7 +344,6 @@ void GridComponent<T>::addEntry(Entry& entry, const std::shared_ptr<ThemeData>&
|
|||
mDefaultImage->setCroppedSize(mItemSize * mImageRelativeScale);
|
||||
mDefaultImage->setCornerRadius(mImageCornerRadius);
|
||||
mDefaultImage->setImage(entry.data.defaultImagePath);
|
||||
mDefaultImage->applyTheme(theme, "system", "", ThemeFlags::ALL);
|
||||
if (mImageBrightness != 0.0)
|
||||
mDefaultImage->setBrightness(mImageBrightness);
|
||||
if (mImageSaturation != 1.0)
|
||||
|
@ -403,7 +401,6 @@ void GridComponent<T>::updateEntry(Entry& entry, const std::shared_ptr<ThemeData
|
|||
item->setCroppedSize(mItemSize * mImageRelativeScale);
|
||||
item->setCornerRadius(mImageCornerRadius);
|
||||
item->setImage(entry.data.imagePath);
|
||||
item->applyTheme(theme, "system", "", ThemeFlags::ALL);
|
||||
if (mImageBrightness != 0.0)
|
||||
item->setBrightness(mImageBrightness);
|
||||
if (mImageSaturation != 1.0)
|
||||
|
|
Loading…
Reference in a new issue