Skip to content

Commit

Permalink
Merge pull request #206 from doki-theme/cleanups
Browse files Browse the repository at this point in the history
Cleanups
  • Loading branch information
Unthrottled authored Feb 26, 2023
2 parents 7c6924b + 5f12b40 commit cfc48df
Show file tree
Hide file tree
Showing 29 changed files with 49 additions and 75 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## 88.5-1.6.1 [Cleanups]

- Cleaned up build process to use correct colors.
- Renamed stuff to reflect `main` branch rename.

## 88.4-1.6.0 [VS Code Web Support]

- Extension now supported in [VSCode for the web](https://code.visualstudio.com/docs/editor/vscode-web).
Expand Down Expand Up @@ -292,15 +297,15 @@ Anime is trash...._and so am I_.
# 14.1.0 [Custom Assets]

Added the ability for you to add your own assets to be used by the themes!
Please see the [README.md](https://github.com/doki-theme/doki-theme-vscode/tree/master#custom-assets) for more details.
Please see the [README.md](https://github.com/doki-theme/doki-theme-vscode/tree/main#custom-assets) for more details.

| **Custom Sticker** | **Custom Background** |
| --- | --- |
| ![custom_sticker](https://raw.githubusercontent.com/doki-theme/doki-theme-vscode/master/readmeStuff/custom_sticker.gif) | ![custom_background](https://raw.githubusercontent.com/doki-theme/doki-theme-vscode/master/readmeStuff/custom_background.gif) |
| ![custom_sticker](https://raw.githubusercontent.com/doki-theme/doki-theme-vscode/main/readmeStuff/custom_sticker.gif) | ![custom_background](https://raw.githubusercontent.com/doki-theme/doki-theme-vscode/main/readmeStuff/custom_background.gif) |

| **Custom Wallpaper** |
| --- |
| ![custom_wallpaper](https://raw.githubusercontent.com/doki-theme/doki-theme-vscode/master/readmeStuff/custom_wallpaper.png)|
| ![custom_wallpaper](https://raw.githubusercontent.com/doki-theme/doki-theme-vscode/main/readmeStuff/custom_wallpaper.png)|

# 14.0.0 [NekoPara Release]

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ original JetBrains plugin which uses all the colors defined. There is also Doki
the IDE as well.

Please follow
the [theme creation contributions in the JetBrains Plugin repository](https://github.com/doki-theme/doki-theme-jetbrains/blob/master/CONTRIBUTING.md#creating-new-themes)
the [theme creation contributions in the JetBrains Plugin repository](https://github.com/doki-theme/doki-theme-jetbrains/blob/main/CONTRIBUTING.md#creating-new-themes)
for more details on how to build new themes.

## Creating Themes Required Software
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/assets/templates/base.laf.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"quickInput.list.focusBackground": "&selectionBackground&AA",
"quickInput.foreground": "&foregroundColor&",
"peekViewTitleLabel.foreground": "&foregroundColor&",
"selection.background": "&accentColor&",
"selection.background": "&selectionBackground&",
"editorGutter.modifiedBackground": "&diff.modified&",
"editorGutter.addedBackground": "&diff.inserted&",
"editorGutter.deletedBackground": "&diff.deleted&",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "dark",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "light",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "dark",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "dark",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "dark-contrast",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "light",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "light",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"laf": {
"extends": "dark",
"ui": {
"editor.selectionBackground": "&selectionBackground&",
"selection.background": "&selectionBackground&"
"editor.selectionBackground": "&selectionBackground&"
}
},
"syntax": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "dark",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"laf": {
"extends": "light",
"ui": {
"editor.selectionBackground": "&selectionBackground&33"
"editor.selectionBackground": "&selectionBackground&66"
}
},
"syntax": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"editor.lineHighlightBackground": "&headerColor&77",
"sideBarSectionHeader.background": "&headerColor&",
"activityBar.background": "&headerColor&",
"editor.selectionBackground": "&selectionBackground&33"
"editor.selectionBackground": "&selectionBackground&aa"
}
},
"syntax": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"laf": {
"extends": "light",
"ui": {
"editor.selectionBackground": "&selectionBackground&33"
"editor.selectionBackground": "&selectionBackground&aa"
}
},
"syntax": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "dark-contrast",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "dark-contrast",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"laf": {
"extends": "dark-contrast",
"ui": {
"editor.selectionBackground": "&selectionBackground&",
"selection.background": "&selectionBackground&"
"editor.selectionBackground": "&selectionBackground&"
}
},
"syntax": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"laf": {
"extends": "dark",
"ui": {
"editor.selectionBackground": "&selectionBackground&",
"selection.background": "&selectionBackground&"
"editor.selectionBackground": "&selectionBackground&"
}
},
"syntax": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "light",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "light",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"scrollbarSlider.hoverBackground": "&accentColorSecondary&9A",
"scrollbarSlider.background": "&accentColorSecondary&5A",
"scrollbarSlider.activeBackground": "&accentColorSecondary&9A",
"editor.selectionBackground": "&selectionBackground&33"
"editor.selectionBackground": "&selectionBackground&aa"
}
},
"syntax": {},
Expand Down
3 changes: 1 addition & 2 deletions buildSrc/assets/themes/reZero/ram/ram.vsCode.definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"laf": {
"extends": "dark-contrast",
"ui": {
"editor.selectionBackground": "&selectionBackground&88",
"selection.background": "&selectionBackground&"
"editor.selectionBackground": "&selectionBackground&88"
}
},
"syntax": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "light",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"laf": {
"extends": "dark-contrast",
"ui": {
"editor.selectionBackground": "&selectionBackground&",
"selection.background": "&selectionBackground&"
"editor.selectionBackground": "&selectionBackground&"
}
},
"syntax": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"overrides": {},
"laf": {
"extends": "dark-contrast",
"ui": {
"selection.background": "&selectionBackground&"
}
"ui": {}
},
"syntax": {},
"colors": {}
Expand Down
26 changes: 14 additions & 12 deletions buildSrc/src/MassModifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import fs from "fs";

console.log(path.resolve('.'));

walkDir(path.resolve('.','assets','themes'))
walkDir(path.resolve('.', 'assets', 'themes'))
.then((files) => files.filter((file) => file.endsWith("vsCode.definition.json"))
)
.then((dokiFileDefinitionPaths) => {
Expand All @@ -24,25 +24,27 @@ walkDir(path.resolve('.','assets','themes'))
.then((defs) => {

console.log(
Object.keys(
defs.map(a => a.dokiThemeDefinition.characterId).reduce((acc, id) => {
Object.keys(
defs.map(a => a.dokiThemeDefinition.characterId).reduce((acc, id) => {
acc[id] = id;
return acc;
}, {})).length
);
defs.forEach(({
dokiFileDefinitionPath,
dokiThemeDefinition,
})=>{
console.log(`${dokiThemeDefinition.id}: ${dokiThemeDefinition.laf?.ui?.['selection.background']}`);

// delete dokiThemeDefinition.backgrounds;
// fs.writeFileSync(
// dokiFileDefinitionPath,
// JSON.stringify(
// dokiThemeDefinition, null, 2
}) => {
const selectionBackground = dokiThemeDefinition.laf?.ui?.['selection.background'];
console.log(`${dokiThemeDefinition.id}: ${selectionBackground}`);
// if (selectionBackground === '&selectionBackground&') {
// delete dokiThemeDefinition.laf?.ui?.['selection.background'];
// fs.writeFileSync(
// dokiFileDefinitionPath,
// JSON.stringify(
// dokiThemeDefinition, null, 2
// )
// )
// )
// }
});

});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Doki Theme",
"description": "Cute anime character themes!",
"publisher": "unthrottled",
"version": "88.1.14",
"version": "88.1.15",
"license": "MIT",
"icon": "Doki-Theme-v2.png",
"galleryBanner": {
Expand Down
2 changes: 1 addition & 1 deletion src/NotificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { VSCodeGlobals } from "./VSCodeGlobals";
import { attemptToGreetUser } from "./WelcomeService";

const SAVED_VERSION = "doki.theme.version";
const DOKI_THEME_VERSION = "v88.4-1.6.0";
const DOKI_THEME_VERSION = "v88.5-1.6.1";

export function attemptToNotifyUpdates(context: vscode.ExtensionContext) {
const savedVersion = VSCodeGlobals.globalState.get(SAVED_VERSION);
Expand Down

0 comments on commit cfc48df

Please sign in to comment.