https://bugs.kde.org/show_bug.cgi?id=442675

--- Comment #1 from doncb...@gmail.com ---
Created attachment 142015
  --> https://bugs.kde.org/attachment.cgi?id=142015&action=edit
problems with moving content into corners

Michail, please explain why you have changed this to a feature request for an
indicators API. I do not see how that will solve the problems of highlights
(tabbar.svg) in themes.

I do see this as a theme-breaking bug, as plasma themes have information
concerning margins in their panels. Latte ignores these, even when using the
theme's original corner styles. As a result, everything is drawn inside of the
borders, adding an unusual amount of padding and making even spacing between,
say tasks.svg icons, impossible without shrinking corner radii to that of the
side margins. What happens when the corner radius is too large is shown in the
latte dock screenshot.

The attached image shows some scenarios for the tabbar.svg element, as it is
drawn behind many plasmoids in the panel, including kickoff and the system
tray. As they are currently, tabbar.svg has no means of coping with corners and
the square that will be drawn will extend outside of a panel with very round
corners. Thus, in the screenshot, 1 represents a completely square panel. 2
represents how the plasma panel would handle it. 3 represents latte handling it
to use space effectively. 4 and 5 represent ways of clipping it if there was a
way to know that tabbar.svg had an invisible margin around it. 6 represents how
I expect clipping to be handled by latte. 4 and 5 are completely broken if
tabbar.svg swaps the invisible margin for a shadow, outline, etc.

The following are 2 potential solutions. One is substantially easier to
implement.

My proposed solution is simply to allow a toggle for latte to follow the theme
or not. A slider to control the spacing on the sides as shown in the latte
screenshot would be even more useful for the general case.

The solution that can perfectly support the corners would be if the corners of
the panel were set, and assets for tabbar.svg were added that could be drawn if
a plasmoid had corners next to it.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to