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

Placed dark-light behind a feature gate in eframe and egui_glow #1437

Merged
merged 5 commits into from
Apr 1, 2022
Merged

Placed dark-light behind a feature gate in eframe and egui_glow #1437

merged 5 commits into from
Apr 1, 2022

Conversation

collin-kemper
Copy link
Contributor

I placed dark-light behind a feature gate in eframe and egui_glow because of a bug in dark-light that causes dark_light::detect() to block for extended periods of time on some Linux systems. It is not disabled by default, but can be enabled with the dark-light feature flag.

@emilk
Copy link
Owner

emilk commented Mar 30, 2022

Thanks - please add a line to eframe/CHANGELOG.md noting that dark-light is not an opt-in feature!

@emilk
Copy link
Owner

emilk commented Mar 30, 2022

Please also add a link to the relevant dark-light issue so we remember to turn this feature on again once it has been resolved!

@collin-kemper
Copy link
Contributor Author

collin-kemper commented Mar 30, 2022

Updated changelog. Relevant issue in dark-light: frewsxcv/rust-dark-light#17 (comment)

CHANGELOG.md Outdated Show resolved Hide resolved
@Piping
Copy link

Piping commented Apr 1, 2022

Thanks, currently the dark-light failed to build on cross-compiling target.

on m1 macos:

rustup target add x86_64-pc-windows-gnu
cargo build --release --target x86_64-pc-windows-gnu

will error out with dark-light

error: native frameworks are only available on macOS targets

This could be helpful to resolve the issue.

@emilk
Copy link
Owner

emilk commented Apr 1, 2022

@Piping remember to report dark-light issues to the dark-light github page

@emilk emilk merged commit a52bbad into emilk:master Apr 1, 2022
emilk added a commit that referenced this pull request Jun 9, 2022
dark-light has a nasty problem on Linux: frewsxcv/rust-dark-light#17

So we made dark-light opt-in in #1437

This PR makes dark-light a default dependency again,
but only use it on Max and Windows.

This is controlled with the new NativeOptions::follow_system_theme.
If this isn't enabled, then NativeOptions::default_theme is used.
emilk added a commit that referenced this pull request Jun 9, 2022
* Use dark-light on Mac and Windows

dark-light has a nasty problem on Linux: frewsxcv/rust-dark-light#17

So we made dark-light opt-in in #1437

This PR makes dark-light a default dependency again,
but only use it on Max and Windows.

This is controlled with the new NativeOptions::follow_system_theme.
If this isn't enabled, then NativeOptions::default_theme is used.

* Add eframe::WebOptions
@txavatar txavatar mentioned this pull request Mar 8, 2023
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.

3 participants