Skip to content

Commit

Permalink
#3394 Fix colour change not applied to favourites in Outfit Gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-productengine committed Jan 13, 2025
1 parent 2a3d69a commit acf3541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indra/newview/lloutfitgallery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ void LLOutfitGalleryItem::setOutfitFavorite(bool is_favorite)
mFavorite = is_favorite;

static LLCachedControl<bool> use_color(gSavedSettings, "InventoryFavoritesColorText");
mOutfitNameText->setReadOnlyColor((mFavorite && use_color()) ? sDefaultFavoriteColor.get() : sDefaultTextColor.get());
mOutfitNameText->setReadOnlyColor((mFavorite && use_color()) ? sDefaultFavoriteColor : sDefaultTextColor);
}

void LLOutfitGalleryItem::setOutfitWorn(bool value)
Expand All @@ -1082,7 +1082,7 @@ void LLOutfitGalleryItem::setOutfitWorn(bool value)
mOutfitNameText->setText(mOutfitName); // refresh LLTextViewModel to pick up font changes

static LLCachedControl<bool> use_color(gSavedSettings, "InventoryFavoritesColorText");
mOutfitNameText->setReadOnlyColor((mFavorite && use_color()) ? sDefaultFavoriteColor.get() : sDefaultTextColor.get());
mOutfitNameText->setReadOnlyColor((mFavorite && use_color()) ? sDefaultFavoriteColor : sDefaultTextColor);
}

void LLOutfitGalleryItem::setSelected(bool value)
Expand Down

0 comments on commit acf3541

Please sign in to comment.