Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Question: Set the title to the top right or middle of a block. #450

Closed
KallenW opened this issue Feb 1, 2021 · 4 comments
Closed

Question: Set the title to the top right or middle of a block. #450

KallenW opened this issue Feb 1, 2021 · 4 comments

Comments

@KallenW
Copy link

KallenW commented Feb 1, 2021

I didn't find the relevant API in the documentation. Maybe I should implement a custom widget ?

@KallenW KallenW changed the title Question: Set the title to the top right or middle of a block? Question: Set the title to the top right or middle of a block. Feb 1, 2021
@fdehau
Copy link
Owner

fdehau commented Feb 21, 2021

This is not supported at the moment but should be fairly easy to implement, e.g adding a title_alignment to Block and change the logic here to handle this new property.

I might have the time to address it in a future release but in the meantime I'll leave it as a good first issue if anyone want to pick it up.

@olekslitus
Copy link
Contributor

Hello, I am kinda newbie in Rust and would like to implement this.
This would be my first contribution to Open Source project, so I am very excited.
Thank you for pointing to the correct parts of code.

@olekslitus
Copy link
Contributor

Here is my pull request #462

@olekslitus
Copy link
Contributor

Should we close this issue?

@KallenW KallenW closed this as completed Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants