Debian Codegraph @

src/options/config/style/themes/nord.rs

raw symbols SCIP
1 use ratatuirust-analyzer cargo ratatui 0.30.2 crate/::{
2 stylerust-analyzer cargo ratatui-core 0.1.2 style/::{Colorrust-analyzer cargo ratatui-core 0.1.2 style/color/Color#, Modifierrust-analyzer cargo ratatui-core 0.1.2 style/Modifier#, Stylerust-analyzer cargo ratatui-core 0.1.2 style/Style#},
3 widgetsrust-analyzer cargo ratatui 0.30.2 widgets/::BorderTyperust-analyzer cargo ratatui-widgets 0.3.2 borders/BorderType#,
4 };
5
6 use superrust-analyzer cargo bottom 0.14.9 options/config/style/themes/::{colourrust-analyzer cargo bottom 0.14.9 options/config/style/themes/colour!, hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!};
7 use craterust-analyzer cargo bottom 0.14.9 crate/::optionsrust-analyzer cargo bottom 0.14.9 options/::configrust-analyzer cargo bottom 0.14.9 options/config/::stylerust-analyzer cargo bottom 0.14.9 options/config/style/::{Stylesrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#, themesrust-analyzer cargo bottom 0.14.9 options/config/style/themes/::hex_colourrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex_colour!};
8
9 impl Stylesrust-analyzer cargo bottom 0.14.9 options/config/style/Styles# {
10 pub(craterust-analyzer cargo bottom 0.14.9 crate/) fn nord_paletterust-analyzer cargo bottom 0.14.9 options/config/style/themes/nord/impl#[Styles]nord_palette().() -> Selfrust-analyzer cargo bottom 0.14.9 options/config/style/themes/nord/impl#[Styles] {
11 let list_colours = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
12 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#5e81ac"),
13 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#81a1c1"),
14 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#d8dee9"),
15 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#b48ead"),
16 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#a3be8c"),
17 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#ebcb8b"),
18 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#d08770"),
19 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#bf616a"),
20 ];
21
22 let second_colours_list = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
23 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#8fbcbb"),
24 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#81a1c1"),
25 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#d8dee9"),
26 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#b48ead"),
27 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#a3be8c"),
28 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#ebcb8b"),
29 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#bf616a"),
30 ];
31
32 Selfrust-analyzer cargo bottom 0.14.9 options/config/style/themes/nord/impl#[Styles] {
33 ram_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#ram_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#88c0d0"),
34 #[cfg(not(target_os = "windows"))]
35 cache_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#cache_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#d8dee9"),
36 swap_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#swap_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#d08770"),
37 #[cfg(feature = "zfs")]
38 arc_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#arc_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#5e81ac"),
39 #[cfg(feature = "gpu")]
40 gpu_coloursrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#gpu_colours.: second_colours_list.clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][Clone]clone().(),
41 rx_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#rx_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#88c0d0"),
42 tx_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#tx_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#d08770"),
43 total_rx_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#total_rx_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#5e81ac"),
44 total_tx_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#total_tx_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#8fbcbb"),
45 all_cpu_colourrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#all_cpu_colour.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#88c0d0"),
46 avg_cpu_colourrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#avg_cpu_colour.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#8fbcbb"),
47 cpu_colour_stylesrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#cpu_colour_styles.: list_colours.clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][Clone]clone().(),
48 temp_graph_colour_stylesrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#temp_graph_colour_styles.: list_colours.clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][Clone]clone().(),
49 disk_io_read_colour_stylesrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#disk_io_read_colour_styles.: list_colours,
50 disk_io_write_colour_stylesrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#disk_io_write_colour_styles.: second_colours_list,
51 border_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#border_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#88c0d0"),
52 highlighted_border_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#highlighted_border_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#5e81ac"),
53 text_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#text_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#e5e9f0"),
54 selected_text_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#selected_text_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#2e3440").bgrust-analyzer cargo ratatui-core 0.1.2 style/impl#[Style]bg().(hex_colourrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex_colour!!("#88c0d0")),
55 table_header_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#table_header_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#81a1c1").add_modifierrust-analyzer cargo ratatui-core 0.1.2 style/impl#[Style]add_modifier().(Modifierrust-analyzer cargo ratatui-core 0.1.2 style/Modifier#::BOLDrust-analyzer cargo ratatui-core 0.1.2 style/impl#[Modifier]BOLD.),
56 general_widget_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#general_widget_style.: Stylerust-analyzer cargo ratatui-core 0.1.2 style/Style#::defaultrust-analyzer cargo ratatui-core 0.1.2 style/impl#[Style][Default]default().(),
57 widget_title_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#widget_title_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#e5e9f0"),
58 graph_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#graph_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#e5e9f0"),
59 graph_legend_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#graph_legend_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#e5e9f0"),
60 high_batteryrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#high_battery.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#a3be8c"),
61 medium_batteryrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#medium_battery.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#ebcb8b"),
62 low_batteryrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#low_battery.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#bf616a"),
63 invalid_query_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#invalid_query_style.: colourrust-analyzer cargo bottom 0.14.9 options/config/style/themes/colour!!(Colorrust-analyzer cargo ratatui-core 0.1.2 style/color/Color#::Redrust-analyzer cargo ratatui-core 0.1.2 style/color/Color#Red#),
64 disabled_text_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#disabled_text_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#4c566a"),
65 border_typerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#border_type.: BorderTyperust-analyzer cargo ratatui-widgets 0.3.2 borders/BorderType#::Plainrust-analyzer cargo ratatui-widgets 0.3.2 borders/BorderType#Plain#,
66 #[cfg(target_os = "linux")]
67 thread_text_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#thread_text_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#a3be8c"),
68 }
69 }
70
71 pub(craterust-analyzer cargo bottom 0.14.9 crate/) fn nord_light_paletterust-analyzer cargo bottom 0.14.9 options/config/style/themes/nord/impl#[Styles]nord_light_palette().() -> Selfrust-analyzer cargo bottom 0.14.9 options/config/style/themes/nord/impl#[Styles] {
72 let list_colours = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
73 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#5e81ac"),
74 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#88c0d0"),
75 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#4c566a"),
76 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#b48ead"),
77 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#a3be8c"),
78 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#ebcb8b"),
79 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#d08770"),
80 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#bf616a"),
81 ];
82
83 let second_colours_list = vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc macros/vec!![
84 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#8fbcbb"),
85 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#88c0d0"),
86 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#4c566a"),
87 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#b48ead"),
88 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#a3be8c"),
89 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#ebcb8b"),
90 hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#bf616a"),
91 ];
92
93 Selfrust-analyzer cargo bottom 0.14.9 options/config/style/themes/nord/impl#[Styles] {
94 ram_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#ram_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#81a1c1"),
95 #[cfg(not(target_os = "windows"))]
96 cache_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#cache_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#4c566a"),
97 swap_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#swap_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#d08770"),
98 #[cfg(feature = "zfs")]
99 arc_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#arc_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#5e81ac"),
100 #[cfg(feature = "gpu")]
101 gpu_coloursrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#gpu_colours.: second_colours_list.clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][Clone]clone().(),
102 rx_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#rx_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#81a1c1"),
103 tx_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#tx_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#d08770"),
104 total_rx_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#total_rx_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#5e81ac"),
105 total_tx_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#total_tx_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#8fbcbb"),
106 all_cpu_colourrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#all_cpu_colour.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#81a1c1"),
107 avg_cpu_colourrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#avg_cpu_colour.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#8fbcbb"),
108 cpu_colour_stylesrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#cpu_colour_styles.: list_colours.clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][Clone]clone().(),
109 temp_graph_colour_stylesrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#temp_graph_colour_styles.: list_colours.clonerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][Clone]clone().(),
110 disk_io_read_colour_stylesrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#disk_io_read_colour_styles.: list_colours,
111 disk_io_write_colour_stylesrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#disk_io_write_colour_styles.: second_colours_list,
112 border_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#border_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#2e3440"),
113 highlighted_border_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#highlighted_border_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#5e81ac"),
114 text_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#text_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#2e3440"),
115 selected_text_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#selected_text_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#f5f5f5").bgrust-analyzer cargo ratatui-core 0.1.2 style/impl#[Style]bg().(hex_colourrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex_colour!!("#5e81ac")),
116 table_header_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#table_header_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#5e81ac").add_modifierrust-analyzer cargo ratatui-core 0.1.2 style/impl#[Style]add_modifier().(Modifierrust-analyzer cargo ratatui-core 0.1.2 style/Modifier#::BOLDrust-analyzer cargo ratatui-core 0.1.2 style/impl#[Modifier]BOLD.),
117 general_widget_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#general_widget_style.: Stylerust-analyzer cargo ratatui-core 0.1.2 style/Style#::defaultrust-analyzer cargo ratatui-core 0.1.2 style/impl#[Style][Default]default().(),
118 widget_title_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#widget_title_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#2e3440"),
119 graph_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#graph_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#2e3440"),
120 graph_legend_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#graph_legend_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#2e3440"),
121 high_batteryrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#high_battery.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#a3be8c"),
122 medium_batteryrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#medium_battery.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#ebcb8b"),
123 low_batteryrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#low_battery.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#bf616a"),
124 invalid_query_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#invalid_query_style.: colourrust-analyzer cargo bottom 0.14.9 options/config/style/themes/colour!!(Colorrust-analyzer cargo ratatui-core 0.1.2 style/color/Color#::Redrust-analyzer cargo ratatui-core 0.1.2 style/color/Color#Red#),
125 disabled_text_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#disabled_text_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#d8dee9"),
126 border_typerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#border_type.: BorderTyperust-analyzer cargo ratatui-widgets 0.3.2 borders/BorderType#::Plainrust-analyzer cargo ratatui-widgets 0.3.2 borders/BorderType#Plain#,
127 #[cfg(target_os = "linux")]
128 thread_text_stylerust-analyzer cargo bottom 0.14.9 options/config/style/Styles#thread_text_style.: hexrust-analyzer cargo bottom 0.14.9 options/config/style/themes/hex!!("#a3be8c"),
129 }
130 }
131 }
132
133 #[cfg(test)]
134 mod testsrust-analyzer cargo bottom 0.14.9 options/config/style/themes/nord/tests/ {
135 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
136 fn nord_palettes_validrust-analyzer cargo bottom 0.14.9 options/config/style/themes/nord/tests/nord_palettes_valid().() {
137 let _ = superrust-analyzer cargo bottom 0.14.9 options/config/style/themes/nord/::Stylesrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#::nord_paletterust-analyzer cargo bottom 0.14.9 options/config/style/themes/nord/impl#[Styles]nord_palette().();
138 let _ = superrust-analyzer cargo bottom 0.14.9 options/config/style/themes/nord/::Stylesrust-analyzer cargo bottom 0.14.9 options/config/style/Styles#::nord_light_paletterust-analyzer cargo bottom 0.14.9 options/config/style/themes/nord/impl#[Styles]nord_light_palette().();
139 }
140 }