Skip to content

Commit

Permalink
v7 - Astolfo, Maika, Rias, & Rei (#33)
Browse files Browse the repository at this point in the history
* Added v9 girls

* Updated changelog
  • Loading branch information
Unthrottled authored Apr 3, 2021
1 parent 4bb9c5e commit d13f59b
Show file tree
Hide file tree
Showing 56 changed files with 83,710 additions and 156 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
Changelog
---

# 7.0.0 [Astolfo, Maika, Rias, & Rei]

## 4 New Themes

From the Fate series:

- Astolfo (Dark)

From the Highschool DxD series:

- Rias: Onyx (a darker theme)

From the Blend S series:

- Sakuranomiya Maika (Dark)

From the Neon Genesis Evangelion series:

- Ayanami Rei (Dark)

![v14 Girls](https://doki.assets.unthrottled.io/misc/v14_girls.png)


# 6.0.1 [GitHub updates]

- Updated the coloring of:
Expand Down
Binary file added assets/stickers/blendS/maika/dark/maika_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/stickers/eva/rei/dark/rei_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"id": "6106e529-efef-444d-9db0-a9b0b444cf1b",
"overrides": {},
"laf": {},
"syntax": {},
"colors": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"id": "c262185d-9682-413b-9143-85a2dda76b2f",
"overrides": {},
"laf": {},
"syntax": {},
"colors": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"id": "930c70c8-474e-4e2d-a223-d1e2b9da4fb1",
"overrides": {},
"laf": {},
"syntax": {},
"colors": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"id": "ea9a13f6-fa7f-46a4-ba6e-6cefe1f55160",
"overrides": {},
"laf": {},
"syntax": {},
"colors": {}
}
31 changes: 23 additions & 8 deletions buildSrc/src/BuildThemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
fillInTemplateScript,
MasterDokiThemeDefinition,
resolvePaths,
resolveStickerPath
} from 'doki-build-source';

type GitHubDokiThemeDefinition = BaseAppDokiThemeDefinition;
Expand All @@ -17,17 +16,29 @@ const fs = require('fs');

const {
repoDirectory,
templateDirectoryPath,
masterThemeDefinitionDirectoryPath,
appTemplatesDirectoryPath,
} = resolvePaths(__dirname);

function resolveStickerPath(
themeDefinitionPath: string,
sticker: string,
) {
const stickerPath = path.resolve(
path.resolve(themeDefinitionPath, '..'),
sticker
);
return stickerPath.substr(masterThemeDefinitionDirectoryPath.length + '/definitions'.length);
}

const themesOutputDirectoryTemplateDirectoryPath = path.resolve(
repoDirectory,
'themes',
);


function constructGitHubName(dokiTheme: MasterDokiThemeDefinition) {
return dokiTheme.name.replace(/ /g, '_').toLowerCase();
return getName(dokiTheme).replace(/ /g, '_').toLowerCase();
}

function buildCssTemplate(
Expand Down Expand Up @@ -63,7 +74,7 @@ function evaluateTemplate(
dokiThemeDefinition, dokiTemplateDefinitions,
);
const themeName = constructGitHubName(dokiThemeDefinition);
const themeProperName = dokiThemeDefinition.name.split(" ")
const themeProperName = getName(dokiThemeDefinition).split(" ")
.map(part => capitalize(part))
.join('');

Expand All @@ -73,14 +84,13 @@ function evaluateTemplate(
{
...namedColors,
...dokiThemeGitHubDefinition.colors,
displayName: dokiThemeDefinition.name,
displayName: getName(dokiThemeDefinition),
version: packageJson.version,
themeName,
themeProperName,
stickerPath: resolveStickerPath(
dokiFileDefinitionPath,
dokiThemeDefinition.stickers.default,
__dirname
),
accentColorEditor: dokiThemeDefinition.overrides?.editorScheme?.colors?.accentColor ||
dokiThemeDefinition.colors.accentColor,
Expand All @@ -95,8 +105,9 @@ function evaluateTemplate(
function createDokiTheme(
dokiFileDefinitionPath: string,
dokiThemeDefinition: MasterDokiThemeDefinition,
dokiTemplateDefinitions: DokiThemeDefinitions,
_: DokiThemeDefinitions,
dokiThemeGitHubDefinition: GitHubDokiThemeDefinition,
dokiTemplateDefinitions: DokiThemeDefinitions,
) {
try {
return {
Expand Down Expand Up @@ -128,7 +139,7 @@ evaluateTemplates(
.then(dokiThemes =>
Promise.resolve()
// local cached CSS (fast)
.then(() => fs.readFileSync(path.resolve(templateDirectoryPath, 'tempCss.css.txt'), {encoding: "utf-8"}))
.then(() => fs.readFileSync(path.resolve(appTemplatesDirectoryPath, 'tempCss.css.txt'), {encoding: "utf-8"}))
.then(baseCssTemplate => {
console.log('Css Re-Mapped');
// write css files
Expand All @@ -144,3 +155,7 @@ evaluateTemplates(
.then(() => {
console.log('Theme Generation Complete!');
});

function getName(dokiDefinition: MasterDokiThemeDefinition) {
return dokiDefinition.name.replace(':', '');
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "doki-theme-github",
"version": "6.0.1",
"version": "7.0.0",
"dependencies": {
}
}
2 changes: 1 addition & 1 deletion themes/aqua.user.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* ==UserStyle==
@name Doki-Theme: Aqua
@namespace github.com/doki-theme
@version 6.0.1
@version 7.0.0
@description Browse code with your waifu.
@author Unthrottled
@license MIT
Expand Down
Loading

0 comments on commit d13f59b

Please sign in to comment.