Made favourite settings stars yellow

This commit is contained in:
Daniël van Noord
2021-04-03 08:50:35 +02:00
parent 9a84b0abe5
commit 566efbc68b
4 changed files with 7 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -26,8 +26,10 @@ export default function CreatePrefOption(config) {
div.className = 'listing';
if (CMOptions.FavouriteSettings === 1) {
const FavStar = document.createElement('a');
if (FavouriteSettings.includes(config)) FavStar.innerText = '★';
else FavStar.innerText = '';
if (FavouriteSettings.includes(config)) {
FavStar.innerText = '';
FavStar.style.color = 'yellow';
} else FavStar.innerText = '☆';
FavStar.className = 'option';
FavStar.onclick = function () {
ToggleFavouriteSetting(config);