lowered selection rectangle opacity

This commit is contained in:
Anton-4 2021-04-16 18:14:05 +02:00
parent 6eb1d28502
commit aa73df1b63
2 changed files with 8 additions and 8 deletions

View file

@ -53,17 +53,17 @@ pub fn create_render_pipeline(
entry_point: "fs_main",
targets: &[wgpu::ColorTargetState {
format: color_format,
color_blend: wgpu::BlendState::REPLACE,
color_blend: wgpu::BlendState {
operation: wgpu::BlendOperation::Add,
src_factor: wgpu::BlendFactor::SrcAlpha,
dst_factor: wgpu::BlendFactor::OneMinusSrcAlpha,
},
alpha_blend: wgpu::BlendState::REPLACE,
write_mask: wgpu::ColorWrite::ALL,
}],
}),
primitive: wgpu::PrimitiveState::default(),
depth_stencil: None,
multisample: wgpu::MultisampleState {
count: 1,
mask: !0,
alpha_to_coverage_enabled: false,
},
multisample: wgpu::MultisampleState::default(),
})
}

View file

@ -1,4 +1,4 @@
use gr_colors::{from_hsb, RgbaTup};
use gr_colors::{from_hsba, RgbaTup};
use serde::{Deserialize, Serialize};
use crate::graphics::colors as gr_colors;
@ -22,7 +22,7 @@ impl Default for UITheme {
dark_brand: DARK_BRAND_COL,
text: gr_colors::WHITE,
caret: gr_colors::WHITE,
select_highlight: from_hsb(240, 55, 100),
select_highlight: from_hsba(240, 55, 100, 0.3),
}
}
}