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:
Héctor 2025-11-21 01:40:44 +01:00 committed by GitHub
commit 11d2d4de7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,