diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2021-08-16 14:49:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-16 14:49:14 +0300 |
commit | c24d7dfd0d2d8849f0398d7cb1a65d6562ee7a0d (patch) | |
tree | 07470a57149be0fdb907ffb33ccd124dfb57848a /alacritty/src/event.rs | |
parent | 9a8ae43c0aa9e598411964c458c88f58d6ec41d8 (diff) | |
download | r-alacritty-c24d7dfd0d2d8849f0398d7cb1a65d6562ee7a0d.tar.gz r-alacritty-c24d7dfd0d2d8849f0398d7cb1a65d6562ee7a0d.tar.bz2 r-alacritty-c24d7dfd0d2d8849f0398d7cb1a65d6562ee7a0d.zip |
Add option to apply opacity to all background colors
In some cases it could be desired to apply 'background_opacity'
to all background colors instead of just 'colors.primary.background',
thus adding an 'colors.opaque_background_colors' option to control that.
Fixes #741.
Diffstat (limited to 'alacritty/src/event.rs')
-rw-r--r-- | alacritty/src/event.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs index bc9c305a..cc817f6e 100644 --- a/alacritty/src/event.rs +++ b/alacritty/src/event.rs @@ -1436,7 +1436,7 @@ impl<N: Notify + OnResize> Processor<N> { // Disable shadows for transparent windows on macOS. #[cfg(target_os = "macos")] - processor.ctx.window().set_has_shadow(config.ui_config.background_opacity() >= 1.0); + processor.ctx.window().set_has_shadow(config.ui_config.window_opacity() >= 1.0); // Update hint keys. processor.ctx.display.hint_state.update_alphabet(config.ui_config.hints.alphabet()); |