aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/input/unit/snapshots
diff options
context:
space:
mode:
authorMark Grey <mark.asperia@gmail.com>2025-02-07 05:59:54 -0500
committerGitHub <noreply@github.com>2025-02-07 11:59:54 +0100
commit26b99eac63869fb1209ecf39c4f9cdb21d0419ba (patch)
tree4a12d05dc3eb55b651ea90888e56932b2fb3bd73 /zellij-utils/src/input/unit/snapshots
parentdocs(issue-template): clarify requirements (diff)
downloadsl0ppij-26b99eac63869fb1209ecf39c4f9cdb21d0419ba.tar.gz
sl0ppij-26b99eac63869fb1209ecf39c4f9cdb21d0419ba.tar.xz
sl0ppij-26b99eac63869fb1209ecf39c4f9cdb21d0419ba.zip
feat(config): new theme definition spec (#3242)
* Implement initial structs from spec * kdl configuration unmarshalling * typo text styling * remove is_selected toggle * incorporate new status bar ui into theming * improve test coverage of config behavior * tab bar correction * correct also compact bar * remove spacing between table columns * refactor table styling * use text_unselected.emphasis_1 for keygroup sep * fix tab bar more text * repair field flattening for theme * remove extra styling KDL node * update tests * updated selected text conversion * padding for header bar * minor corrections for existing themes * background handling * compact bar corrections * properly handle opaque method to activate background * update newer plugins to use styling struct * correct omission of selected state * fix: bold typeface for text elements * fix: fg -> white for list_unselected conversion * fix: emphasis and opacity handling for nested_list * correct stylings in the session-manager * fix emphases translation for table component * correct emphasis for run instructions * correct frame_highlight translation for old themes * provide missing implementation of frame_highlight * fencepost emphasis color names * Set a pseudo-None for frame_unselected in old theme conversion * correct alternating bg for simplified-ui * update snapshots * fix inner text padding and errorneous snapshots * suppress warning about deprecated usage of palette * remove unused import * feat(plugins): API to change floating pane coordinates (#3958) * basic functionality through the cli * added to plugin api * add display area and viewport size to TabInfo * fix tests and add new one * some cleanups * refactor: extract pane_id parsing logic * style(fmt): rustfmt * docs(changelog): floating pane coordinate chagne API * fix(tiled-panes): opening panes from the cli (#3963) * feat(plugins): add `PastedText` Event (#3962) * working with text paste * handle utf8 conversion error * feat(plugins): add PastedText Event * docs(changelog): plugins pasted text event * black for table opaque background * properly apply opacity to table * correct padding for explicit width ribbons * feat(plugins): Allow opening panes near plugin (#3966) * added command + terminal variants * added editor variant * style(fmt): rustfmt * docs(changelog): plugin apis to open panes near plugin * feat(plugins): send info about $EDITOR and $SHELL (#3971) * feat(plugins): send info about $EDITOR and $SHELL * fix(e2e): snapshot update * docs(changelog): plugin editor and shell info * fix(floating-panes): when changing coordinates, if a pane is not floating - make it floating (#3972) * fix(panes): when changing floating pane coordinates, if the pane is not floating, float it * style(fmt): rustfmt * docs(changelog): floating pane coordinate fix * fix(break-pane): strip logical position when inserting pane to new tab (#3973) * docs(changelog): logical position fix * Optional frame_unselected theme * fixture with correct width to account for arrow padding * update snapshot and rustfmt --------- Co-authored-by: Aram Drevekenin <aram@poor.dev>
Diffstat (limited to 'zellij-utils/src/input/unit/snapshots')
-rw-r--r--zellij-utils/src/input/unit/snapshots/zellij_utils__input__theme__theme_test__dracula_theme_from_file.snap663
1 files changed, 577 insertions, 86 deletions
diff --git a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__theme__theme_test__dracula_theme_from_file.snap b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__theme__theme_test__dracula_theme_from_file.snap
index 957ddf04..7fa1a55d 100644
--- a/zellij-utils/src/input/unit/snapshots/zellij_utils__input__theme__theme_test__dracula_theme_from_file.snap
+++ b/zellij-utils/src/input/unit/snapshots/zellij_utils__input__theme__theme_test__dracula_theme_from_file.snap
@@ -1,109 +1,600 @@
---
source: zellij-utils/src/input/./unit/theme_test.rs
-assertion_line: 15
expression: "format!(\"{:#?}\", theme)"
---
{
"dracula": Theme {
- palette: Palette {
- source: Default,
- theme_hue: Dark,
- fg: Rgb(
- (
- 248,
- 248,
- 242,
+ sourced_from_external_file: true,
+ palette: Styling {
+ text_unselected: StyleDeclaration {
+ base: Rgb(
+ (
+ 255,
+ 255,
+ 255,
+ ),
+ ),
+ background: Rgb(
+ (
+ 0,
+ 0,
+ 0,
+ ),
+ ),
+ emphasis_0: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
+ ),
+ emphasis_1: Rgb(
+ (
+ 139,
+ 233,
+ 253,
+ ),
+ ),
+ emphasis_2: Rgb(
+ (
+ 80,
+ 250,
+ 123,
+ ),
+ ),
+ emphasis_3: Rgb(
+ (
+ 255,
+ 121,
+ 198,
+ ),
+ ),
+ },
+ text_selected: StyleDeclaration {
+ base: Rgb(
+ (
+ 255,
+ 255,
+ 255,
+ ),
+ ),
+ background: Rgb(
+ (
+ 40,
+ 42,
+ 54,
+ ),
+ ),
+ emphasis_0: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
+ ),
+ emphasis_1: Rgb(
+ (
+ 139,
+ 233,
+ 253,
+ ),
+ ),
+ emphasis_2: Rgb(
+ (
+ 80,
+ 250,
+ 123,
+ ),
+ ),
+ emphasis_3: Rgb(
+ (
+ 255,
+ 121,
+ 198,
+ ),
+ ),
+ },
+ ribbon_unselected: StyleDeclaration {
+ base: Rgb(
+ (
+ 0,
+ 0,
+ 0,
+ ),
+ ),
+ background: Rgb(
+ (
+ 248,
+ 248,
+ 242,
+ ),
+ ),
+ emphasis_0: Rgb(
+ (
+ 255,
+ 85,
+ 85,
+ ),
+ ),
+ emphasis_1: Rgb(
+ (
+ 255,
+ 255,
+ 255,
+ ),
+ ),
+ emphasis_2: Rgb(
+ (
+ 98,
+ 114,
+ 164,
+ ),
+ ),
+ emphasis_3: Rgb(
+ (
+ 255,
+ 121,
+ 198,
+ ),
+ ),
+ },
+ ribbon_selected: StyleDeclaration {
+ base: Rgb(
+ (
+ 0,
+ 0,
+ 0,
+ ),
+ ),
+ background: Rgb(
+ (
+ 80,
+ 250,
+ 123,
+ ),
+ ),
+ emphasis_0: Rgb(
+ (
+ 255,
+ 85,
+ 85,
+ ),
+ ),
+ emphasis_1: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
+ ),
+ emphasis_2: Rgb(
+ (
+ 255,
+ 121,
+ 198,
+ ),
+ ),
+ emphasis_3: Rgb(
+ (
+ 98,
+ 114,
+ 164,
+ ),
+ ),
+ },
+ table_title: StyleDeclaration {
+ base: Rgb(
+ (
+ 80,
+ 250,
+ 123,
+ ),
+ ),
+ background: EightBit(
+ 0,
+ ),
+ emphasis_0: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
+ ),
+ emphasis_1: Rgb(
+ (
+ 139,
+ 233,
+ 253,
+ ),
+ ),
+ emphasis_2: Rgb(
+ (
+ 80,
+ 250,
+ 123,
+ ),
+ ),
+ emphasis_3: Rgb(
+ (
+ 255,
+ 121,
+ 198,
+ ),
+ ),
+ },
+ table_cell_unselected: StyleDeclaration {
+ base: Rgb(
+ (
+ 255,
+ 255,
+ 255,
+ ),
+ ),
+ background: Rgb(
+ (
+ 0,
+ 0,
+ 0,
+ ),
+ ),
+ emphasis_0: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
+ ),
+ emphasis_1: Rgb(
+ (
+ 139,
+ 233,
+ 253,
+ ),
+ ),
+ emphasis_2: Rgb(
+ (
+ 80,
+ 250,
+ 123,
+ ),
+ ),
+ emphasis_3: Rgb(
+ (
+ 255,
+ 121,
+ 198,
+ ),
+ ),
+ },
+ table_cell_selected: StyleDeclaration {
+ base: Rgb(
+ (
+ 255,
+ 255,
+ 255,
+ ),
+ ),
+ background: Rgb(
+ (
+ 40,
+ 42,
+ 54,
+ ),
+ ),
+ emphasis_0: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
+ ),
+ emphasis_1: Rgb(
+ (
+ 139,
+ 233,
+ 253,
+ ),
+ ),
+ emphasis_2: Rgb(
+ (
+ 80,
+ 250,
+ 123,
+ ),
+ ),
+ emphasis_3: Rgb(
+ (
+ 255,
+ 121,
+ 198,
+ ),
+ ),
+ },
+ list_unselected: StyleDeclaration {
+ base: Rgb(
+ (
+ 255,
+ 255,
+ 255,
+ ),
+ ),
+ background: Rgb(
+ (
+ 0,
+ 0,
+ 0,
+ ),
),
- ),
- bg: Rgb(
- (
- 40,
- 42,
- 54,
+ emphasis_0: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
),
- ),
- black: Rgb(
- (
+ emphasis_1: Rgb(
+ (
+ 139,
+ 233,
+ 253,
+ ),
+ ),
+ emphasis_2: Rgb(
+ (
+ 80,
+ 250,
+ 123,
+ ),
+ ),
+ emphasis_3: Rgb(
+ (
+ 255,
+ 121,
+ 198,
+ ),
+ ),
+ },
+ list_selected: StyleDeclaration {
+ base: Rgb(
+ (
+ 255,
+ 255,
+ 255,
+ ),
+ ),
+ background: Rgb(
+ (
+ 40,
+ 42,
+ 54,
+ ),
+ ),
+ emphasis_0: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
+ ),
+ emphasis_1: Rgb(
+ (
+ 139,
+ 233,
+ 253,
+ ),
+ ),
+ emphasis_2: Rgb(
+ (
+ 80,
+ 250,
+ 123,
+ ),
+ ),
+ emphasis_3: Rgb(
+ (
+ 255,
+ 121,
+ 198,
+ ),
+ ),
+ },
+ frame_unselected: None,
+ frame_selected: StyleDeclaration {
+ base: Rgb(
+ (
+ 80,
+ 250,
+ 123,
+ ),
+ ),
+ background: EightBit(
0,
+ ),
+ emphasis_0: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
+ ),
+ emphasis_1: Rgb(
+ (
+ 139,
+ 233,
+ 253,
+ ),
+ ),
+ emphasis_2: Rgb(
+ (
+ 255,
+ 121,
+ 198,
+ ),
+ ),
+ emphasis_3: EightBit(
0,
+ ),
+ },
+ frame_highlight: StyleDeclaration {
+ base: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
+ ),
+ background: EightBit(
0,
),
- ),
- red: Rgb(
- (
- 255,
- 85,
- 85,
+ emphasis_0: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
+ ),
+ emphasis_1: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
),
- ),
- green: Rgb(
- (
- 80,
- 250,
- 123,
+ emphasis_2: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
),
- ),
- yellow: Rgb(
- (
- 241,
- 250,
- 140,
+ emphasis_3: Rgb(
+ (
+ 255,
+ 184,
+ 108,
+ ),
),
- ),
- blue: Rgb(
- (
- 98,
- 114,
- 164,
+ },
+ exit_code_success: StyleDeclaration {
+ base: Rgb(
+ (
+ 80,
+ 250,
+ 123,
+ ),
),
- ),
- magenta: Rgb(
- (
- 255,
- 121,
- 198,
+ background: EightBit(
+ 0,
),
- ),
- cyan: Rgb(
- (
- 139,
- 233,
- 253,
+ emphasis_0: Rgb(
+ (
+ 139,
+ 233,
+ 253,
+ ),
),
- ),
- white: Rgb(
- (
- 255,
- 255,
- 255,
+ emphasis_1: Rgb(
+ (
+ 0,
+ 0,
+ 0,
+ ),
+ ),
+ emphasis_2: Rgb(
+ (
+ 255,
+ 121,
+ 198,
+ ),
+ ),
+ emphasis_3: Rgb(
+ (
+ 98,
+ 114,
+ 164,
+ ),
+ ),
+ },
+ exit_code_error: StyleDeclaration {
+ base: Rgb(
+ (
+ 255,
+ 85,
+ 85,
+ ),
+ ),
+ background: EightBit(
+ 0,
),
- ),
- orange: Rgb(
- (
- 255,
- 184,
- 108,
+ emphasis_0: Rgb(
+ (
+ 241,
+ 250,
+ 140,
+ ),
),
- ),
- gray: EightBit(
- 0,
- ),
- purple: EightBit(
- 0,
- ),
- gold: EightBit(
- 0,
- ),
- silver: EightBit(
- 0,
- ),
- pink: EightBit(
- 0,
- ),
- brown: EightBit(
- 0,
- ),
+ emphasis_1: EightBit(
+ 0,
+ ),
+ emphasis_2: EightBit(
+ 0,
+ ),
+ emphasis_3: EightBit(
+ 0,
+ ),
+ },
+ multiplayer_user_colors: MultiplayerColors {
+ player_1: Rgb(
+ (
+ 255,
+ 121,
+ 198,
+ ),
+ ),
+ player_2: Rgb(
+ (
+ 98,
+ 114,
+ 164,
+ ),
+ ),
+ player_3: EightBit(
+ 0,
+ ),
+ player_4: Rgb(
+ (
+ 241,
+ 250,
+ 140,
+ ),
+ ),
+ player_5: Rgb(
+ (
+ 139,
+ 233,
+ 253,
+ ),
+ ),
+ player_6: EightBit(
+ 0,
+ ),
+ player_7: Rgb(
+ (
+ 255,
+ 85,
+ 85,
+ ),
+ ),
+ player_8: EightBit(
+ 0,
+ ),
+ player_9: EightBit(
+ 0,
+ ),
+ player_10: EightBit(
+ 0,
+ ),
+ },
},
- sourced_from_external_file: true,
},
}