icee 0.1.0-alpha0.2

A CSS-like style system for the iced ui framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::StyleSheet;

/// A widget extension that allows styling using icee stylesheets.
pub trait WithStyleSheet<'a> {
    /// The output type.
    type Output;

    /// Style this widget without a unique id.
    fn with_stylesheet(self, stylesheet: &'a StyleSheet) -> Self::Output;
    /// Style this widget with the given unique id.
    fn with_stylesheet_id(self, stylesheet: &'a StyleSheet, id: &'static str) -> Self::Output;
}