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

Fix build error on Widows (and warning on macOS) #228

Merged
merged 1 commit into from
Feb 26, 2024
Merged
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
2 changes: 0 additions & 2 deletions src/configurator_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ impl ConfiguratorApp {

#[cfg(target_os = "macos")]
fn macos_init() {
use gtk::traits::GtkSettingsExt;
use std::process;
let mut prefer_dark = false;
// This command returns Dark if we should use the dark theme
Expand Down Expand Up @@ -211,7 +210,6 @@ fn macos_init() {
fn windows_init() {
// This is a dword with a value of 0 if we should use the dark theme:
// HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme
use gtk::traits::SettingsExt;
use winreg::RegKey;
let mut prefer_dark = false;
let hkcu = RegKey::predef(winreg::enums::HKEY_CURRENT_USER);
Expand Down
Loading