pub struct UiConfig {Show 16 fields
pub font: Font,
pub window: WindowConfig,
pub mouse: Mouse,
pub debug: Debug,
pub alt_send_esc: Option<bool>,
pub live_config_reload: bool,
pub bell: BellConfig,
pub colors: Colors,
pub draw_bold_text_with_bright_colors: bool,
pub config_paths: Vec<PathBuf>,
pub hints: Hints,
pub ipc_socket: bool,
pub terminal_config: TerminalConfig,
key_bindings: KeyBindings,
mouse_bindings: MouseBindings,
background_opacity: Option<Percentage>,
}
Fields§
§font: Font
Font configuration.
window: WindowConfig
Window configuration.
mouse: Mouse
§debug: Debug
Debug options.
alt_send_esc: Option<bool>
Send escape sequences using the alt key.
live_config_reload: bool
Live config reload.
bell: BellConfig
Bell configuration.
colors: Colors
RGB values for colors.
draw_bold_text_with_bright_colors: bool
Should draw bold text with brighter colors instead of bold font.
config_paths: Vec<PathBuf>
Path where config was loaded from.
hints: Hints
Regex hints for interacting with terminal content.
ipc_socket: bool
Offer IPC through a unix socket.
terminal_config: TerminalConfig
Config for the alacritty_terminal itself.
key_bindings: KeyBindings
Keybindings.
mouse_bindings: MouseBindings
Bindings for the mouse.
background_opacity: Option<Percentage>
Background opacity from 0.0 to 1.0.
Implementations§
source§impl UiConfig
impl UiConfig
sourcepub fn generate_hint_bindings(&mut self)
pub fn generate_hint_bindings(&mut self)
Generate key bindings for all keyboard hints.
pub fn window_opacity(&self) -> f32
pub fn key_bindings(&self) -> &[Binding<Key>]
pub fn mouse_bindings(&self) -> &[Binding<MouseButton>]
Trait Implementations§
source§impl<'de> Deserialize<'de> for UiConfig
impl<'de> Deserialize<'de> for UiConfig
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
source§impl PartialEq<UiConfig> for UiConfig
impl PartialEq<UiConfig> for UiConfig
source§impl<'de> SerdeReplace for UiConfig
impl<'de> SerdeReplace for UiConfig
impl StructuralPartialEq for UiConfig
Auto Trait Implementations§
impl !RefUnwindSafe for UiConfig
impl !Send for UiConfig
impl !Sync for UiConfig
impl Unpin for UiConfig
impl !UnwindSafe for UiConfig
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