Skip to main content

combine

Function combine 

Source
pub const fn combine(base: Style, top: Style) -> Style
Expand description

Lays top over base, like Rich’s Style.__add__: colours of top win where it sets one, text effects are the union of both.

use shellgame::ui::style::{combine, BOLD, CYAN};

let style = combine(BOLD, CYAN);
assert_eq!(style, CYAN.bold());