Bug 441992 - Provide square layout for weather applet for Latte Dock
Summary: Provide square layout for weather applet for Latte Dock
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Weather widget (show other bugs)
Version: 5.22.5
Platform: Arch Linux Linux
: LO wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-04 11:10 UTC by Alex Dewar
Modified: 2024-12-17 22:20 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.