Skip to content

Commit

Permalink
enhance: descriptive logs in bitmapping process
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed Nov 8, 2021
1 parent 87b4650 commit 916aa00
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- builder module renamed to `src` from `gdbuild`
- simplify `README.md`
- Added color hex with GitHub markdown inside README.md
- descriptive logs in bitmapping process

## [v1.1.2] - 28 Jun 2021

Expand Down
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,20 +230,3 @@ You can create a **issue**, I will help you. 🙂
# Contributing

Check [CONTRIBUTING.md](CONTRIBUTING.md), any suggestions for features and contributions to the continuing code masterelopment can be made via the issue tracker or code contributions via a `Fork` & `Pull requests`.

<!-- Support -->

## Support

<a href="https://www.buymeacoffee.com/Nt7Wg4V" target="_blank">
<img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" >
</a>

<!-- Ninja -->

<h1 align="center">
( `ω´ )۶▬ι═══════ﺤ
</h1>
<p align="center">
<sub>I'm Using Katana </sub>
</p>
6 changes: 3 additions & 3 deletions bitmapper/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const svgDir = path.resolve(root, "svg");

const main = async () => {
for (const { themeName, color } of config) {
console.log("=>", themeName);
console.log("Generating bitmaps for", themeName);

const bitmapsDir = path.resolve(root, "bitmaps", themeName);
const svg = new SVGHandler.SvgDirectoryParser(svgDir);
Expand All @@ -17,14 +17,14 @@ const main = async () => {
const browser = await png.getBrowser();

for (let { key, content } of svg.getStatic()) {
console.log(" -> Saving", key, "...");
console.log(" ==> Saving", key, "...");

content = SVGHandler.colorSvg(content, color);
await png.generateStatic(browser, content, key);
}

for (let { key, content } of svg.getAnimated()) {
console.log(" -> Saving", key, "...");
console.log(" ==> Saving", key, "...");

content = SVGHandler.colorSvg(content, color);
await png.generateAnimated(browser, content, key);
Expand Down

0 comments on commit 916aa00

Please sign in to comment.