Commit 66dcd7a
committed
feat(FileViewer): add dynamic theme support for Monaco Editor
- Import useMemo hook and useThemeStore for theme management
- Add theme state subscription from themeStore
- Implement monacoTheme computed value with theme detection logic
* Maps "light" theme to Monaco's "light" theme
* Maps "dark" theme to Monaco's "vs-dark" theme
* Detects system preference for "auto" theme mode
- Replace hardcoded "vs-dark" theme with dynamic monacoTheme in both Monaco Editor instances
- Enables Monaco Editor to respect user theme preferences and system settings1 parent e8af98c commit 66dcd7a
1 file changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
26 | 41 | | |
27 | 42 | | |
28 | 43 | | |
| |||
160 | 175 | | |
161 | 176 | | |
162 | 177 | | |
163 | | - | |
| 178 | + | |
164 | 179 | | |
165 | 180 | | |
166 | 181 | | |
| |||
191 | 206 | | |
192 | 207 | | |
193 | 208 | | |
194 | | - | |
| 209 | + | |
195 | 210 | | |
196 | 211 | | |
197 | 212 | | |
| |||
0 commit comments