Commit graph

10 commits

Author SHA1 Message Date
Ulices
20921d33c6
feat: add desktop environment and window manager categories with icons (#438)
* feat: add icons for some desktop environments

Fix #432

* feat: add icons for some window managers

Fix #432

* feat: include DE & WM icons on "Hi" test

* feat: update script to generate light colors
2024-04-08 09:54:51 +10:00
Mike Iversen
22e62c7310
feat: operating system icons (#362)
* Added apple and windows

* First shot at adding os icons

* Fixed invalid names

* Removed unfillable OSes

* Purged commented out osses

* Removed "linux" from os names

* Added icons_by_operating_system

* Revert "Added icons_by_operating_system"

This reverts commit d1cc9f35f5.

* Add `icons_by_operating_system` to color generation script

* Updated to colors for icons_by_operating_system

---------

Co-authored-by: Azad <49314270+Akmadan23@users.noreply.github.com>
2023-12-30 11:36:20 +11:00
Alexander Courtis
43aa2ddf47
ci: ensure color is valid length #rrggbb (#359)
* ci: ensure color is valid length #rrggbb'

* Update scripts/generate_colors.lua

Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com>

* ci: ensure color is valid length #rrggbb

---------

Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com>
2023-12-24 14:18:46 +11:00
Alexander Courtis
d3cf19ef81
ci: harden colour generation (#338)
* ci: harden generation

* ci: harden generation

* ci: refactor to use make
2023-11-20 09:26:23 +11:00
Azad
e2f6e0e299
ci: generate cterm color even if line is missing (#335)
* ci: generate cterm color even if line is missing

* Fix icons according to updated script

---------

Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-11-19 12:17:57 +11:00
Azad
3af745113e
refactor: move default icon theme to separate file (#323)
* refactor: move default icon theme to separate file

* stylua

* Bug fix

* Update `generate_colors` script

* Additional check

* generate_colors handle icons_by_filename table at start of icons-default file

* fix bib colour following merge

* lint workflow check lua/nvim-web-devicons/icons-light.lua

* fix bib colour following merge

* update CONTRIBUTING.md with new icon file locations

---------

Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-10-14 18:02:09 +11:00
Alexander Courtis
4970f75b05
ci: style, lint dev: precommit, style, lint, editorconfig (#218)
* add stylua, luacheck, luarc, editorconfig, pre-commit hooks

* add stylua, luacheck, luarc, editorconfig, pre-commit hooks

* add comments before icons_by_filename and icons_by_file_extension

* stylua nit for generated light

* correct luacheck stylua order in contributing.md

* add stylua/luacheck OS package notes

* use make instead of pre-commit hooks

* document prerequisites

* remove setup-hooks.sh

* ci: add pre-commit configuration and GHA (#233)

* ci: add pre-commit configuration

* ci: add GHA to autoupdate pre-commit hooks

---------

Co-authored-by: gegoune <69750637+gegoune@users.noreply.github.com>
2023-03-20 12:32:18 +11:00
mg979
b2060eac2f
feat: light color scheme variants (#213)
* feat: inverted colors for light colorschemes

* generate cterm colors in the same script

No need to change to light background

* don't darken if already dark enough

* remove unneeded lines

* darken colors, don't invert them

* improve the scripts somewhat

* reduce darkening for non extreme values

* don't mess with package.loaded

* add one step

* refactor: move init code to the bottom

* Use a single script, add Makefile

The script can be run from the shell with `make colors`:
- the working directory must be the repo
- vim-colortemplate must be in the runtimepath

* Add another step, make a little bit darker

* More precise luminance formula

Taken from:
	https://stackoverflow.com/a/596243

* add CONTRIBUTING.md

* add CONTRIBUTING.md

* add CONTRIBUTING.md

* add CONTRIBUTING.md

* update README.md

* update README.md

* add lua/nvim-web-devicons-light.lua

* update CONTRIBUTING.md

* rename: darken_colors -> generate_colors

* fix: use pcall to check vim-colortemplate

* More CONTRIBUTING.md stuff

Currently the script requires that `cterm_color` is present, and set to
a number (any number, also 0). It's not optional.

* update CONTRIBUTING.md

---------

Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-03-06 15:22:01 +11:00
mg979
c2c2317f35
update cterm colors (#208)
* feat: more accurate cterm colors

Recalculated with the algorithm from lifepillar/vim-colortemplate, that
gives better approximations.

* add script for cterm colors generation

* update script
2023-02-28 13:35:12 +11:00
kiyan
2033e8e01a chore: add small script from @B0o 2022-04-23 11:06:18 +02:00