-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C preprocessor colors improvement #18671
Conversation
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Hi, could you post some screenshots before and after? |
Screenshots were in #18670. |
Please also check/show screenshot in dark theme (Settings -> Account -> Select default theme). |
Dark theme has a few issues like that, we need to fix them separately. Would appreciate if you could fix the ifdefs and filenames in dark theme as well. I think we could just copy the same colors as from light theme, maybe with slightly increased luminosity. |
I would be happy to do that, but there is something I do not understand in chroma files :-(
I can get something in chroma highlighting (but whole page & line numbers get light background. However, this is not very important here. Would those preprocessor (and include filenames) colors be OK (the only change is the blue color for include filenames) ? If yes, I could ament my PR with |
Background color comes from Line 124 in c14ca34
So essentially, the chroma files do not set background because background comes from the base theme (we need to restructure theme variables into separate files later to be more clear). Colors seem fine. |
make lgtm work |
* C preprocessor colors improvement Fixes go-gitea#18670 * Update web_src/less/chroma/light.less Co-authored-by: KN4CK3R <admin@oldschoolhack.me> * typo missing semi * add color for #include filenames Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* C preprocessor colors improvement Fixes #18670 * Update web_src/less/chroma/light.less Co-authored-by: KN4CK3R <admin@oldschoolhack.me> * typo missing semi * add color for #include filenames Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Bruno Raoult <braoult@users.noreply.github.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* giteaofficial/main: Fix issue with docker-rootless shimming script (go-gitea#18690) tests: remove redundant comparison in repo dump/restore (go-gitea#18660) [skip ci] Updated translations via Crowdin Disable unnecessary OpenID/OAuth2 elements (go-gitea#18491) Add apply-patch, basic revert and cherry-pick functionality (go-gitea#17902) C preprocessor colors improvement (go-gitea#18671) Update object repo with the migrated repository (go-gitea#18684)
* C preprocessor colors improvement Fixes go-gitea#18670 * Update web_src/less/chroma/light.less Co-authored-by: KN4CK3R <admin@oldschoolhack.me> * typo missing semi * add color for #include filenames Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Fixes #18670
C comments and preprocessor had nearly-same colors in light theme.
Old values:
Proposed values: