fn bar_brush(&self, env: &Env) -> PaintBrush {
        self.bar_brush.clone().unwrap_or_else(|| {
            PaintBrush::Linear(LinearGradient::new(
                UnitPoint::TOP,
                UnitPoint::BOTTOM,
                (env.get(theme::PRIMARY_LIGHT), env.get(theme::PRIMARY_DARK)),
            ))
        })
    }
//Internal getters that resolve using theme or control values.
Internal getters that resolve using theme or control values.
Internal getters that resolve using theme or control values .
fn bar_brush(&self, env: &Env) -> PaintBrush {
        self.bar_brush.clone().unwrap_or_else(|| {
            PaintBrush::Linear(LinearGradient::new(
                UnitPoint::TOP,
                UnitPoint::BOTTOM,
                (env.get(theme::PRIMARY_LIGHT), env.get(theme::PRIMARY_DARK)),
            ))
        })
    }
fn bar_brush ( & self , env : & Env ) -> PaintBrush { self . bar_brush . clone ( ) . unwrap_or_else ( | | { PaintBrush :: Linear ( LinearGradient :: new ( UnitPoint :: TOP , UnitPoint :: BOTTOM , ( env . get ( theme :: PRIMARY_LIGHT ) , env . get ( theme :: PRIMARY_DARK ) ) , ) ) } ) }
Internal getters that resolve using theme or control values.
Internal getters that resolve using theme or control values .
&self
env
&Env