iced::border

Function color

pub fn color(color: impl Into<Color>) -> Border
Expand description

Creates a new Border with the given Color.

assert_eq!(border::color(Color::BLACK), Border::default().color(Color::BLACK));