mirror of
https://github.com/danbulant/rshell
synced 2026-06-10 10:10:19 +00:00
19 lines
No EOL
556 B
Rust
19 lines
No EOL
556 B
Rust
use cushy::{kludgine::app::winit::window::WindowLevel, widget::MakeWidget, Application, Open};
|
|
|
|
mod spotify;
|
|
|
|
pub fn start_bar(app: &mut impl Application) -> cushy::Result {
|
|
let mut window = spotify::spotify_controls()
|
|
.pad()
|
|
.into_window()
|
|
.transparent()
|
|
.app_name("rshell")
|
|
.decorated(false)
|
|
// .resizable(false)
|
|
.window_level(WindowLevel::AlwaysOnTop);
|
|
|
|
window.sans_serif_font_family.push(cushy::styles::FamilyOwned::Name("Iosevka NF".into()));
|
|
|
|
window
|
|
.open(app).map(|_| ())
|
|
} |