Skip to content
#

interface

Here are 1,130 public repositories matching this topic...

bennetthardwick
bennetthardwick commented Aug 4, 2020

A small change that would make implementing styles for elements with background colours a bit easier. It would match the From<T> for Option<T> impl that you can already use for fields that are Option<Color> (like text_color).

Before:

Style {
    background_color: Some(Color::BLACK.into()),
    text_color: Color::WHITE.into(),
    ..Default::default()
}

After:

Improve this page

Add a description, image, and links to the interface topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the interface topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.