Skip to content

Commit

Permalink
Solarized theme: fix popup colors, adjust menu (#1124)
Browse files Browse the repository at this point in the history
* fix popup colors, adjust menu

* fix hardcoded horizontal rule color
  • Loading branch information
dead10ck authored Nov 20, 2021
1 parent a3a3b0b commit 05c6cb1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
6 changes: 4 additions & 2 deletions helix-term/src/ui/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn parse<'a>(
fn to_span(text: pulldown_cmark::CowStr) -> Span {
use std::ops::Deref;
Span::raw::<std::borrow::Cow<_>>(match text {
CowStr::Borrowed(s) => s.to_string().into(), // could retain borrow
CowStr::Borrowed(s) => s.into(),
CowStr::Boxed(s) => s.to_string().into(),
CowStr::Inlined(s) => s.deref().to_owned().into(),
})
Expand Down Expand Up @@ -179,7 +179,9 @@ fn parse<'a>(
spans.push(Span::raw(" "));
}
Event::Rule => {
lines.push(Spans::from("---"));
let mut span = Span::raw("---");
span.style = code_style;
lines.push(Spans::from(span));
lines.push(Spans::default());
}
// TaskListMarker(bool) true if checked
Expand Down
12 changes: 6 additions & 6 deletions runtime/themes/solarized_dark.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@
# 行号栏
"ui.linenr" = { fg = "base0", bg = "base02" }
# 当前行号栏
"ui.linenr.selected" = { fg = "red", modifiers = ["bold"] }
"ui.linenr.selected" = { fg = "blue", modifiers = ["bold"] }

# 状态栏
"ui.statusline" = { fg = "base02", bg = "base1" }
"ui.statusline" = { fg = "base03", bg = "base0" }
# 非活动状态栏
"ui.statusline.inactive" = { fg = "base02", bg = "base00" }
"ui.statusline.inactive" = { fg = "base1", bg = "base01" }

# 补全窗口, preview窗口
"ui.popup" = { bg = "base1" }
"ui.popup" = { bg = "base02" }
# 影响 补全选中 cmd弹出信息选中
"ui.menu.selected" = { fg = "base02", bg = "violet"}
"ui.menu" = { fg = "base02" }
"ui.menu.selected" = { fg = "base02", bg = "base2"}
"ui.menu" = { fg = "base1" }
# ??
"ui.window" = { fg = "base3" }
# 命令行 补全的帮助信息
Expand Down
12 changes: 6 additions & 6 deletions runtime/themes/solarized_light.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@
# 行号栏
"ui.linenr" = { fg = "base0", bg = "base02" }
# 当前行号栏
"ui.linenr.selected" = { fg = "red", modifiers = ["bold"] }
"ui.linenr.selected" = { fg = "blue", modifiers = ["bold"] }

# 状态栏
"ui.statusline" = { fg = "base02", bg = "base1" }
"ui.statusline" = { fg = "base03", bg = "base0" }
# 非活动状态栏
"ui.statusline.inactive" = { fg = "base02", bg = "base00" }
"ui.statusline.inactive" = { fg = "base1", bg = "base01" }

# 补全窗口, preview窗口
"ui.popup" = { bg = "base1" }
"ui.popup" = { bg = "base02" }
# 影响 补全选中 cmd弹出信息选中
"ui.menu.selected" = { fg = "base02", bg = "violet"}
"ui.menu" = { fg = "base02" }
"ui.menu.selected" = { fg = "base02", bg = "base2"}
"ui.menu" = { fg = "base1" }
# ??
"ui.window" = { fg = "base3" }
# 命令行 补全的帮助信息
Expand Down

0 comments on commit 05c6cb1

Please sign in to comment.