gitbutler.noShadow git config removes macos shadow#13371
gitbutler.noShadow git config removes macos shadow#13371
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a macOS-specific toggle to disable the Tauri window shadow based on a user Git config key (gitbutler.noShadow), allowing runtime UI behavior changes via Git configuration.
Changes:
- Introduces a macOS-only helper to read
gitbutler.noShadowfrom Git config. - Applies the config-derived value to the Tauri window builder via
.shadow(!no_shadow).
| let config = match git2::Config::open_default() { | ||
| Ok(config) => config, | ||
| Err(error) => { | ||
| tracing::warn!(?error, "failed to open global git config, keeping window shadow"); | ||
| return false; |
|
@schacon we are likely better off putting this config in There's a plan to migrate the app settings to a dedicated gitconfig file at some point in the future but haven't been able to prioritize it, and it's nicer to keep it consistent for now. Plus we avoid introducing libgi2 |
No description provided.