mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
lowered selection rectangle opacity
This commit is contained in:
parent
6eb1d28502
commit
aa73df1b63
2 changed files with 8 additions and 8 deletions
|
@ -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(),
|
||||
})
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue