Skip to content

Commit 1d14d4e

Browse files
authored
fix: use dark background in terminal, even when a light theme is selected (coder#12004)
1 parent 73c5993 commit 1d14d4e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

site/src/pages/TerminalPage/TerminalPage.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ export const Language = {
4343
};
4444

4545
const TerminalPage: FC = () => {
46-
const theme = useTheme();
46+
// Maybe one day we'll support a light themed terminal, but terminal coloring
47+
// is notably a pain because of assumptions certain programs might make about your
48+
// background color.
49+
const theme = themes.dark;
4750
const navigate = useNavigate();
4851
const { proxy, proxyLatencies } = useProxy();
4952
const params = useParams() as { username: string; workspace: string };
@@ -296,7 +299,7 @@ const TerminalPage: FC = () => {
296299
]);
297300

298301
return (
299-
<ThemeOverride theme={themes.dark}>
302+
<ThemeOverride theme={theme}>
300303
<Helmet>
301304
<title>
302305
{workspace.data

0 commit comments

Comments
 (0)