Skip to content

Commit

Permalink
Merge pull request #289 from JVT038/fix-unreadable-text-in-dark-mode
Browse files Browse the repository at this point in the history
Fix unreadable contents during dark mode
  • Loading branch information
leepeuker authored Mar 1, 2023
2 parents c67c9d1 + 5bc9be8 commit 1ec9e65
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions public/css/netflix.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
.tmdbrow:hover {
filter: brightness(50%);
}
.netflixrow[data-tmdbid='undefined']:hover {
background-color: #a46c06 !important;
}
.netflixrow[data-tmdbid='undefined']:hover .ratingIcon {
color: rgb(255, 193, 7) !important;
}
.tmdbrow {
cursor: pointer;
}
5 changes: 4 additions & 1 deletion public/js/settings-netflix.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ function processNetflixData(netflixActivityItems) {
for (let i = 1; i <= 10; i++) {
let tmdb_rating_icon = document.createElement('i');
tmdb_rating_icon.className = 'bi bi-star ratingIcon';
if(netflixActivityItem.tmdbMatch === null) {
tmdb_rating_icon.classList.add('text-dark');
}
tmdb_rating_icon.dataset.rating = i;
tmdb_rating_icon.addEventListener('click', setNetflixRatingStars);
tmdb_rating_span.appendChild(tmdb_rating_icon);
Expand All @@ -432,7 +435,7 @@ function processNetflixData(netflixActivityItems) {
} else {
tmdb_cover.alt = 'Cover of missing item';
row.setAttribute('data-tmdbid', 'undefined');
row.classList.add('bg-warning')
row.classList.add('bg-warning', 'text-dark');
}

if (netflixActivityItem.tmdbMatch === null || netflixActivityItem.tmdbMatch.poster_path === null) {
Expand Down

0 comments on commit 1ec9e65

Please sign in to comment.