hykilpikonna / hyfetch

🏳️‍🌈 🏳️‍⚧️ Neofetch with LGBTQ+ pride flags!
MIT License
1.15k stars 90 forks source link

Allow lightness values without a % to parse #307

Closed Iris-TheRainbow closed 1 week ago

Iris-TheRainbow commented 3 weeks ago

Description

As a hyfetch user, when configuring hyfetch on a new system, I often get to the lightness value and enter '65' without a %, leading to me having to retry. Because of this,I thought that instead changing the parsing to allow values like '65', '.65', or '65%' to parse correctly, as well as updating the parse error to reflect the changes

Screenshots

image

Additional context

Alternatively, updating the lightness message: Which brightness level looks the best? (Default: 65% for dark mode) to mention the input options could also be good.

hykilpikonna commented 1 week ago

Nice addition