Skip to content

[FEATURE PROTOTYPE] adds step on interactive setup which prompts the user for either the default or small variant of their distro logo.#392

Merged
hykilpikonna merged 5 commits intohykilpikonna:masterfrom
stel1a:master
Apr 6, 2025

Conversation

@stel1a
Copy link
Contributor

@stel1a stel1a commented Feb 20, 2025

hello !! hope you're doing well :3

this is the first time i have ever contributed code to an open-source project, so bare with me !!

Description

when i got hyfetch, i really wanted to use the smaller logo version of my distro (arch) for the fetch screen. however, it wasn't super obvious through the interactive setup that i had to manually specify the option by appending "arch_small" to the config under the distro setting afterward.

this pr adds an extra step on the interactive setup (after you specify your color preset and before changing color alignment). if a small logo version of your currently running distro exists, then it presents an extra option prompting the user to pick either the default logo or the small logo

Screenshots

hyfetch_1
hyfetch_2

quick note:

i couldn't figure out how to center the small logo horizontally with the large logo (i only figured out how to do it vertically), so i just added a bunch of spaces in the "line.join()" line as a remedy. the lack of horizontal centering has the side effect of looking a little weird when the terminal viewport can only show one logo per row. i am still learning rust (having a blast learning it !!), so if aspects of my code are a bit bad practice for rust please lmk !!

@hykilpikonna hykilpikonna merged commit 76ae5e5 into hykilpikonna:master Apr 6, 2025
1 check passed
@hykilpikonna
Copy link
Owner

That's honestly a great idea, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants