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

Add Solarized dark and Solarized light color scheme #5066

Merged
merged 12 commits into from
May 8, 2024
Merged

Add Solarized dark and Solarized light color scheme #5066

merged 12 commits into from
May 8, 2024

Conversation

DontBlameMe99
Copy link
Contributor

@DontBlameMe99 DontBlameMe99 commented May 5, 2024

Add Solarized dark and Solarized light color scheme

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Description

I implemented the solarized dark and light color scheme, its accent colors and corresponding icons.
https://github.com/altercation/solarized

Things I added:

  • Base Theme Solarized Dark
  • Base Theme Solarized Light
  • Main/Secondary Color Theme Solarized Yellow
  • Main/Secondary Color Theme Solarized Orange
  • Main/Secondary Color Theme Solarized Red
  • Main/Secondary Color Theme Solarized Magenta
  • Main/Secondary Color Theme Solarized Violet
  • Main/Secondary Color Theme Solarized Blue
  • Main/Secondary Color Theme Solarized Cyan
  • Main/Secondary Color Theme Solarized Green

Screenshots

image
image

Desktop

  • OS: Linux
  • FreeTube version: Latest development branch

Add the solarized dark and the solarized light color scheme, as well as accent colors and icons
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label May 5, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 5, 2024 12:33
@DontBlameMe99 DontBlameMe99 changed the title feat: ✨ add Solarized dark and Solarized light color scheme Add Solarized dark and Solarized light color scheme May 5, 2024
Made colors, especially in light mode, more readable.
auto-merge was automatically disabled May 5, 2024 12:59

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 5, 2024 12:59
DontBlameMe added 2 commits May 5, 2024 15:06
Add a missing Solarized-Light branch to the check
Remove a useless empty line
auto-merge was automatically disabled May 5, 2024 13:06

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 5, 2024 13:06
@kommunarr
Copy link
Collaborator

Thanks for the PR! You'll also need to modify the ft-share-button SCSS (note to team: we should honestly centralize this in themes.css in the future as this is very easy to miss). What this governs is what version of the Invidious and YouTube logos show when you click the "Share" icon under a video. If the logo is too dark / bright to see with a given base theme, it means it needs to put it in with either the dark or light colors in that file.

Copy link
Member

Choose a reason for hiding this comment

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

Everything LGTM, im a bit confused why dark and light theme have the same return value
https://github.com/FreeTubeApp/FreeTube/pull/5066/files#diff-f4ca67281c6be819c2166841d7631ffd5316d4c3a3b40e01a512c4113a537b2cR630

Will approve after @jasonhenriquez signs off

@DontBlameMe99
Copy link
Contributor Author

Everything LGTM, im a bit confused why dark and light theme have the same return value https://github.com/FreeTubeApp/FreeTube/pull/5066/files#diff-f4ca67281c6be819c2166841d7631ffd5316d4c3a3b40e01a512c4113a537b2cR630

Will approve after @jasonhenriquez signs off

Honestly because I don't really understand what they mean (in terms of what they are used for), and therefore I don't know what the light/dark one should be

@kommunarr
Copy link
Collaborator

Honestly because I don't really understand what they mean (in terms of what they are used for), and therefore I don't know what the light/dark one should be

This is the startup color while the app is loading. You should have it match the main bg-color for that given theme.

@DontBlameMe99
Copy link
Contributor Author

Honestly because I don't really understand what they mean (in terms of what they are used for), and therefore I don't know what the light/dark one should be

This is the startup color while the app is loading. You should have it match the main bg-color for that given theme.

Thanks, I'll change it!

auto-merge was automatically disabled May 5, 2024 13:47

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 5, 2024 13:47
@DontBlameMe99
Copy link
Contributor Author

DontBlameMe99 commented May 5, 2024

Both things have been changed, I hope this is what you meant :) @jasonhenriquez

@kommunarr kommunarr mentioned this pull request May 6, 2024
1 task
kommunarr
kommunarr previously approved these changes May 6, 2024
@DontBlameMe99 DontBlameMe99 requested a review from kommunarr May 7, 2024 15:53
auto-merge was automatically disabled May 7, 2024 16:39

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 7, 2024 16:39
@DontBlameMe99 DontBlameMe99 requested a review from kommunarr May 7, 2024 16:43
kommunarr
kommunarr previously approved these changes May 7, 2024
Copy link
Collaborator

@kommunarr kommunarr left a comment

Choose a reason for hiding this comment

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

Thanks for the quick responses to feedback, I know theme additions can be a hassle. LGTM!

@DontBlameMe99 DontBlameMe99 requested a review from PikachuEXE May 7, 2024 16:56
auto-merge was automatically disabled May 8, 2024 00:38

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 8, 2024 00:38
Copy link
Member

Choose a reason for hiding this comment

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

Thankyou for putting this together @DontBlameMe99 !

@FreeTubeBot FreeTubeBot merged commit 0ca803e into FreeTubeApp:development May 8, 2024
10 checks passed
@efb4f5ff-1298-471a-8973-3d47447115dc

@DontBlameMe99 i noticed that Solarized Light looks like this. The distinction between the search, refresh and subscription page is gone. That white space in between.

image

Should look like

image

@DontBlameMe99
Copy link
Contributor Author

@efb4f5ff-1298-471a-8973-3d47447115dc This problem is present in way more themes. It is due to the --primary-shadow-color: not being present. In the dark theme it is done/achieved pretty easily by just adding the theme name in

.system[data-system-theme*='dark'],
.dark,
.dracula,
.catppuccinMocha,
.hotPink,
.nordic,
.solarizedDark,
.gruvboxDark,
.catppuccinFrappe,
.everforestDarkHard,
.everforestDarkMedium,
.everforestDarkLow {
  --primary-shadow-color: rgb(0 0 0 / 75%);

  .invidiousLogo {
    background-image: url('./assets/img/invidious-logo-dark.svg');
  }

  .youtubeLogo {
    filter: brightness(0.868);
  }
}

.black .youtubeLogo {
  filter: brightness(0.933);
}

.black .invidiousLogo {
  background-image: url('./assets/img/invidious-logo-dark.svg');
}

which is something I am doing all the time. For the light variant no such "simple block" is present, and it is up to every theme itself to implement the shadow color. Instead of doing this, would it be inteligent to create such a block for the light theme variants?

@efb4f5ff-1298-471a-8973-3d47447115dc

I do think it would make sense to create such a block for light themes but i would like @kommunarr opinion on it before we go forward with it

@DontBlameMe99
Copy link
Contributor Author

@efb4f5ff-1298-471a-8973-3d47447115dc Should I just manually implement it for #6468, ignore it or just wait?

@efb4f5ff-1298-471a-8973-3d47447115dc

Lets wait, i want to know Jason's thoughts first

@kommunarr
Copy link
Collaborator

Yeah I think it makes sense to have a light theme default and still allow theme-specific overrides if it doesn't fit visually

@DontBlameMe99
Copy link
Contributor Author

Yeah I think it makes sense to have a light theme default and still allow theme-specific overrides if it doesn't fit visually

Is this something that should be done after the PR #6468 is merged or before?

@kommunarr
Copy link
Collaborator

kommunarr commented Dec 29, 2024

Parallel to is fine, probably this fix should be merged first in terms of ease of review

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

Successfully merging this pull request may close these issues.

5 participants