Skip to content

Commit

Permalink
Merge pull request #4 from corneliusroemer/readability
Browse files Browse the repository at this point in the history
fix: Use brighter colors for better accessibility
  • Loading branch information
ynqa authored Mar 21, 2024
2 parents 5a05166 + 1c75958 commit 08a7d64
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/jnv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ impl Jnv {
history: Default::default(),
prefix: String::from("❯❯ "),
mask: Default::default(),
prefix_style: StyleBuilder::new().fgc(Color::DarkCyan).build(),
active_char_style: StyleBuilder::new().bgc(Color::DarkMagenta).build(),
prefix_style: StyleBuilder::new().fgc(Color::Blue).build(),
active_char_style: StyleBuilder::new().bgc(Color::Magenta).build(),
inactive_char_style: StyleBuilder::new().build(),
edit_mode,
lines: Default::default(),
},
hint_message_renderer: text::Renderer {
text: Default::default(),
style: StyleBuilder::new()
.fgc(Color::DarkGreen)
.fgc(Color::Green)
.attrs(Attributes::from(Attribute::Bold))
.build(),
},
Expand All @@ -92,10 +92,10 @@ impl Jnv {
listbox: listbox::Listbox::from_iter(Vec::<String>::new()),
cursor: String::from("❯ "),
active_item_style: StyleBuilder::new()
.fgc(Color::DarkGrey)
.bgc(Color::DarkYellow)
.fgc(Color::Grey)
.bgc(Color::Yellow)
.build(),
inactive_item_style: StyleBuilder::new().fgc(Color::DarkGrey).build(),
inactive_item_style: StyleBuilder::new().fgc(Color::Grey).build(),
lines: Some(suggestion_list_length),
},
keymap: KeymapManager::new("default", self::keymap::default)
Expand All @@ -121,11 +121,11 @@ impl Jnv {
square_brackets_style: StyleBuilder::new()
.attrs(Attributes::from(Attribute::Bold))
.build(),
key_style: StyleBuilder::new().fgc(Color::DarkBlue).build(),
string_value_style: StyleBuilder::new().fgc(Color::DarkGreen).build(),
key_style: StyleBuilder::new().fgc(Color::Cyan).build(),
string_value_style: StyleBuilder::new().fgc(Color::Green).build(),
number_value_style: StyleBuilder::new().build(),
boolean_value_style: StyleBuilder::new().build(),
null_value_style: StyleBuilder::new().fgc(Color::DarkGrey).build(),
null_value_style: StyleBuilder::new().fgc(Color::Grey).build(),
active_item_attribute: Attribute::Bold,
inactive_item_attribute: Attribute::Dim,
lines: Default::default(),
Expand Down Expand Up @@ -207,7 +207,7 @@ impl Jnv {
renderer.hint_message_snapshot.after_mut().replace(text::Renderer {
text: format!("JSON query ('{}') was executed, but no results were returned.", &completed),
style: StyleBuilder::new()
.fgc(Color::DarkRed)
.fgc(Color::Red)
.attrs(Attributes::from(Attribute::Bold))
.build(),
});
Expand All @@ -228,7 +228,7 @@ impl Jnv {
&completed,
),
style: StyleBuilder::new()
.fgc(Color::DarkYellow)
.fgc(Color::Yellow)
.attrs(Attributes::from(Attribute::Bold))
.build(),
});
Expand All @@ -250,7 +250,7 @@ impl Jnv {
e
),
style: StyleBuilder::new()
.fgc(Color::DarkRed)
.fgc(Color::Red)
.attrs(Attributes::from(Attribute::Bold))
.build(),
})
Expand All @@ -266,7 +266,7 @@ impl Jnv {
renderer.hint_message_snapshot.after_mut().replace(text::Renderer {
text: format!("Failed to execute jq query '{}'", &completed),
style: StyleBuilder::new()
.fgc(Color::DarkRed)
.fgc(Color::Red)
.attrs(Attributes::from(Attribute::Bold))
.build(),
},
Expand Down

0 comments on commit 08a7d64

Please sign in to comment.