Skip to content
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

Color Setting for Icons #903

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

gierens
Copy link
Member

@gierens gierens commented Mar 21, 2024

In the discussion https://github.com/orgs/eza-community/discussions/891 the user asks about the ability to make the icon color different from the file name color. I took a peek into the code and actually ended up implementing this functionality.

So this adds the EZA_COLORS variable ic for icon which ends up as an Option<Style> in the UiStyle with None as default. The logic in the FileName.paint is adjusted to apply the icon style when the value is Some and otherwise fall back to the usual behavior, namely that the icon color matches the file name color.

Screenshot from 2024-03-21 21-39-48

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
@gierens gierens added enhancement New feature or request features › icon ready features › ui rust Pull requests that update Rust code labels Mar 21, 2024
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
PThorpe92
PThorpe92 previously approved these changes Mar 22, 2024
MartinFillon
MartinFillon previously approved these changes Mar 22, 2024
src/output/file_name.rs Outdated Show resolved Hide resolved
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
@gierens gierens dismissed stale reviews from MartinFillon and PThorpe92 via 16a3302 March 22, 2024 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request features › icon features › ui ready rust Pull requests that update Rust code
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

None yet

3 participants