-
-
Notifications
You must be signed in to change notification settings - Fork 313
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 one level of nested frames in sitemaps #3785
Conversation
Nice to see this implemented (even though nested frames still aren't fully supported, but only one level), but I think the visual representation can use some improvement. My suggestion would be using a separate view (and thus view holder) where
|
mobile/src/main/java/org/openhab/habdroid/model/WidgetDataSource.kt
Outdated
Show resolved
Hide resolved
It's a tricky one. If we support unlimited nesting levels, we'd need to have a way to provide visual clues about the nesting levels. Simply indenting the "header" is going to look weird when the "content" of the frames will remain at the same left indentation. So to do that, we'd need to indent all the children too, which requires a bit of a restructure to the way Frames are currently done. |
Just to be clear: I don't want to support unlimited nesting, precisely for the reasons you outlined: we'll run out of screen real estate pretty fast. Personally I'm not even convinced that two level nesting is a good idea, but I know there's quite a few people thinking otherwise. |
However, I think the difference is a bit too subtle. How can we improve it? |
Different colors maybe? |
How does it look with dynamic colors? |
It does, see here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can merge when you resolve the conflict caused by merging the other PR.
Signed-off-by: Jimmy Tanagra <[email protected]>
Signed-off-by: Jimmy Tanagra <[email protected]>
…ding Signed-off-by: Jimmy Tanagra <[email protected]>
Signed-off-by: Jimmy Tanagra <[email protected]>
Signed-off-by: Jimmy Tanagra <[email protected]>
Rebased to main. Note the change from secondary to tertiary container color was also added. |
Signed-off-by: Danny Baumann <[email protected]> (cherry picked from commit ef82e37)
I learned that nested frames aren't "supposed" to be supported, but BasicUI and iOS renders them, whilst Android doesn't.
Here, I propose to render nested frames, and also provide a visual clue for the nesting structure by using
colorTertiaryContainer
, indenting the header text and reduce the header bg's height/padding, as suggested by @maniac103Resolve #324, #1639, #2804
Also #420