river-rs 0.1.7

Utilities for configuring River Window Manager.
Documentation
///! # Colors
///!
///! Colors struct is used for describing River basic color palette
///!
///! Often colors are overriden by tiling generators (like wideriver),
///! or by background image apps (by overlapping WM's background),
///! so you can use defaults, specified in the `init` file, or go for
///! your own settings

#[derive(Debug)]
pub struct Colors {
    background_color: i32,
    border_color_focused: i32,
    border_color_unfocused: i32,
}

impl Colors {
    /// Set next values as default:
    ///
    /// ```
    /// let background_color = 0x002b36;
    /// let border_color_focused = 0x93a1a1;
    /// let border_color_unfocused = 0x586e75;
    /// ```
    pub fn default() -> Colors {
        Colors {
            background_color: 0x002b36,
            border_color_focused: 0x93a1a1,
            border_color_unfocused: 0x586e75,
        }
    }
}