use winio_primitive::{Color, ColorTheme, Monitor};
use crate::sys::Result;
pub trait MonitorExt: Sized {
fn all() -> Result<Vec<Self>>;
}
impl MonitorExt for Monitor {
fn all() -> Result<Vec<Self>> {
crate::sys::monitor_get_all()
}
}
pub trait ColorThemeExt: Sized {
fn current() -> Result<Self>;
}
impl ColorThemeExt for ColorTheme {
fn current() -> Result<Self> {
crate::sys::color_theme()
}
}
pub trait ColorExt: Sized {
fn accent() -> Result<Self>;
}
impl ColorExt for Color {
fn accent() -> Result<Self> {
crate::sys::accent_color()
}
}