pub struct Config {
pub theme: ThemeId,
pub ui_font: String,
pub mono_font: String,
pub font_size: f32,
pub panel_width: f32,
pub gap: f32,
pub corner_radius: f32,
}Expand description
User configuration, read from $XDG_CONFIG_HOME/termden/config.toml.
Every field has a default so the file can stay tiny.
Fields§
§theme: ThemeId§ui_font: String§mono_font: String§font_size: f32Terminal text size in px (ctrl+shift +/- adjusts and saves it).
panel_width: f32§gap: f32§corner_radius: f32Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more