Merge pull request #2819 from kenz-gelsoft/use_default_style_colors_for_preedit
Use theme's base colors for preedit iff program style's background is not opaque
This commit is contained in:
commit
11d2d4de7c
1 changed files with 10 additions and 0 deletions
|
|
@ -360,6 +360,11 @@ where
|
|||
) {
|
||||
self.position = position;
|
||||
|
||||
let background = Color {
|
||||
a: 1.0,
|
||||
..background
|
||||
};
|
||||
|
||||
let spans = match &preedit.selection {
|
||||
Some(selection) => {
|
||||
vec![
|
||||
|
|
@ -428,6 +433,11 @@ where
|
|||
.min(viewport.y + viewport.height - bounds.height);
|
||||
|
||||
renderer.with_layer(bounds, |renderer| {
|
||||
let background = Color {
|
||||
a: 1.0,
|
||||
..background
|
||||
};
|
||||
|
||||
renderer.fill_quad(
|
||||
renderer::Quad {
|
||||
bounds,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue