kopuz-pages 0.8.2

A modern, lightweight music player built with Rust and Dioxus.
1
2
3
4
5
6
7
8
9
10
11
12
use config::UiStyle;

pub fn page_container_class(ui_style: &UiStyle) -> &'static str {
    if cfg!(target_os = "android") {
        "px-3 pt-3 absolute inset-0 flex flex-col overflow-x-hidden"
    } else {
        match ui_style {
            UiStyle::Vaxry => "px-6 pt-6 absolute inset-0 flex flex-col",
            UiStyle::Normal => "px-8 pt-8 absolute inset-0 flex flex-col",
        }
    }
}