summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock2
-rw-r--r--hackernews_tui/Cargo.toml2
-rw-r--r--hackernews_tui/src/main.rs2
-rw-r--r--hackernews_tui/src/view/mod.rs5
4 files changed, 8 insertions, 3 deletions
diff --git a/Cargo.lock b/Cargo.lock
index fa8fe64..e230d94 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -568,7 +568,7 @@ dependencies = [
[[package]]
name = "hackernews_tui"
-version = "0.13.0"
+version = "0.13.1"
dependencies = [
"anyhow",
"clap",
diff --git a/hackernews_tui/Cargo.toml b/hackernews_tui/Cargo.toml
index 096d9bf..c1d0370 100644
--- a/hackernews_tui/Cargo.toml
+++ b/hackernews_tui/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hackernews_tui"
-version = "0.13.0"
+version = "0.13.1"
authors = ["Thang Pham <phamducthang1234@gmail.com>"]
edition = "2021"
license = "MIT"
diff --git a/hackernews_tui/src/main.rs b/hackernews_tui/src/main.rs
index 2a8fe54..0cdbe80 100644
--- a/hackernews_tui/src/main.rs
+++ b/hackernews_tui/src/main.rs
@@ -65,7 +65,7 @@ fn init_logging(log_dir_str: &str) {
/// parse command line arguments
fn parse_args(config_dir: std::path::PathBuf, cache_dir: std::path::PathBuf) -> ArgMatches {
Command::new("hackernews-tui")
- .version("0.13.0")
+ .version("0.13.1")
.author("Thang Pham <phamducthang1234@gmail>")
.about("A Terminal UI to browse Hacker News")
.arg(
diff --git a/hackernews_tui/src/view/mod.rs b/hackernews_tui/src/view/mod.rs
index 7f01ee4..1f9f3b2 100644
--- a/hackernews_tui/src/view/mod.rs
+++ b/hackernews_tui/src/view/mod.rs
@@ -130,6 +130,11 @@ pub fn init_ui(
.set_color("highlight", theme.palette.selection_background.into());
t.palette
.set_color("highlight_text", theme.palette.selection_foreground.into());
+
+ // `cursive_core` uses `Effect::Reverse` for highlighting focused views
+ // since the version `v0.3.7`. The below changes are to remove the reverse effect.
+ t.palette[PaletteStyle::Highlight] = ColorStyle::highlight().into();
+ t.palette[PaletteStyle::HighlightInactive] = ColorStyle::highlight_inactive().into();
});
set_up_global_callbacks(&mut s, client);