forked from 1b-agent/opencadstudio-upstream
style: apply cargo fmt across workspace
This commit is contained in:
1 parent
85710e5454
commit
9cf9ff2c5c
531 files changed
+57740
-33906
No files matched your search
@@ -44,17 +44,16 @@ pub fn item<'a>(
|
||||
// Fixed-width ✓ column keeps every name left-aligned whether or not the
|
||||
// row is current.
|
||||
let check = crate::ui::icons::themed_check_cell(is_current);
|
||||
let label = row![check, text(name.to_string()).size(11)]
|
||||
.align_y(iced::Center);
|
||||
let label = row![check, text(name.to_string()).size(11)].align_y(iced::Center);
|
||||
let cell = container(label)
|
||||
.padding([4, 8])
|
||||
.width(Fill)
|
||||
.style(move |theme: &Theme| {
|
||||
let pair = theme.palette().primary.strong;
|
||||
container::Style {
|
||||
background: is_selected.then_some(Background::Color(pair.color)),
|
||||
text_color: is_selected.then_some(pair.text),
|
||||
..Default::default()
|
||||
background: is_selected.then_some(Background::Color(pair.color)),
|
||||
text_color: is_selected.then_some(pair.text),
|
||||
..Default::default()
|
||||
}
|
||||
});
|
||||
let area = mouse_area(cell).on_press(on_select);
|
||||
|
||||
Reference in new issue
Block a user