style(ribbon): cargo fmt after PR213 merge
PR #213 introduced rustfmt drift in tip_style / swatch indentation and an inline if-expression in two previously fmt-clean files. Format pass only; no behaviour change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
0c264fc49d
commit
f88c2f8327
2 changed files with 26 additions and 16 deletions
|
|
@ -871,9 +871,11 @@ impl Ribbon {
|
|||
button(
|
||||
row![
|
||||
checkmark,
|
||||
text(name.clone())
|
||||
.size(11)
|
||||
.color(if is_sel { LABEL_ON } else { LABEL_OFF }),
|
||||
text(name.clone()).size(11).color(if is_sel {
|
||||
LABEL_ON
|
||||
} else {
|
||||
LABEL_OFF
|
||||
}),
|
||||
]
|
||||
.spacing(4)
|
||||
.align_y(iced::Center),
|
||||
|
|
|
|||
|
|
@ -798,7 +798,11 @@ pub(super) fn render_large<'a>(
|
|||
border: Border {
|
||||
radius: 2.0.into(),
|
||||
width: 1.0,
|
||||
color: if is_open { COMBO_ACTIVE_BORDER } else { COMBO_BORDER },
|
||||
color: if is_open {
|
||||
COMBO_ACTIVE_BORDER
|
||||
} else {
|
||||
COMBO_BORDER
|
||||
},
|
||||
},
|
||||
..Default::default()
|
||||
})
|
||||
|
|
@ -867,7 +871,11 @@ pub(super) fn render_large<'a>(
|
|||
border: Border {
|
||||
radius: 3.0.into(),
|
||||
width: 1.0,
|
||||
color: if is_open { COMBO_ACTIVE_BORDER } else { COMBO_BORDER },
|
||||
color: if is_open {
|
||||
COMBO_ACTIVE_BORDER
|
||||
} else {
|
||||
COMBO_BORDER
|
||||
},
|
||||
},
|
||||
..Default::default()
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue