aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/input
diff options
context:
space:
mode:
authordenis <denismaximov98@gmail.com>2021-03-28 10:51:15 +0300
committerdenis <denismaximov98@gmail.com>2021-03-28 10:51:15 +0300
commit42890d4e64f8176e20dd5f2fc8e87087bb9978f9 (patch)
tree27fa6188eca64decad3aaf2b360e4634a0ae0abe /src/common/input
parentwip: move Palette out of zellij-tile (diff)
downloadsl0ppij-42890d4e64f8176e20dd5f2fc8e87087bb9978f9.tar.gz
sl0ppij-42890d4e64f8176e20dd5f2fc8e87087bb9978f9.tar.xz
sl0ppij-42890d4e64f8176e20dd5f2fc8e87087bb9978f9.zip
wip: replace the impl with a fn load_palette instead
Diffstat (limited to 'src/common/input')
-rw-r--r--src/common/input/handler.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/input/handler.rs b/src/common/input/handler.rs
index 385c1453..163e5ddf 100644
--- a/src/common/input/handler.rs
+++ b/src/common/input/handler.rs
@@ -2,7 +2,7 @@
use super::actions::Action;
use super::keybinds::get_default_keybinds;
-use crate::common::{AppInstruction, Palette, SenderWithContext, OPENCALLS};
+use crate::common::{load_palette, AppInstruction, SenderWithContext, OPENCALLS};
use crate::errors::ContextType;
use crate::os_input_output::OsApi;
use crate::pty_bus::PtyInstruction;
@@ -256,7 +256,7 @@ impl InputHandler {
// TODO this should probably be automatically generated in some way
pub fn get_mode_info(mode: InputMode) -> ModeInfo {
let mut keybinds: Vec<(String, String)> = vec![];
- let mut palette = Palette::new();
+ let mut palette = load_palette();
match mode {
InputMode::Normal | InputMode::Locked => {}
InputMode::Resize => {