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

Allow lightness values without a % to parse #307

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

Iris-TheRainbow
Copy link
Contributor

@Iris-TheRainbow Iris-TheRainbow commented Jun 11, 2024

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 hykilpikonna merged commit 7f18d0e into hykilpikonna:master Jun 26, 2024
@hykilpikonna
Copy link
Owner

Nice addition

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