oxytail-base 0.1.2

Building block for creating oxytail themes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use floem::{
    view::View,
    views::{empty, Decorators},
};

use crate::get_current_theme;

pub fn text_divider() -> impl View {
    let base_widget = empty();
    let theme = get_current_theme();

    let styles_enhancer = theme.get_divider_style();

    let styled_button = base_widget.style(move |s| styles_enhancer(s));

    styled_button
}