mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Fix(egui): put paint_ime_preedit_text_visuals behind pub(crate)
As its parameter list is not well thought out.
This commit is contained in:
@@ -130,12 +130,11 @@ pub fn paint_text_selection(
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[expect(clippy::too_many_arguments)]
|
#[expect(clippy::too_many_arguments)]
|
||||||
pub fn paint_ime_preedit_text_visuals(
|
pub(crate) fn paint_ime_preedit_text_visuals(
|
||||||
pos: Pos2,
|
pos: Pos2,
|
||||||
ui: &Ui,
|
ui: &Ui,
|
||||||
painter: &Painter,
|
painter: &Painter,
|
||||||
galley: &Arc<Galley>,
|
galley: &Arc<Galley>,
|
||||||
visuals: &Visuals,
|
|
||||||
row_height: f32,
|
row_height: f32,
|
||||||
preedit_range: std::ops::Range<CCursor>,
|
preedit_range: std::ops::Range<CCursor>,
|
||||||
relative_active_range: Option<std::ops::Range<CCursor>>,
|
relative_active_range: Option<std::ops::Range<CCursor>>,
|
||||||
@@ -145,6 +144,7 @@ pub fn paint_ime_preedit_text_visuals(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let visuals = ui.visuals();
|
||||||
let active_underline_stroke = visuals.ime_preedit.active_underline_stroke;
|
let active_underline_stroke = visuals.ime_preedit.active_underline_stroke;
|
||||||
let inactive_underline_stroke = visuals.ime_preedit.inactive_underline_stroke;
|
let inactive_underline_stroke = visuals.ime_preedit.inactive_underline_stroke;
|
||||||
|
|
||||||
|
|||||||
@@ -873,7 +873,6 @@ impl TextEdit<'_> {
|
|||||||
ui,
|
ui,
|
||||||
&painter,
|
&painter,
|
||||||
&galley,
|
&galley,
|
||||||
ui.visuals(),
|
|
||||||
row_height,
|
row_height,
|
||||||
{
|
{
|
||||||
let [start, end] = cursor_range.sorted_cursors();
|
let [start, end] = cursor_range.sorted_cursors();
|
||||||
|
|||||||
Reference in New Issue
Block a user