Skip to content

Commit 6305452

Browse files
committed
update: 3.19.0
1 parent 08a5dba commit 6305452

7 files changed

+45
-29
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# CHANGELOG
2+
## 3.19.0 | 2025.02.09
3+
- `More darker flat` -> `Night Flat` theme #861
4+
25
## 3.18.0 | 2025.02.01
36
- Fixed lint error
47
- add `More darker flat` theme

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "material-theme",
33
"displayName": "One Dark Pro",
44
"description": "Atom's iconic One Dark theme for Visual Studio Code",
5-
"version": "3.18.0",
5+
"version": "3.19.0",
66
"publisher": "zhuangtongfa",
77
"license": "MIT",
88
"bugs": {

scripts/generate-theme.ts

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as defaultSettings from '../src/defaultConfig.json'
44
import * as flatConfig from '../src/flatConfig.json'
55
import * as darkerConfig from '../src/darkerConfig.json'
66
import * as mixConfig from '../src/mixConfig.json'
7+
import * as nightFlatConfig from '../src/nightFlatConfig.json'
78
import { promises as fs } from 'fs'
89

910
export function writeFile(path: string, data: unknown): Promise<void> {
@@ -30,5 +31,9 @@ async function main() {
3031
join(__dirname, '..', 'themes', 'OneDark-Pro-mix.json'),
3132
await Theme.init(mixConfig)
3233
)
34+
writeFile(
35+
join(__dirname, '..', 'themes', 'OneDark-Pro-night-flat.json'),
36+
await Theme.init(nightFlatConfig)
37+
)
3338
}
3439
main()

src/nightFlatConfig.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"bold": false,
3+
"editorTheme": "One Dark Pro Night Flat",
4+
"italic": false,
5+
"vivid": false
6+
}

src/themes/data/oneDarkProMoreDarkerFlat.ts src/themes/data/oneDarkProNightFlat.ts

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export default {
9292
'settings.focusedRowBackground': '#23272e',
9393
'settings.headerForeground': '#fff',
9494
'sideBar.background': '#16191d',
95+
'sideBar.border': '#37393d',
9596
'sideBar.foreground': '#abb2bf',
9697
'sideBarSectionHeader.background': '#16191d',
9798
'sideBarSectionHeader.foreground': '#abb2bf',

src/themes/themeData.ts

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export default {
2626
'One Dark Pro Darker': () => import('./data/oneDarkProDarker'),
2727
'One Dark Pro Flat': () => import('./data/oneDarkProFlat'),
2828
'One Dark Pro Mix': () => import('./data/oneDarkProMix'),
29+
'One Dark Pro Night Flat': () => import('./data/oneDarkProNightFlat'),
2930
Panda: () => import('./data/panda'),
3031
Retro: () => import('./data/retro'),
3132
Shadow: () => import('./data/shadow'),

themes/OneDark-Pro-night-flat.json

+28-28
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@
33
"type": "dark",
44
"semanticHighlighting": true,
55
"semanticTokenColors": {
6+
"annotation:dart": {
7+
"foreground": "#d19a66"
8+
},
69
"enumMember": {
710
"foreground": "#56b6c2"
811
},
9-
"variable.constant": {
12+
"macro": {
1013
"foreground": "#d19a66"
1114
},
12-
"variable.defaultLibrary": {
13-
"foreground": "#e5c07b"
15+
"memberOperatorOverload": {
16+
"foreground": "#c678dd"
1417
},
15-
"variable:dart": {
16-
"foreground": "#d19a66"
18+
"parameter.label:dart": {
19+
"foreground": "#abb2bf"
1720
},
1821
"property:dart": {
1922
"foreground": "#d19a66"
2023
},
21-
"annotation:dart": {
22-
"foreground": "#d19a66"
24+
"tomlArrayKey": {
25+
"foreground": "#e5c07b"
2326
},
24-
"parameter.label:dart": {
25-
"foreground": "#abb2bf"
27+
"variable:dart": {
28+
"foreground": "#d19a66"
2629
},
27-
"macro": {
30+
"variable.constant": {
2831
"foreground": "#d19a66"
2932
},
30-
"tomlArrayKey": {
33+
"variable.defaultLibrary": {
3134
"foreground": "#e5c07b"
32-
},
33-
"memberOperatorOverload": {
34-
"foreground": "#c678dd"
3535
}
3636
},
3737
"tokenColors": [
@@ -2128,27 +2128,17 @@
21282128
"editor.findMatchBorder": "#ffffff5a",
21292129
"editor.findMatchHighlightBackground": "#ffffff22",
21302130
"editor.foreground": "#abb2bf",
2131-
"editorBracketHighlight.foreground1": "#d19a66",
2132-
"editorBracketHighlight.foreground2": "#c678dd",
2133-
"editorBracketHighlight.foreground3": "#56b6c2",
2134-
"editorHoverWidget.highlightForeground": "#61afef",
2135-
"editorInlayHint.foreground": "#abb2bf",
2136-
"editorInlayHint.background": "#2c313c",
21372131
"editor.lineHighlightBackground": "#2c313c",
2138-
"editorLineNumber.activeForeground": "#abb2bf",
2139-
"editorGutter.addedBackground": "#109868",
2140-
"editorGutter.deletedBackground": "#9A353D",
2141-
"editorGutter.modifiedBackground": "#948B60",
2142-
"editorOverviewRuler.addedBackground": "#109868",
2143-
"editorOverviewRuler.deletedBackground": "#9A353D",
2144-
"editorOverviewRuler.modifiedBackground": "#948B60",
21452132
"editor.selectionBackground": "#67769660",
21462133
"editor.selectionHighlightBackground": "#ffd33d44",
21472134
"editor.selectionHighlightBorder": "#dddddd",
21482135
"editor.wordHighlightBackground": "#d2e0ff2f",
21492136
"editor.wordHighlightBorder": "#7f848e",
21502137
"editor.wordHighlightStrongBackground": "#abb2bf26",
21512138
"editor.wordHighlightStrongBorder": "#7f848e",
2139+
"editorBracketHighlight.foreground1": "#d19a66",
2140+
"editorBracketHighlight.foreground2": "#c678dd",
2141+
"editorBracketHighlight.foreground3": "#56b6c2",
21522142
"editorBracketMatch.background": "#515a6b",
21532143
"editorBracketMatch.border": "#515a6b",
21542144
"editorCursor.background": "#ffffffc9",
@@ -2157,12 +2147,22 @@
21572147
"editorGroup.background": "#181a1f",
21582148
"editorGroup.border": "#181a1f",
21592149
"editorGroupHeader.tabsBackground": "#16191d",
2150+
"editorGutter.addedBackground": "#109868",
2151+
"editorGutter.deletedBackground": "#9A353D",
2152+
"editorGutter.modifiedBackground": "#948B60",
21602153
"editorHoverWidget.background": "#1e2227",
21612154
"editorHoverWidget.border": "#181a1f",
2155+
"editorHoverWidget.highlightForeground": "#61afef",
21622156
"editorIndentGuide.activeBackground1": "#c8c8c859",
21632157
"editorIndentGuide.background1": "#3b4048",
2158+
"editorInlayHint.background": "#2c313c",
2159+
"editorInlayHint.foreground": "#abb2bf",
2160+
"editorLineNumber.activeForeground": "#abb2bf",
21642161
"editorLineNumber.foreground": "#667187",
21652162
"editorMarkerNavigation.background": "#1e2227",
2163+
"editorOverviewRuler.addedBackground": "#109868",
2164+
"editorOverviewRuler.deletedBackground": "#9A353D",
2165+
"editorOverviewRuler.modifiedBackground": "#948B60",
21662166
"editorRuler.foreground": "#abb2bf26",
21672167
"editorSuggestWidget.background": "#1e2227",
21682168
"editorSuggestWidget.border": "#181a1f",
@@ -2201,8 +2201,8 @@
22012201
"settings.focusedRowBackground": "#23272e",
22022202
"settings.headerForeground": "#fff",
22032203
"sideBar.background": "#16191d",
2204-
"sideBar.foreground": "#abb2bf",
22052204
"sideBar.border": "#37393d",
2205+
"sideBar.foreground": "#abb2bf",
22062206
"sideBarSectionHeader.background": "#16191d",
22072207
"sideBarSectionHeader.foreground": "#abb2bf",
22082208
"statusBar.background": "#16191d",

0 commit comments

Comments
 (0)