thcon 0.13.2

A configurable theme controller that switches multiple apps between light and dark mode
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt;

#[derive(Debug)]
pub enum Operation {
    Darken,
    Lighten,
}

impl fmt::Display for Operation {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        let as_str = match &self {
            Self::Darken => "darken",
            Self::Lighten => "lighten",
        };

        write!(f, "{}", as_str)
    }
}