diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2020-07-11 20:03:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-11 20:03:09 +0300 |
commit | 18cf806a27f06185b1ceb2d63f3b9bc2dd3dc80e (patch) | |
tree | 6609ca3aec4fe8da171de474a4a8e8d9b572f0e5 /alacritty/src/config/mod.rs | |
parent | 5f039cee49b9c817177c6feecc5e7d97fb0a57e1 (diff) | |
download | r-alacritty-18cf806a27f06185b1ceb2d63f3b9bc2dd3dc80e.tar.gz r-alacritty-18cf806a27f06185b1ceb2d63f3b9bc2dd3dc80e.tar.bz2 r-alacritty-18cf806a27f06185b1ceb2d63f3b9bc2dd3dc80e.zip |
Remove gui dependencies from alacritty_terminal
This commit removes font dependency from alacritty_terminal,
so it'll simplify the usage of alacritty_terminal as a library,
since you won't link to system's libraries anymore. It also
moves many alacritty related config options from it.
Fixes #3393.
Diffstat (limited to 'alacritty/src/config/mod.rs')
-rw-r--r-- | alacritty/src/config/mod.rs | 33 |
1 files changed, 11 insertions, 22 deletions
diff --git a/alacritty/src/config/mod.rs b/alacritty/src/config/mod.rs index e6437d26..7fffcc39 100644 --- a/alacritty/src/config/mod.rs +++ b/alacritty/src/config/mod.rs @@ -11,9 +11,12 @@ use log::{error, warn}; use alacritty_terminal::config::{Config as TermConfig, LOG_TARGET_CONFIG}; mod bindings; +pub mod debug; +pub mod font; pub mod monitor; mod mouse; -mod ui_config; +pub mod ui_config; +pub mod window; pub use crate::config::bindings::{Action, Binding, Key, ViAction}; #[cfg(test)] @@ -172,27 +175,6 @@ fn parse_config(contents: &str) -> Result<Config> { } fn print_deprecation_warnings(config: &Config) { - if config.window.start_maximized.is_some() { - warn!( - target: LOG_TARGET_CONFIG, - "Config window.start_maximized is deprecated; please use window.startup_mode instead" - ); - } - - if config.render_timer.is_some() { - warn!( - target: LOG_TARGET_CONFIG, - "Config render_timer is deprecated; please use debug.render_timer instead" - ); - } - - if config.persistent_logging.is_some() { - warn!( - target: LOG_TARGET_CONFIG, - "Config persistent_logging is deprecated; please use debug.persistent_logging instead" - ); - } - if config.scrolling.faux_multiplier().is_some() { warn!( target: LOG_TARGET_CONFIG, @@ -224,6 +206,13 @@ fn print_deprecation_warnings(config: &Config) { "Config visual_bell has been deprecated; please use bell instead" ) } + + if config.ui_config.dynamic_title.is_some() { + warn!( + target: LOG_TARGET_CONFIG, + "Config dynamic_title is deprecated; please use window.dynamic_title instead", + ) + } } #[cfg(test)] |