mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 20:14:31 +01:00
ui-widgets: rustfmt the merged swatch face
This commit is contained in:
1 parent
9afb1ebf55
commit
aa46fe4bbc
1 file changed
+10
-2
@@ -738,8 +738,16 @@ impl SwatchFace {
|
||||
let (flags, on) = if self.selected { (Flags::SELECTED, 1.0) } else { (Flags::empty(), 0.0) };
|
||||
let state = StateSet::new(State::Rest, flags, StateMix::new(0.0, 0.0, on));
|
||||
let fill = SwatchFill::Color(self.color);
|
||||
let face =
|
||||
Face { style: &style, state: &state, fill: &fill, face: None, stroke: false, marks: CellMarks::default(), shape: SwatchShape::Square, rtl: false };
|
||||
let face = Face {
|
||||
style: &style,
|
||||
state: &state,
|
||||
fill: &fill,
|
||||
face: None,
|
||||
stroke: false,
|
||||
marks: CellMarks::default(),
|
||||
shape: SwatchShape::Square,
|
||||
rtl: false,
|
||||
};
|
||||
face.paint(cx, rect);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user