mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -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)]
|
||||
pub fn paint_ime_preedit_text_visuals(
|
||||
pub(crate) fn paint_ime_preedit_text_visuals(
|
||||
pos: Pos2,
|
||||
ui: &Ui,
|
||||
painter: &Painter,
|
||||
galley: &Arc<Galley>,
|
||||
visuals: &Visuals,
|
||||
row_height: f32,
|
||||
preedit_range: std::ops::Range<CCursor>,
|
||||
relative_active_range: Option<std::ops::Range<CCursor>>,
|
||||
@@ -145,6 +144,7 @@ pub fn paint_ime_preedit_text_visuals(
|
||||
return;
|
||||
}
|
||||
|
||||
let visuals = ui.visuals();
|
||||
let active_underline_stroke = visuals.ime_preedit.active_underline_stroke;
|
||||
let inactive_underline_stroke = visuals.ime_preedit.inactive_underline_stroke;
|
||||
|
||||
|
||||
@@ -873,7 +873,6 @@ impl TextEdit<'_> {
|
||||
ui,
|
||||
&painter,
|
||||
&galley,
|
||||
ui.visuals(),
|
||||
row_height,
|
||||
{
|
||||
let [start, end] = cursor_range.sorted_cursors();
|
||||
|
||||
Reference in New Issue
Block a user