aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/renderer/mod.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2021-08-16 14:49:14 +0300
committerGitHub <noreply@github.com>2021-08-16 14:49:14 +0300
commitc24d7dfd0d2d8849f0398d7cb1a65d6562ee7a0d (patch)
tree07470a57149be0fdb907ffb33ccd124dfb57848a /alacritty/src/renderer/mod.rs
parent9a8ae43c0aa9e598411964c458c88f58d6ec41d8 (diff)
downloadr-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/renderer/mod.rs')
-rw-r--r--alacritty/src/renderer/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/renderer/mod.rs b/alacritty/src/renderer/mod.rs
index 5f71ddf5..11ccfc63 100644
--- a/alacritty/src/renderer/mod.rs
+++ b/alacritty/src/renderer/mod.rs
@@ -767,7 +767,7 @@ impl Drop for QuadRenderer {
impl<'a> RenderApi<'a> {
pub fn clear(&self, color: Rgb) {
unsafe {
- let alpha = self.config.background_opacity();
+ let alpha = self.config.window_opacity();
gl::ClearColor(
(f32::from(color.r) / 255.0).min(1.0) * alpha,
(f32::from(color.g) / 255.0).min(1.0) * alpha,