Conversation
8135a26 to
02775d1
Compare
|
Hmm... my gut reaction is that this something I was ever planning on adding, but maybe it's fine. I can see the use case. I also do not want to add background colours to any of the existing colour schemes, so please remove that. The default behaviour should be to defer to the user's terminal colour, and I'm not changing that. As for getting this to work, the thing is you would need to draw a background colour to every cell, not just text (including cells that we might currently not draw to). That's certainly doable, I guess, and not a hard change, but it's not a small change like what you have here. I guess what you could do is if a background colour is set, before drawing, additionally do one pass on every cell in the terminal first. This could be done by getting a Hopefully this helps. If you would prefer to defer the issue to me I can also take a look. |
...might be in over my head with this one. I don't understand the code too well (or ratatui), but can't the |
|
A |
Without the background-color settings, cargo refuses to build since |
|
Also yeah I don't mind taking over for this as I don't think it's too bad, just a really messy codebase probably complicates it 😅 |
You would want to use an |
|
Also converted this to a draft. |
tried that a few minutes ago, and some macro somewhere was complaining... I don't know how to use macros... |
02775d1 to
0404bab
Compare
|
Up to you, I can take a look at this later today. |
bdf459b to
4100fee
Compare
Instead of iterating over every cell and setting the background color of that, just set the color of each widget, which achieves the same effect. This can also be overriden if we add the ability to set the background color of each widget.
4100fee to
2779aa7
Compare
a2d9084 to
ad07d15
Compare
|
The background color is now read from the config. I added another macro to set the background color, which also means that the user could theoretically configure each widget's background separate from each other. This should be trivial to implement, so let me know if this is something you'd consider worthwhile to add. 2026-02-14.20-38-13.mp4 |
bg_color optionbg_color option
Description
A description of the change, what it does, and why it was made. If relevant (e.g. UI changes), please also provide screenshots/recordings:
Add a
bg_coloroption inWidgetStyle. Also add background color values for the gruvbox, nord, and default theme.However, when I run with
cargo run -- --theme nord, the background color does not apply, instead just using the gruvbox background from my terminal. I don't know what needs to be changed for this to work.Issue
If applicable, what issue does this address?
Closes: #1978
Testing
If relevant, please state how this was tested (including steps):
If this change affects the program, please also indicate which platforms were tested:
Distro is NixOS
Checklist
Ensure all of these are met:
cargo fmt)cargo clippy --all -- -D warningscargo testREADME.md, help menu, docs, configs, etc.)Other
Anything else that maintainers should know about this PR:
Just need help with doing this. Hopefully it's a simple change...