Commit graph

781 commits

Author SHA1 Message Date
Nick Craver e27d34a1cb
feat: improved theme png rendering
* feat: improved theme png rendering

Overall this improves glyph rendering in the theme PNGs for docs.
Changes:
- Replaces VictorMono with latest Hack nerd font
- When calculating overall width, count glyphs as double wide
- When rendering a glyph, allow ~1.7x space (this seemed right testing many)

I hope this is a net improvement that helps theme renders be a bit more accurate and shine!

* move to 2x for overall width expansion

1.7 introduces some odd offset problems with some backgrounds - 2x is stable.

* Based on data from:
https://github.com/ryanoasis/nerd-fonts/wiki/Glyph-Sets-and-Code-Points
...checking those points for nerd font glyphs in play

I'm unfamiliar with Go here and maybe there's a better way to implement,
but the results are much improved.

* tweak ranges and bg position for font diff

* exclude pixelated (e0c4-e0c7) from doube-width

* simplify cyclomatic complexity

Go checks were unhappy - this isn't a hot path so breaking it out
into a format that matches the docs, for easier maintenance.

* I have no idea what I'm doing

...but I hope this works - bit simpler layout to maintain too.

* fix: add comments

Good PR feedback - adding some more commentary for anyone coming across these bits later

* typo
2021-09-18 15:37:15 +02:00
Jan De Dobbeleer 4eb3b439ba fix: emulate amd64 on surface pro x 2021-09-18 13:44:49 +02:00
Jan De Dobbeleer 2ed5d31f4f
feat(az): use template for more flexibility
BREAKING CHANGE: this makes it so people have to remove the switches
in favor of the new template.
2021-09-18 13:21:28 +02:00
Nick Craver c6a3dd4ee8
fix: incorrect args in theme export
this fixes the background color to actually work, and quotes author as well (first usage of the field introduced in #964)
2021-09-17 22:50:34 +02:00
Nick Craver c7fa4f3e71
theme: add craver theme
This adds a new theme to the gallery, taking advantage of the new background color option in the renderer.

Co-authored-by: Jan De Dobbeleer <2492783+JanDeDobbeleer@users.noreply.github.com>
2021-09-17 22:13:13 +02:00
Aaron Sherber f412ef6644
feat: allow for custom text in place of shell names 2021-09-17 19:48:00 +00:00
Nick Craver bf51f59ceb
feat: image background color 2021-09-17 20:34:43 +02:00
Jan De Dobbeleer 6bef088b83 feat: allow auto hiding of rprompt on Windows 2021-09-17 09:40:12 +02:00
lnu cb9a090ec7 feat(battery): display_charged parameter added
display_charging splitted to two parameters instead of a single one

BREAKING CHANGE: from now display_charging will handle the charging
                 status only.
2021-09-16 20:17:41 +02:00
Jan De Dobbeleer 5de2c1ae68 fix(linux): add armv7l build
resolves #956
2021-09-14 22:34:55 +02:00
allcontributors[bot] a37ae4d4e0 docs: update .all-contributorsrc [skip ci] 2021-09-14 20:04:27 +02:00
allcontributors[bot] fa5bb6054c docs: update docs/docs/contributors.md [skip ci] 2021-09-14 20:04:27 +02:00
Jan De Dobbeleer 5093607df4
chore: update doc dependencies 2021-09-14 20:02:30 +02:00
Sean Killeen 2dfa6a5a98
docs(installation): add chocolatey 2021-09-14 19:57:47 +02:00
Jan De Dobbeleer 86b3e1cc62
fix(bash): remove leading space
relates to #953
2021-09-14 19:54:09 +02:00
Jan De Dobbeleer a549cc87c6 docs: add bash profile context
resolves #939
2021-09-14 18:49:29 +02:00
Jan De Dobbeleer ebaa20ea3f feat(winget): arm64 support 2021-09-14 18:49:29 +02:00
Jan De Dobbeleer 83fc90273f refactor(linux): build arm64 2021-09-14 18:49:29 +02:00
Jan De Dobbeleer 4cfbf21c90 feat(pwsh): arm64 support 2021-09-14 18:49:29 +02:00
Jan De Dobbeleer f7de8aed27 fix: support for windows arm64 2021-09-14 18:49:29 +02:00
Aaron Sherber 3ecdffd86c fix: recognize tag and commit merges 2021-09-14 07:10:13 +02:00
allcontributors[bot] 98c3f50fc0 docs: update .all-contributorsrc [skip ci] 2021-09-13 17:49:06 +02:00
allcontributors[bot] 94f88b0f39 docs: update docs/docs/contributors.md [skip ci] 2021-09-13 17:49:06 +02:00
Aaron Sherber 18dcf4be21 fix: recognize remote branch merge 2021-09-13 17:46:49 +02:00
Jan De Dobbeleer fb1c704d14 refactor: adjust build directives for go 1.17 2021-09-09 20:15:43 +02:00
Jan De Dobbeleer 78d0a42556 fix(transient): do not run when no config 2021-09-09 20:15:43 +02:00
Jan De Dobbeleer 13cb9a6a58 fix: correct error printing for eval 2021-09-09 20:15:43 +02:00
Laurent Nullens baa97c8b68 docs: sidebar sorted alphabetically 2021-09-05 12:29:11 +02:00
Jan0660 ffad394a4f feat(memory): add use_available and memory_type 2021-09-04 23:23:38 +02:00
Jan De Dobbeleer 4305b3ad51 feat: support pnpm
resolves #926
2021-09-04 20:46:50 +02:00
Jan De Dobbeleer cff273057a docs: update contributors 2021-09-04 20:46:50 +02:00
Laurent Nullens bb246377ce
feat(git): display worktree count
resolves #913
2021-09-04 18:32:55 +00:00
Thomas Dörr e422e87384 theme: adds new themes (rudolfs dark / light) 2021-09-04 19:40:01 +02:00
allcontributors[bot] 5b64dac60e docs: update .all-contributorsrc [skip ci] 2021-09-03 22:53:04 +02:00
allcontributors[bot] 94a3b2f611 docs: update docs/docs/contributors.md [skip ci] 2021-09-03 22:53:04 +02:00
Jan0660 75c357a7f0 fix(memory): improve code readability 2021-09-03 22:49:56 +02:00
Jan0660 56e46c208f docs: memory segment 2021-09-03 22:49:56 +02:00
Jan0660 daf91dc85a feat: memory segment 2021-09-03 22:49:56 +02:00
Luise Freese 817725f0e7
theme: add m365princess
closes #929
2021-09-02 19:27:39 +02:00
Jan De Dobbeleer 9100586564
chore(winget): lower-case tags 2021-09-01 17:02:08 +02:00
Jan De Dobbeleer 8e64f29d07 docs: add wsl executable info 2021-09-01 13:48:21 +02:00
Jan De Dobbeleer 7386b55b6e chore: update node dependencies 2021-09-01 13:48:21 +02:00
Jan De Dobbeleer 7fd3091187 chore: update go dependencies 2021-09-01 13:48:21 +02:00
Jan De Dobbeleer d16bade426 feat: update to go 1.17 2021-09-01 13:48:21 +02:00
Jan De Dobbeleer e6bc625564 fix(bash): quote the timer path
resolves #914
2021-09-01 13:48:21 +02:00
Jan De Dobbeleer ea40e82a39 fix: render themes on docs deploy
resolves #912
2021-09-01 13:48:21 +02:00
lnu d8c19d0c6d fix(owm): icon display at night
Icon id is different for day/night
2021-09-01 12:25:42 +02:00
allcontributors[bot] 86c1ae66ce docs: update .all-contributorsrc [skip ci] 2021-08-31 20:51:37 +02:00
allcontributors[bot] 1bced55d98 docs: update docs/docs/contributors.md [skip ci] 2021-08-31 20:51:37 +02:00
Majed Al-Chatti b9cd4785f8
theme: add blue-owl 2021-08-31 18:40:07 +00:00