Commit graph

16 commits

Author SHA1 Message Date
Kovid Goyal
48674a7869
set-colors: Clean up parsing of colors and conf files
Pass the CLI options to parse_colors_and_files instead of reading
global state, and have it set all and configured when reset is
specified, matching the Python client.

Read conf files with the standard config parser so that tabs,
indentation, long lines and include directives work, and report
invalid colors instead of silently ignoring them. Non-color settings
and special values of colors such as wayland_titlebar_color are still
ignored, as in the Python client.

Allow special_parse functions to take over fields that are backed by
options in the generated Go remote control code.
2026-10-20 07:32:15 +05:30
Kovid Goyal
df2986feb3
Run autoformat after gen/config 2026-09-06 07:09:40 +05:30
Kovid Goyal
7f0b072f0d
autoformat 2026-08-05 05:32:56 +05:30
Kovid Goyal
a65b4c70a7
Migrate type checker to ty
Much faster than mypy. Matches usage of ruff from same developer.
2026-07-04 09:18:00 +05:30
Kovid Goyal
2ead0de844
Only parse color options for key=val specs in parse_colors 2026-04-26 10:15:28 +05:30
Kovid Goyal
6c81547e24
Output the set of special colors separately 2025-11-08 00:55:10 +05:30
Kovid Goyal
aa7d38d5b1
Cleanup some code 2025-11-08 00:51:15 +05:30
Kovid Goyal
80260e6eb1
Move back to individual settings for scrollbar
We need to split out the color settings so that they can be set in
themes anyway, so ...
2025-09-14 17:48:59 +05:30
Kovid Goyal
fb54f1527f
Update type signatures generated by gen/config.py 2025-02-11 22:22:57 +05:30
Kovid Goyal
c7fb942c4c
Fix a regression in the previous release that broke setting of nullable colors 2025-02-11 22:07:42 +05:30
roshal
855fd0241c update 2025-01-03 05:59:42 +03:00
Kovid Goyal
2b3f2258ff
More pyugrade to 3.9 2024-08-05 11:00:51 +05:30
Kovid Goyal
0cf9a79760
A new option second_transparent_bg
Makes a second background color semi-transparent via background_opacity.
Useful for things like cursor line highlight in editors.

Fixes #7646
2024-07-21 20:22:31 +05:30
Kovid Goyal
119582a9d4
Make relative imports work in gen scripts even when directly executed 2023-10-15 09:51:03 +05:30
Kovid Goyal
e6ef2fceea
py3.8 support 2023-10-14 07:57:03 +05:30
Kovid Goyal
56063b96fd
Move gen scripts into their own package 2023-10-14 07:44:18 +05:30
Renamed from gen-config.py (Browse further)