Use opaque background color for window::Preedit
Co-authored-by: KENZ <KENZ.gelsoft@gmail.com>
This commit is contained in:
parent
23723f8624
commit
f68ce10c1b
1 changed files with 10 additions and 0 deletions
|
|
@ -360,6 +360,11 @@ where
|
||||||
) {
|
) {
|
||||||
self.position = position;
|
self.position = position;
|
||||||
|
|
||||||
|
let background = Color {
|
||||||
|
a: 1.0,
|
||||||
|
..background
|
||||||
|
};
|
||||||
|
|
||||||
let spans = match &preedit.selection {
|
let spans = match &preedit.selection {
|
||||||
Some(selection) => {
|
Some(selection) => {
|
||||||
vec![
|
vec![
|
||||||
|
|
@ -428,6 +433,11 @@ where
|
||||||
.min(viewport.y + viewport.height - bounds.height);
|
.min(viewport.y + viewport.height - bounds.height);
|
||||||
|
|
||||||
renderer.with_layer(bounds, |renderer| {
|
renderer.with_layer(bounds, |renderer| {
|
||||||
|
let background = Color {
|
||||||
|
a: 1.0,
|
||||||
|
..background
|
||||||
|
};
|
||||||
|
|
||||||
renderer.fill_quad(
|
renderer.fill_quad(
|
||||||
renderer::Quad {
|
renderer::Quad {
|
||||||
bounds,
|
bounds,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue