| Summary: | Provide square layout for weather applet for Latte Dock | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Alex Dewar <alex.dewar> |
| Component: | Weather widget | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | wishlist | CC: | mvourlakos, nate |
| Priority: | LO | ||
| Version First Reported In: | 5.22.5 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Alex Dewar
2021-09-04 11:10:26 UTC
Michail, can you clarify what you mean by a "Square layout?". (In reply to Nate Graham from comment #1) > Michail, can you clarify what you mean by a "Square layout?". The width and the height should be equal at all sizes. An applet is using Layout. qml way to define its width and height requirements. For example when the applet is in a bottom dock, the applet height (thickness) is provided by Latte by taking into account the user item size preference and the small applet adjustments such as CanFillArea applet hint. The applet width (length) in previous case is totally to applet to define how much it requires, this way Latte understands what layout ratio the applet wants to draw itself correctly. Long story short in the bottom dock scenario, when Latte defines 64px. height for the applet, the applet must respond that requires 64px. width. 68px. height then 68px. width. etc.. This is the way to have a nicely drawn parabolic effect for that applet. OK, thanks. |