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

Use Woodpecker theme colors on Safari Tab Bar / Header Bar #632

Merged
merged 1 commit into from
Dec 21, 2021

Conversation

ktprograms
Copy link
Contributor

Add theme-color tag and dynamically change the theme-color when
switching into / out of dark mode.

I used the same colors as in the Navbar component, but I don't think it's possible to access the Windi CSS color definitions, so I had to hard core the hex values.

The theme-color tag needs to be present in the HTML, otherwise querySelector returns null.

Copy link
Member

@anbraten anbraten left a comment

Choose a reason for hiding this comment

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

nice change

web/src/compositions/useDarkMode.ts Outdated Show resolved Hide resolved
web/src/compositions/useDarkMode.ts Outdated Show resolved Hide resolved
@6543
Copy link
Member

6543 commented Dec 20, 2021

@6543 6543 added the ui frontend related label Dec 20, 2021
Add theme-color <meta> tag and dynamically change the theme-color when
switching into / out of dark mode.
@ktprograms ktprograms force-pushed the fix-safari_tab_bar-color branch from 54bf0bc to cb9c028 Compare December 21, 2021 00:22
@6543 6543 added this to the 0.15.0 milestone Dec 21, 2021
@6543 6543 merged commit d0da1a1 into woodpecker-ci:master Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui frontend related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants