-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[view] 브랜치 변경 시 테마 초기화되는 문제 해결 및 코드 리팩토링
- Loading branch information
Showing
12 changed files
with
103 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
packages/view/src/components/ThemeSelector/ThemeSelector.const.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import type { ThemeInfo } from "./ThemeSelector.type"; | ||
|
||
export const THEME_INFO: ThemeInfo = { | ||
githru: { | ||
title: "Githru", | ||
value: "githru", | ||
colors: { | ||
primary: "#e06091", | ||
secondary: "#8840bb", | ||
tertiary: "#ffd08a", | ||
}, | ||
}, | ||
"hacker-blue": { | ||
title: "Hacker Blue", | ||
value: "hacker-blue", | ||
colors: { | ||
primary: "#456cf7", | ||
secondary: "#3f4c73", | ||
tertiary: "#6c60f0", | ||
}, | ||
}, | ||
aqua: { | ||
title: "Aqua", | ||
value: "aqua", | ||
colors: { | ||
primary: "#51decd", | ||
secondary: "#0687a3", | ||
tertiary: "#a7ffff", | ||
}, | ||
}, | ||
"cotton-candy": { | ||
title: "Cotton Candy", | ||
value: "cotton-candy", | ||
colors: { | ||
primary: "#ffcccb", | ||
secondary: "#feffd1", | ||
tertiary: "#a39aeb", | ||
}, | ||
}, | ||
mono: { | ||
title: "Mono", | ||
value: "mono", | ||
colors: { | ||
primary: "#68788f", | ||
secondary: "#3a4776", | ||
tertiary: "#9aaed1", | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/view/src/components/ThemeSelector/ThemeSelector.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export type ThemeInfo = { | ||
[key in "githru" | "hacker-blue" | "aqua" | "cotton-candy" | "mono"]: { | ||
title: string; | ||
value: key; | ||
colors: { | ||
primary: string; | ||
secondary: string; | ||
tertiary: string; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters