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

Change Web CSS to respect color scheme (i.e. dark) #170

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [Unreleased]
- Update `raw-window-handle` to 0.6.
- Update `winit` in example to 0.29.
- Update wasm CSS to respect the color scheme (including dark mode)

## 0.13.0
- **[Breaking]** Users of the `xdg-portal` feature must now also select the `tokio`
Expand Down
5 changes: 4 additions & 1 deletion src/backend/wasm/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
}
#rfd-card {
padding: 20px;
background-color: white;
border-radius: 5px;

box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14),
0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);

color-scheme: light dark;
background-color: canvas;
color: canvastext;
}
#rfd-title {
line-height: 1.6;
Expand Down
Loading