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

Question: How to center a grid? #27

Closed
aMir733 opened this issue Apr 26, 2022 · 7 comments
Closed

Question: How to center a grid? #27

aMir733 opened this issue Apr 26, 2022 · 7 comments

Comments

@aMir733
Copy link

aMir733 commented Apr 26, 2022

In a way that it shows up at the center of the screen?
I have this layout: taskbar - label (for spacing) - grid (I want this centered) - label (spacing again) - tray. But it's not exactly centered.

@LBCrion
Copy link
Owner

LBCrion commented Apr 27, 2022 via email

@aMir733
Copy link
Author

aMir733 commented Apr 27, 2022

Another way to do it in my opinion is to have an "align" variable inside the widget, like:

grid {
      align = "center"
      ...
  }

and if it's not defined in the user's configuration then set it to left as in default. This way when you release the update people don't have to update their configuration file.

@LBCrion
Copy link
Owner

LBCrion commented Apr 27, 2022 via email

@LBCrion
Copy link
Owner

LBCrion commented Apr 30, 2022 via email

@aMir733
Copy link
Author

aMir733 commented Apr 30, 2022

It works perfectly! I will open a new issue if I encounter any problems.
Thanks for all your hard work!

@aMir733 aMir733 closed this as completed Apr 30, 2022
@LBCrion
Copy link
Owner

LBCrion commented May 11, 2022 via email

@LBCrion
Copy link
Owner

LBCrion commented May 19, 2022 via email

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

No branches or pull requests

2 participants