Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Add ability for category logos to switch #17

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jordanvidrine
Copy link
Contributor

This addition allows all category logos to change from light to dark when toggling the color scheme.

After

Kapture 2022-12-14 at 17 05 37

Before

Kapture 2022-12-14 at 17 06 52

Comment on lines +28 to +29
for (let index = 0; index < categoryLogosDarkSrc.length; index++) {
let logo = categoryLogosDarkSrc[index];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (let index = 0; index < categoryLogosDarkSrc.length; index++) {
let logo = categoryLogosDarkSrc[index];
for (const logo of categoryLogosDarkSrc) {

Comment on lines +66 to +68
for (let index = 0; index < categoryLogosDarkSrc.length; index++) {
let logo = categoryLogosDarkSrc[index];
if (logo?.origMedia) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (let index = 0; index < categoryLogosDarkSrc.length; index++) {
let logo = categoryLogosDarkSrc[index];
if (logo?.origMedia) {
for (const logo of categoryLogosDarkSrc) {
if (logo?.origMedia) {

Comment on lines +46 to +47
for (let index = 0; index < categoryLogosDarkSrc.length; index++) {
let logo = categoryLogosDarkSrc[index];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (let index = 0; index < categoryLogosDarkSrc.length; index++) {
let logo = categoryLogosDarkSrc[index];
for (const logo of categoryLogosDarkSrc) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants