Skip to content

Commit 1b190dc

Browse files
authored
Merge pull request #230 from DeepDirect/refactor/DP-216/terminal-light-mode
[Refactor] 터미널 섹션 배경색 다크모드에 따라 변경
2 parents a86ad01 + 1d59b55 commit 1b190dc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/pages/Repo/RepoPage.module.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,11 @@
150150
flex: 0 0 273px;
151151
box-sizing: border-box;
152152
overflow: hidden;
153-
background-color: #343a40;
153+
background-color: $gray-10;
154+
155+
&.darkMode {
156+
background-color: $gray-2;
157+
}
154158

155159
@media screen and (height <= 700px) {
156160
flex: 0 0 200px;

src/pages/Repo/RepoPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { useCollaborationStore } from '@/stores/collaborationStore';
99
import { useAuthStore } from '@/stores/authStore';
1010
import { useFileContentLoader } from '@/hooks/repo/useFileContentLoader';
1111
import { useYjsSavePoint } from '@/hooks/repo/useYjsSavePoint';
12+
import { useThemeStore } from '@/stores/themeStore';
1213
import Loading from '@/components/molecules/Loading/Loading';
1314
import styles from './RepoPage.module.scss';
1415
import TabBar from '@/components/organisms/TabBar/TabBar';
@@ -38,6 +39,7 @@ export function RepoPage() {
3839
const search = useSearch({ strict: false });
3940
const repoId = params.repoId;
4041
const filePath = search.file;
42+
const { isDarkMode } = useThemeStore();
4143

4244
const {
4345
openTabs,
@@ -358,7 +360,7 @@ export function RepoPage() {
358360
</div>
359361
</div>
360362

361-
<div className={styles.terminalSection}>
363+
<div className={`${styles.terminalSection} ${isDarkMode ? styles.darkMode : ''}`}>
362364
<CodeRunner
363365
repoId={repoId}
364366
repositoryName={repositoryInfo?.repositoryName}

0 commit comments

Comments
 (0)