Bug 441992

Summary: Provide square layout for weather applet for Latte Dock
Product: [Plasma] plasmashell Reporter: Alex Dewar <alex.dewar>
Component: Weather widgetAssignee: 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
Currently this prevents the parabolic effect with lattedock from working correctly (i.e. if you hover your mouse over the weather applet it does not grow in size, unlike other widgets/launchers).

The dev for lattedock says that this can be resolved by providing a square layout: https://bugs.kde.org/show_bug.cgi?id=441518
Comment 1 Nate Graham 2021-09-08 21:39:12 UTC
Michail, can you clarify what you mean by a "Square layout?".
Comment 2 Michail Vourlakos 2021-09-09 04:46:02 UTC
(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.
Comment 3 Nate Graham 2021-09-16 16:47:01 UTC
OK, thanks.