Skip to content

Set color-scheme: dark for dark theme#164

Merged
matze merged 1 commit intomatze:masterfrom
luk1337:luk/color_scheme_dark
May 31, 2025
Merged

Set color-scheme: dark for dark theme#164
matze merged 1 commit intomatze:masterfrom
luk1337:luk/color_scheme_dark

Conversation

@luk1337
Copy link
Copy Markdown
Contributor

@luk1337 luk1337 commented May 31, 2025

Makes scrollbars dark ^.^

@luk1337
Copy link
Copy Markdown
Contributor Author

luk1337 commented May 31, 2025

image

@luk1337
Copy link
Copy Markdown
Contributor Author

luk1337 commented May 31, 2025

aaah this breaks light theme, let me fix that first...

@luk1337 luk1337 force-pushed the luk/color_scheme_dark branch from 5d1b1e3 to db8c4c7 Compare May 31, 2025 09:55
@luk1337
Copy link
Copy Markdown
Contributor Author

luk1337 commented May 31, 2025

aaah this breaks light theme, let me fix that first...

fixed.

Copy link
Copy Markdown
Owner

@matze matze left a comment

Choose a reason for hiding this comment

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

Doesn't that break browser settings if not overridden by the user? You can clear cookies and check with the bruiser inspector tools.

@luk1337
Copy link
Copy Markdown
Contributor Author

luk1337 commented May 31, 2025

Doesn't that break browser settings if not overridden by the user? You can clear cookies and check with the bruiser inspector tools.

seems alright here? my phone's dark theme setting is respected when I open the page in incognito mode.

@matze
Copy link
Copy Markdown
Owner

matze commented May 31, 2025

I will check later tonight when I have some time and laptop access. Thanks already!

@luk1337
Copy link
Copy Markdown
Contributor Author

luk1337 commented May 31, 2025

also, switching prefers-color-scheme in dev tools seems alright too:

Screenshot_20250531_121044
Screenshot_20250531_121046
Screenshot_20250531_121047

Copy link
Copy Markdown
Owner

@matze matze left a comment

Choose a reason for hiding this comment

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

If you want also add a CHANGELOG.md entry, otherwise I will do it post merge.

Comment thread crates/wastebin_server/src/assets.rs Outdated
Makes scrollbars dark ^.^
@luk1337 luk1337 force-pushed the luk/color_scheme_dark branch from db8c4c7 to 59f965c Compare May 31, 2025 21:23
Comment thread CHANGELOG.md

- Use main accent color for selected options.
- Root element's `color-scheme` is now set according to the selected theme, which
makes browser use appropriate color scheme for its UI.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good enough?

@matze matze merged commit 1e68dbe into matze:master May 31, 2025
2 checks passed
@luk1337 luk1337 deleted the luk/color_scheme_dark branch May 31, 2025 22:12
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.

2 participants