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

Question #315

Open
GameLord2011 opened this issue Dec 2, 2024 · 3 comments
Open

Question #315

GameLord2011 opened this issue Dec 2, 2024 · 3 comments
Labels
question Some information is requested

Comments

@GameLord2011
Copy link
Contributor

GameLord2011 commented Dec 2, 2024

How would I change the color of the info text in the neofetch command? I have a personal fork of momentum fw, and I want the ascii art color to be set to ANSI_FG_BLUE but the color for the info text to be set to ANSI_FLIPPER_BRAND_ORANGE. the code is in GameLord2011/Momentum-Firmware. What I tried is defining a new variable using:

#define 

called "NEOFETCH_INFO_COLOR" and then adding it after it uses:

printf(NEOFETCH_COLOR "%-*s", logo_width, (i < logo_height) ? neofetch_logo[i] : "");

Like this:

printf(NEOFETCH_COLOR "%-*s", logo_width, (i < logo_height) ? neofetch_logo[i] : "" NEOFETCH_INFO_COLOR);

to print the ascii art. (I made some custom ascii art, that's why I want to modify the colors.) And it turned out like this:
Screenshot 2024-12-02 140258

If it helps, I am using Momentum 8.0 as the base for my customized build. None of the modifications are in cli_ansi.h, so I am not sure that is doing anything, it may be how I applied the colors.

@GameLord2011
Copy link
Contributor Author

Note: The following code snippet

printf(NEOFETCH_COLOR "%-*s", logo_width, (i < logo_height) ? neofetch_logo[i] : "" ANSI_RESET NEOFETCH_INFO_COLOR);

produces the same result.

@Willy-JL
Copy link
Member

Willy-JL commented Dec 2, 2024

Don't ping people, someone will reply when they have time and interest to do so. Patience is a virtue. Also you should learn what netiquette is.

@Willy-JL Willy-JL added the question Some information is requested label Dec 2, 2024
@GameLord2011
Copy link
Contributor Author

Sry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Some information is requested
Projects
None yet
Development

No branches or pull requests

2 participants