Skip to content

Commit

Permalink
fix: emphasis and opacity handling for nested_list
Browse files Browse the repository at this point in the history
  • Loading branch information
DeaconDesperado committed Dec 20, 2024
1 parent 7108b9a commit aa2c44f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion zellij-server/src/ui/components/nested_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ pub fn nested_list(
} else {
"- "
};
let text_style = CharacterStyles::from(style_declaration);
let text_style = if line_item.text.opaque || line_item.text.selected {
CharacterStyles::from(style_declaration)
.background(Some(style_declaration.background.into()))
} else {
CharacterStyles::from(style_declaration)
};
let (mut text, text_width) = stringify_text(
&line_item.text,
Some(padding + bulletin.len()),
Expand Down
4 changes: 2 additions & 2 deletions zellij-utils/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1453,10 +1453,10 @@ impl From<Palette> for Styling {
background: palette.bg,
},
list_selected: StyleDeclaration {
base: palette.green,
base: palette.white,
emphasis_1: palette.orange,
emphasis_2: palette.cyan,
emphasis_3: palette.red,
emphasis_3: palette.green,
emphasis_4: palette.magenta,
background: palette.bg,
},
Expand Down

0 comments on commit aa2c44f

Please sign in to comment.