1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Replace Stroke::none() with Stroke::NONE

This commit is contained in:
Emil Ernerfeldt
2022-12-05 12:59:02 +01:00
parent df01db2df1
commit be6d23eed1
15 changed files with 30 additions and 28 deletions

View File

@@ -165,13 +165,13 @@ fn format_from_style(
let underline = if emark_style.underline {
Stroke::new(1.0, color)
} else {
Stroke::none()
Stroke::NONE
};
let strikethrough = if emark_style.strikethrough {
Stroke::new(1.0, color)
} else {
Stroke::none()
Stroke::NONE
};
let valign = if emark_style.raised {

View File

@@ -358,7 +358,7 @@ impl Highlighter {
let underline = if underline {
egui::Stroke::new(1.0, text_color)
} else {
egui::Stroke::none()
egui::Stroke::NONE
};
job.sections.push(LayoutSection {
leading_space: 0.0,