changed font size and moved bar to config
Browse files
+1 −2 src/bar/bar.rs
| @@ -1,6 +1,5 @@ | |||
| 1 | -use super::BAR_HEIGHT; | ||
| 2 | use super::font::{Font, FontDraw}; | 1 | use super::font::{Font, FontDraw}; |
| 3 | -use crate::config::{FONT, SCHEME_NORMAL, SCHEME_OCCUPIED, SCHEME_SELECTED, TAGS}; | 2 | +use crate::config::{BAR_HEIGHT, FONT, SCHEME_NORMAL, SCHEME_OCCUPIED, SCHEME_SELECTED, TAGS}; |
| 4 | use anyhow::Result; | 3 | use anyhow::Result; |
| 5 | use x11rb::COPY_DEPTH_FROM_PARENT; | 4 | use x11rb::COPY_DEPTH_FROM_PARENT; |
| 6 | use x11rb::connection::Connection; | 5 | use x11rb::connection::Connection; |
+0 −3 src/bar/mod.rs
| @@ -4,9 +4,6 @@ mod font; | |||
| 4 | 4 | ||
| 5 | pub use bar::Bar; | 5 | pub use bar::Bar; |
| 6 | 6 | ||
| 7 | -// TODO: this should live in config.rs | ||
| 8 | -pub const BAR_HEIGHT: u16 = 25; | ||
| 9 | - | ||
| 10 | // Bar position (for future use) | 7 | // Bar position (for future use) |
| 11 | #[derive(Debug, Clone, Copy)] | 8 | #[derive(Debug, Clone, Copy)] |
| 12 | pub enum BarPosition { | 9 | pub enum BarPosition { |
+2 −1 src/config.rs
| @@ -8,7 +8,8 @@ use x11rb::protocol::xproto::KeyButMask; | |||
| 8 | pub const BORDER_WIDTH: u32 = 1; | 8 | pub const BORDER_WIDTH: u32 = 1; |
| 9 | pub const BORDER_FOCUSED: u32 = 0x6dade3; | 9 | pub const BORDER_FOCUSED: u32 = 0x6dade3; |
| 10 | pub const BORDER_UNFOCUSED: u32 = 0xbbbbbb; | 10 | pub const BORDER_UNFOCUSED: u32 = 0xbbbbbb; |
| 11 | -pub const FONT: &str = "JetBrainsMono Nerd Font:size=12"; | 11 | +pub const BAR_HEIGHT: u16 = 30; |
| 12 | +pub const FONT: &str = "JetBrainsMono Nerd Font:size=16"; | ||
| 12 | 13 | ||
| 13 | // ======================================== | 14 | // ======================================== |
| 14 | // DEFAULTS | 15 | // DEFAULTS |