Commit Graph

145 Commits (0c956fac77a37dbf6156f0a8ffb8a09a093dcc30)

Author SHA1 Message Date
Michail Vourlakos 0c956fac77 fix #961,Improve Visibility consider WindowsGoBelow
--the following case:
[Windows Go Bellow + Top Panel + Panel Transparency<40%
+ "Improve Visibility" + "Not Forced Solid Background
for maximized windows"]
disables the colorizer because the role of the background
is done from the window titleBar.
Michail Vourlakos 13e8791213 add a few margins for applets tooltips
Michail Vourlakos ca6188bf46 remove transparency from Colorizer colors
--the plasma theme may have set for textColor
and backgroundColor, colors with transparency.
This can mess up the "Improve Visibility"
feature.
Michail Vourlakos 2967eea11a fix #961,Semi-Tranparent Panels at ImproveVisibility
--update issue  in order to take into account
semi-transparent panels. With semi-transparent panels
contrast could be a puzzle. The changes that
introduced with this patch are:
1. Enable Improve Visibility when also case [E] from
  is enabled.
2. When a semi-transparent panel exists in combination
with Improve Visibility option then add a threshold
in order to indicate if the Colorizer will be applied
or not. The threshold is 40% in order to indicate if
a semi-transparent panel is solid or not.
Michail Vourlakos 820dff0bb5 improve calculations of panelEdgeSpacing
Michail Vourlakos 3ea40954fc fix #942,show dock when dragging at kwin edge
-- enable showing the dock if the user drags something
on it and the dock is hidden at a kwin edge
Michail Vourlakos 7ce5938312 add internal separator through drag n' drop
Michail Vourlakos 2b2ddfeb70 improve contrast for Launchers Area text
Michail Vourlakos 18151ec023 disable "visibility improvement" for !compositing
Michail Vourlakos 40fc0ca717 block automaticIconSize inTempHiding
Michail Vourlakos 607d6b4f4a hide plasmoid preview when hovering an applet
Michail Vourlakos 452e93c33e improve update of hoveredIndexes
--when the plasmoid is hovered when the
applets hoveredIndex should be initialized
and when an applet is hovered then the plamoids
hoveredIndex should be initialized to -1.
Michail Vourlakos 0bb70c1595 drop fastEntering for directRenderDelayer
--the directRenderDelayer is used during first
entering in order to delay the activation of
directRendering. The cons of previous fastEntering
implementation added the necessity for this
replacement.
Michail Vourlakos 4cf4351b80 improve all luminance calculations
--provide more accurate calculations for luminance
based on algorithm at:
https://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
Michail Vourlakos 42793475c5 fix #910,set added applet parent to dndSpacer one
--in Justify alignment and normal mode, setting the applet
to have as parent the root qml Item it creates a stack in
a lot of cases... By setting the applet container item
directly to more proper parent fixes any issue.
Michail Vourlakos b8321fb829 fix #905,smart colorize transparent panels
--enhanche the dynamic background feature and
in ordre to improve contrast with the underlying
background Latte now calculates the luminosity of the area
underneath the panel and based on that chooses the
best color to create contrast. The colors are chosen
only between textColor and backgroundColor.
Michail Vourlakos 4d6e986d2b use panel theme in some cases that isnt chosen
--when the user has disabled the panel background
but has enabled a solid background for maximized windows
then in such case the panel background must be enabled
for when it is needed
Michail Vourlakos 198ce090ef enable monochrome panel for transparent panels
-- in dynamic background it might be important for
the user to increase the contrast because the textColor
from plasma theme and the background might not provide
readable contrast. This feature adds this by giving
to the user the choice to have as monochrome layout
when the panel is transparent to theme.backgroundColor
Michail Vourlakos 1ff161a030 updates and improvements at applets glob.shortcuts
Michail Vourlakos 103b901125 support showing applets numbers with badges
-- this is used mainly from globalshortcuts triggering
Michail Vourlakos db28c6bcaf use globalshortcuts with containment also
--we are trying to expose an applets calling
mechanism that is combined with the latte plasmoids
one with a nice beautiful way
Michail Vourlakos e370f0447f fix editShadow for compositing mode
Michail Vourlakos 3d6ff9583b disable animations for !compositing mode
Michail Vourlakos 6de4db1ba3 improvements for !compositing mode
Michail Vourlakos 6d08319c10 disable dynamicBackground for !compositing
--disable also the panel opacity for !compositing
Michail Vourlakos 5b3c00ff8c improve code for enable/disable checkRestoreZoom
Michail Vourlakos b607e25a4c reduce interval of checkRestoreZoom
Michail Vourlakos b12cf1446a orchestrate better directRender for plasmoid
--use same techniques with the containment in order
to activate/deactivate the directRender through
the latte plasmoid
Michail Vourlakos 14ffc70088 cleanup deprecated directRenderTimer/containment
Michail Vourlakos 7c1cd0cb70 improvements to applets parabolic effect
Michail Vourlakos 3a2b0f7fd6 animate iconMargin when changes
Michail Vourlakos 05e08e57c5 delay a bit the directRender activation
--previously directRender was activating also when
from the first entered element the mouse moved fast
enough to the second element. But this could happen
also accidentaly some times. This improvements indicates
also the mouse position in the second element to be
near the center of that element
Michail Vourlakos 9c18e5dbef fix warnings
Michail Vourlakos 97e8b58df2 dont blacklist activeWindowControl
-- the fix will come up from upstream! ;)
Michail Vourlakos 3195cc206c enable ruler tooltip in editing mode
Michail Vourlakos ef8256f815 use mouse scroll to increase maxLength from Ruler
Michail Vourlakos 976494ed09 enable smooth animation when changing alignments
Michail Vourlakos 9e4ec510f9 increase topMargin at behaveAsPlasmaPanel
Michail Vourlakos 65c067f428 improvements for Ruler
Michail Vourlakos 894af1867b improve calculations for editingmode
Michail Vourlakos 408476ce58 improve editMode triggering
--take into account the animations during
editMode activation/deactivation
Michail Vourlakos 96c9a22b70 lower maxLength text in dock mode
Michail Vourlakos 794e290ca5 position maxLength label correctly
Michail Vourlakos 4b822e4564 fix calculations for max values
Michail Vourlakos f5f254c0db enable automatic sizes in edit mode
--block also the editing background to
change size
Michail Vourlakos 432241dd93 improvements for new ruler
Michail Vourlakos 73229c5fbc give some more space in editingVisual for ruler
Michail Vourlakos da5fc3fe1a fix #862,blacklist new activeWindowControl
--the new kde activeWindowControl becomes active
when is showing menus. That conflicts with Latte
internal heuristics in order to not show or show
dynamically panel shadows, active indicators etc.
Michail Vourlakos 3462562a81 fix #857,improve par.effect with tooltips
--window previews were lowered in order to touch
the task for which are presenting issues. This way
the mouse confirms alway the taskContainsMouse flag
--title tooltips are shown only when the dock has
ended its sliding-in animations
Michail Vourlakos 5633d6694d show title tooltips only when the dock is ready