-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
Layout builder #364
Closed
Closed
Layout builder #364
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
small, medium etc is better to handle than values and fractions
8 tasks
a layout builder would be awesome♥ |
@rodja What do you think: With 1.3.0 being (almost) released now, it's getting harder and harder to merge this PR. And it's stale for months now. Should we close it and come back once we have new ideas on how to proceed? |
Yes, the code is not lost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One idea from #117 was to create a subset of layout commands which are easier to understand and discover than the classic css/quasar/tailwind techniques. The "Layout Builder" is one such attempt.
Features
This branch currently sketches out the following features (meaning it's not a full implementation but rather a proof of concept):
align.center
andalign.children
are fundamentally different in css but presented together)with ui.layout('horizontal')
ButtonLayout
to configure shape etc.)add
.copy()
margin.top.auto()
is not possible with css)A demo of this features is implemented in the
layout_demo.py
.ToDos / Ideas
Questions
ui.button().layout.align.center()
should returnButtonLayout
)dark:
selector or use Quasar colors to support Theming withui.colors
?