Daniel Imms
530f758905
Restrict comments to 100 characters
...
This is a rule I try enforce in PR but it's a bit of a hassle, this will
give a lint warning when it happens resulting in:
- Yellow underline in supported editors when eslint is installed
- Compilation will succeed since it's a warning not an error
- CI will fail as it does not allow lint warnings
Special case comments are ignored which includes @vt comments, table
comments and commented out code.
2023-08-12 09:04:41 -07:00
Daniel Imms
c5d015c908
Merge branch 'master' into shared_cache
2022-10-04 13:54:14 -07:00
Daniel Imms
f6a61acc86
Merge branch 'master' into feature/lint-by-putout
2022-10-04 09:52:10 -07:00
Daniel Imms
6fcc496547
Move cache utils to core shared/ folder
...
Part of #4065
2022-10-01 17:36:16 -07:00
Daniel Imms
e68bf3ca5b
Merge remote-tracking branch 'ups/master' into fast_setTheme
2022-09-24 11:02:15 -07:00
Daniel Imms
6368cb4cff
Move canvas-based parsing to Color.ts lib
...
This removed the allowTransparency code, it didn't actually do much
before, just whether the 'advanced parsing' would allow transparency.
Since we already do the common formats, I'm not even sure what other
format it could be.
2022-09-24 10:37:40 -07:00
Daniel Imms
81d68b115c
Share rgba vars throughout Color.ts, fast setTheme parseColor
2022-09-24 10:00:57 -07:00
coderaiser
25eb7d6472
chore: lint using 🐊 Putout
2022-09-15 17:19:34 +03:00
Daniel Imms
48142eca23
Merge branch 'master' into tyriar/dim_bg
2022-07-29 10:20:22 -07:00
Daniel Imms
f4ffb13ece
Render dim bg in all renderers
...
Fixes #3534
2022-07-24 10:59:24 -07:00
Daniel Imms
0ccf3beec7
Retain hue when flipping luminance
...
Fixes #3845
2022-07-24 08:03:27 -07:00
Daniel Imms
384cd9db30
Standardize css.toColor output to #rrggbb[aa]
...
This will help reduce the chance of runtime exceptions that would
break the render loop.
2022-05-20 11:06:19 -07:00
Daniel Imms
ddd43e0f09
Correct rgba() parsing to use float alpha channel
...
Fixes #3814
2022-05-20 06:34:17 -07:00
Daniel Imms
e3c361327c
Support rgb() and rgba()
...
This is used for default theme colors and decoration bg/fg.
Fixes #3814
2022-05-19 09:23:36 -07:00
Daniel Imms
7edc11bd04
Correct #rgba, add #rgb and tests
2022-05-19 09:00:50 -07:00
ChaseKnowlden
ebe55e5b5f
Add rgba format
2022-05-18 20:28:59 -04:00
Daniel Imms
de03391c2d
Allow ensureContrastRatio to change luminance the other way
...
The higher ratio of the two results will be picked.
Fixes #3720
2022-05-13 11:19:38 -07:00
Daniel Imms
10598462d0
Fix color channel used by luminance functions
2022-05-09 15:36:54 -07:00
Daniel Imms
0c6877f46f
Move color to common, work with IColor
...
IColor is needed for the minimum contrast ratio function currently.
2022-05-09 14:00:39 -07:00