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

Add Text Align option #136

Merged
merged 6 commits into from
May 13, 2024
Merged

Add Text Align option #136

merged 6 commits into from
May 13, 2024

Conversation

dthelegend
Copy link
Contributor

Hi

I added a text-align option to the prompt. I did this mainly so ASCII art I had in my /etc/issue showed up better, but I can see it being useful for other things as well.

I am not sure if you would rather include this in the new theme flag I saw recently added, but I wasn't sure how to properly extend the format to accommodate that so I added it as a new flag. Leaving the flag absent defaults to center align as before.

src/greeter.rs Outdated Show resolved Hide resolved
src/ui/prompt.rs Show resolved Hide resolved
src/greeter.rs Outdated Show resolved Hide resolved
@apognu
Copy link
Owner

apognu commented May 2, 2024

I added a few comments.

Also, thank you for not shoehorning this into the theme string. Even if that might be a good idea long-term, it needs some thinking on my part. 😁

@apognu apognu added the enhancement New feature or request label May 2, 2024
src/ui/prompt.rs Outdated Show resolved Hide resolved
@apognu apognu added this to the 0.10.0 milestone May 7, 2024
Copy link
Contributor Author

@dthelegend dthelegend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Limited text-align scope to greeting and changed name. Fixed arguments to be either "left " or "right" strictly

src/greeter.rs Outdated Show resolved Hide resolved
src/greeter.rs Outdated Show resolved Hide resolved
src/ui/prompt.rs Show resolved Hide resolved
src/ui/prompt.rs Outdated Show resolved Hide resolved
contrib/man/tuigreet-1.scd Outdated Show resolved Hide resolved
@apognu apognu merged commit 4ac1226 into apognu:master May 13, 2024
3 checks passed
@apognu
Copy link
Owner

apognu commented May 13, 2024

Merged! Thanks you for the PR. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants