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

Update About page to display correct Freetube logo based on currently set theme #5126

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

ducks
Copy link

@ducks ducks commented May 19, 2024

Update About page to display correct Freetube logo based on currently set theme

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

closes #4020

Description

This PR updates the About page view to display the Freetube logo similarly to the top nav. It adds two HTML elements in place of the inline svg. Then we can use CSS to style those elements with the logo variables set by each theme.

Screenshots

before:
before-nordic
before-pastel-pink

after:
after-nordic
after-pastel-pink

Desktop

  • OS: linux
  • OS Version: manjaro 24
  • FreeTube version: v0.20.0 beta

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 19, 2024 07:15
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label May 19, 2024
Copy link
Member

@absidue absidue left a comment

Choose a reason for hiding this comment

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

Thank you for you pull request! I haven't had a chance to test it yet, so for the moment this is just a code review with a small code cleanup suggestion.

src/renderer/views/About/About.scss Outdated Show resolved Hide resolved
auto-merge was automatically disabled May 19, 2024 15:59

Head branch was pushed to by a user without write access

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) May 19, 2024 15:59
@absidue
Copy link
Member

absidue commented May 19, 2024

Could you please use relative sizes instead of absolute pixel amounts, as the logo is larger than it was before on smaller screen sizes and on mobile is gigantic and split onto two separate lines. I've provided some before and after screenshots below demonstrating the issue:

Desktop before

before

Desktop with this pull request

after

Mobile before

before-mobile

Mobile with this pull request

after-mobile

@absidue absidue added PR: changes requested and removed PR: waiting for review For PRs that are complete, tested, and ready for review labels May 19, 2024
@ducks
Copy link
Author

ducks commented May 19, 2024

sure, np. I started with rems locally but saw some px values and decided to just stay consistent to start.

I added some css to specifically break the Freetube text to a newline when it gets smaller but I can remove that. The top nav just hides the logo text and shows only the icon below 680px. should I replicate that here?

@absidue
Copy link
Member

absidue commented May 19, 2024

The top nav just hides the logo text and shows only the icon below 680px. should I replicate that here?

We have more space on the About page, so ideally it should like the same as it was before, just in different colors.

@ducks
Copy link
Author

ducks commented May 19, 2024

okie doke. I will work on making it match what was there size and layout wise. I mostly ask because before, the about page just had a single inline svg that scaled down but this PR adds the two elements that get styled so it could be more flexible if desired.

Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

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

Successfully merging this pull request may close these issues.

[Feature Request]: Change icon color of FT logo on About page based on set theme
2 participants