mirror of
https://github.com/zellij-org/zellij.git
synced 2024-12-23 17:22:28 +03:00
fix(plugins): apply correct color on 'more tabs' message (#2166)
This commit is contained in:
parent
ba44491ab8
commit
a12ccf3f85
@ -122,13 +122,13 @@ fn left_more_message(
|
||||
// 238
|
||||
// chars length plus separator length on both sides
|
||||
let more_text_len = more_text.width() + 2 * separator.width();
|
||||
let text_color = match palette.theme_hue {
|
||||
ThemeHue::Dark => palette.white,
|
||||
ThemeHue::Light => palette.black,
|
||||
let (text_color, sep_color) = match palette.theme_hue {
|
||||
ThemeHue::Dark => (palette.white, palette.black),
|
||||
ThemeHue::Light => (palette.black, palette.white),
|
||||
};
|
||||
let left_separator = style!(text_color, palette.orange).paint(separator);
|
||||
let left_separator = style!(sep_color, palette.orange).paint(separator);
|
||||
let more_styled_text = style!(text_color, palette.orange).bold().paint(more_text);
|
||||
let right_separator = style!(palette.orange, text_color).paint(separator);
|
||||
let right_separator = style!(palette.orange, sep_color).paint(separator);
|
||||
let more_styled_text =
|
||||
ANSIStrings(&[left_separator, more_styled_text, right_separator]).to_string();
|
||||
LinePart {
|
||||
@ -154,13 +154,13 @@ fn right_more_message(
|
||||
};
|
||||
// chars length plus separator length on both sides
|
||||
let more_text_len = more_text.width() + 2 * separator.width();
|
||||
let text_color = match palette.theme_hue {
|
||||
ThemeHue::Dark => palette.white,
|
||||
ThemeHue::Light => palette.black,
|
||||
let (text_color, sep_color) = match palette.theme_hue {
|
||||
ThemeHue::Dark => (palette.white, palette.black),
|
||||
ThemeHue::Light => (palette.black, palette.white),
|
||||
};
|
||||
let left_separator = style!(text_color, palette.orange).paint(separator);
|
||||
let left_separator = style!(sep_color, palette.orange).paint(separator);
|
||||
let more_styled_text = style!(text_color, palette.orange).bold().paint(more_text);
|
||||
let right_separator = style!(palette.orange, text_color).paint(separator);
|
||||
let right_separator = style!(palette.orange, sep_color).paint(separator);
|
||||
let more_styled_text =
|
||||
ANSIStrings(&[left_separator, more_styled_text, right_separator]).to_string();
|
||||
LinePart {
|
||||
|
@ -123,13 +123,13 @@ fn left_more_message(
|
||||
// 238
|
||||
// chars length plus separator length on both sides
|
||||
let more_text_len = more_text.width() + 2 * separator.width();
|
||||
let text_color = match palette.theme_hue {
|
||||
ThemeHue::Dark => palette.white,
|
||||
ThemeHue::Light => palette.black,
|
||||
let (text_color, sep_color) = match palette.theme_hue {
|
||||
ThemeHue::Dark => (palette.white, palette.black),
|
||||
ThemeHue::Light => (palette.black, palette.white),
|
||||
};
|
||||
let left_separator = style!(text_color, palette.orange).paint(separator);
|
||||
let left_separator = style!(sep_color, palette.orange).paint(separator);
|
||||
let more_styled_text = style!(text_color, palette.orange).bold().paint(more_text);
|
||||
let right_separator = style!(palette.orange, text_color).paint(separator);
|
||||
let right_separator = style!(palette.orange, sep_color).paint(separator);
|
||||
let more_styled_text =
|
||||
ANSIStrings(&[left_separator, more_styled_text, right_separator]).to_string();
|
||||
LinePart {
|
||||
@ -155,13 +155,13 @@ fn right_more_message(
|
||||
};
|
||||
// chars length plus separator length on both sides
|
||||
let more_text_len = more_text.width() + 2 * separator.width();
|
||||
let text_color = match palette.theme_hue {
|
||||
ThemeHue::Dark => palette.white,
|
||||
ThemeHue::Light => palette.black,
|
||||
let (text_color, sep_color) = match palette.theme_hue {
|
||||
ThemeHue::Dark => (palette.white, palette.black),
|
||||
ThemeHue::Light => (palette.black, palette.white),
|
||||
};
|
||||
let left_separator = style!(text_color, palette.orange).paint(separator);
|
||||
let left_separator = style!(sep_color, palette.orange).paint(separator);
|
||||
let more_styled_text = style!(text_color, palette.orange).bold().paint(more_text);
|
||||
let right_separator = style!(palette.orange, text_color).paint(separator);
|
||||
let right_separator = style!(palette.orange, sep_color).paint(separator);
|
||||
let more_styled_text =
|
||||
ANSIStrings(&[left_separator, more_styled_text, right_separator]).to_string();
|
||||
LinePart {
|
||||
|
Loading…
Reference in New Issue
Block a user