MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / dark

Method dark

crates/openshell-tui/src/theme.rs:99–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 /// This reproduces the original hardcoded palette exactly.
98 #[must_use]
99 pub fn dark() -> Self {
100 let fg = Color::White;
101 let bg = Color::Black;
102
103 Self {
104 text: Style::new().fg(fg),
105 muted: Style::new().fg(fg).add_modifier(Modifier::DIM),
106 heading: Style::new().fg(fg).add_modifier(Modifier::BOLD),
107
108 accent: Style::new().fg(brand::NVIDIA_GREEN),
109 accent_bold: Style::new()
110 .fg(brand::NVIDIA_GREEN)
111 .add_modifier(Modifier::BOLD),
112
113 selected: Style::new().add_modifier(Modifier::BOLD),
114
115 border: Style::new().fg(brand::EVERGLADE),
116 border_focused: Style::new().fg(brand::NVIDIA_GREEN),
117
118 status_ok: Style::new().fg(brand::NVIDIA_GREEN),
119 status_warn: Style::new().fg(Color::Yellow),
120 status_err: Style::new().fg(Color::Red),
121
122 key_hint: Style::new().fg(brand::NVIDIA_GREEN),
123
124 log_cursor: Style::new().bg(brand::EVERGLADE),
125 log_selection: Style::new().bg(Color::Rgb(30, 60, 45)),
126
127 claw: Style::new().fg(brand::MAROON).add_modifier(Modifier::BOLD),
128
129 title_bar: Style::new()
130 .fg(fg)
131 .bg(brand::EVERGLADE)
132 .add_modifier(Modifier::BOLD),
133 badge: Style::new()
134 .fg(bg)
135 .bg(brand::NVIDIA_GREEN)
136 .add_modifier(Modifier::BOLD),
137 }
138 }
139
140 /// Light theme — darker accents on light terminal background.
141 #[must_use]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected