1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00
Commit Graph

4463 Commits

Author SHA1 Message Date
Michail Vourlakos
84003f3c35 protect latteBridge setting 2020-05-14 23:36:15 +03:00
Michail Vourlakos
55506fd20a automate AppletItems length calculations 2020-05-14 23:17:12 +03:00
Michail Vourlakos
9fcec2128a support min/max length and alignments beautifully
--applets that use auto fill calculations to gain their
length work really nice now for all alignments and values
very similar to plasma panels
2020-05-14 20:08:12 +03:00
Michail Vourlakos
7b1f2f2ef2 update AppletItem::Wrapper implementation
--new implementation is using length/thickness
semantics and not widths/heights. This way things
are much clearer and easier to extend
2020-05-14 18:04:10 +03:00
Michail Vourlakos
407cef9488 rename AppletItem property to maxAutoFillLength 2020-05-14 15:37:05 +03:00
Michail Vourlakos
e83dcfdc92 fix invisiblity of Separator applets in rare cases
--when the user was using applets separators with parabolic
effect there were cases that did not appear at all. This
is now fixed.
2020-05-14 15:31:08 +03:00
Michail Vourlakos
0c5fb4957e rename applet property to isAutoFillApplet 2020-05-14 15:25:59 +03:00
Michail Vourlakos
302140972c fixes for Layouter ability in Container 2020-05-14 10:57:23 +03:00
Michail Vourlakos
6be6450f18 fix binding loops for applets Indexer
--update fist/lastVisibleItem Index only after
the layout children match the models used count
2020-05-14 10:37:04 +03:00
Michail Vourlakos
2268d7ca12 more improvements for Layouter different alignments
--trying to find a workable layout case for all alignments
when they contain Fill(s) applets
2020-05-14 09:42:25 +03:00
Michail Vourlakos
1b19de8952 improve Layouter for Fill(s) in MainLayout 2020-05-14 02:40:35 +03:00
Michail Vourlakos
4fa11ab3d8 use maximum length for normal alignments and fills
--when Left/Center/Right alignments contain a fill
applet then they should use the entire max length
2020-05-14 02:03:36 +03:00
Michail Vourlakos
e21e6eba94 center fillApplets in MainLayout for Justify
--avoid for fillApplets of Main layout to overlap
with surrounding applets from side layouts
2020-05-14 01:10:57 +03:00
Michail Vourlakos
61ce906ef9 dont add margins for fitt's case in fill applets 2020-05-14 00:59:14 +03:00
Michail Vourlakos
5604d8cb3f inform Layouter for applets parent change inConfigure
--this way many glitches are avoided
2020-05-14 00:37:36 +03:00
Michail Vourlakos
8b6585284c improve visuals for placeholder
--dont add length edge margins through offset
for start/endlayouts, much cleaner and visual
pleasing to the eye. the user can always add
spacers if prefers to add padding.
2020-05-14 00:16:54 +03:00
Michail Vourlakos
f81e3cdc3a provide visual feedback when layouts overlap
--in configure applets mode when the layouts overlap
with main centered layout then visual feedback is provided to
the user in order to help him understand in which
layout each applet belongs
2020-05-13 21:41:20 +03:00
Michail Vourlakos
df9eda426f improve Justify splitters behavior inConfigure
--justify splitters now the offset themselves when
startLayout or endLayout are too big
2020-05-13 20:55:26 +03:00
Michail Vourlakos
3d6c7b3b23 reduce justify splitter maximum size 2020-05-13 19:45:33 +03:00
Michail Vourlakos
2ef0cdd944 introduce Layouter ability 2020-05-13 19:25:29 +03:00
Michail Vourlakos
2a91cb55c1 remove subtract extranormthick from headThickGap
--extra thickness that is required from indicators
must be ignored from HeadThicknessGap which is used
for nice snapping
2020-05-13 11:06:27 +03:00
Michail Vourlakos
3a347754ea fix one pixel glitch for parabolic effect
--finally after two years I found why there was a glitch
when the parabolic effect was hovering from Task into
an applet and vice versa. Tasks were rounding their
size before exposing it to container. Now this is fixed.
--Drag a task animation is now improved to be a little
more responsive and to inform also its mask requirements
to animations
2020-05-12 19:50:40 +03:00
Michail Vourlakos
66f8cce6d9 introduce Layouter Debug mode
--really handy and beautiful in order to confirm the
calculations that are valid. Already a bug was found
for ParabolicEffect. There is 1px difference between
hovering Tasks and Applets
2020-05-12 17:08:09 +03:00
Michail Vourlakos
afb4279e09 fix View::Settings::updateEffects() area
--update effects area should be consistent with
settings dialog backgroud. Currently that has
changed to more apporpriate "dialogs/background"
2020-05-12 15:04:46 +03:00
Michail Vourlakos
3ad89c10a4 fix crash from indicator config ui creation 2020-05-12 14:59:16 +03:00
Michail Vourlakos
c173a0dbdf align Tasks Previews exactly on item's head edge 2020-05-12 14:51:59 +03:00
Michail Vourlakos
ec949948b6 fix View recraetion and frameExtents freezes
--View recreation path was broken from new implementation
for Latte::Interfaces that pass objects to containment
interface. This is now fixed and Interfaces::View object is updated
and broadcasted correctly when changed
--when GtkFrameExtents are zeroed for behaveAsPlasmaPanels
then it is better to recreate the view to avoid freezes and
hidings of the view because of compositor strange behavior
2020-05-12 14:45:31 +03:00
Michail Vourlakos
677caab132 introduce a background.minThickness
--plasma themes because of their svg nature can
have a minimum padding under which they are not
drawn correctly. In such cases background shadows
overlap and background internal drawing overlaps
in the center. That property protects from
such case by introducing a minimum background
thickness at all cases. Good example of the issue
is observed in behaveAsPlasmaPanel(s) that are
floating and have very good round corners.
2020-05-12 11:39:30 +03:00
Michail Vourlakos
da571bdc32 improve background computations for 100% 2020-05-12 10:45:52 +03:00
Michail Vourlakos
b6183c526c update frameExtents at View::forcedWorkaroundShown 2020-05-12 10:30:05 +03:00
Michail Vourlakos
8525e076f8 Tasks,dont mask out zoomed items too soon
--AppletItem::clip was introduced  in order to
avoid circumstances that applets exceed their limits
and as such still events from surrounding applets.
Because of that change applets should now apply
their layout properties as valid all the time
2020-05-12 10:08:03 +03:00
Michail Vourlakos
5b13bc421f improve background calculations a bit 2020-05-12 03:23:27 +03:00
Michail Vourlakos
a91f6a8a8e make Effects updateEffect(),GtkFrameExtents aware 2020-05-12 03:10:17 +03:00
Michail Vourlakos
e16ca1f87b release indicator config ui when window closes 2020-05-12 02:38:01 +03:00
Michail Vourlakos
381675ac57 reduce kconfig.sync() calls
--improves startup times in some cases because
it does not write to disk that often.
2020-05-12 02:16:08 +03:00
Michail Vourlakos
e83f7e551e redraw panel shadows after !visible workarounds
--use a single slot when View triggers its workarounds
for the kwin issue that kwin hides panels when an activity
stops. In such case the view shadows are also redrawn.
2020-05-11 23:04:44 +03:00
Michail Vourlakos
7f2dc14880 fix Blur calculations during workaround
--there are cases that the Blurred area svg returns
a NULL mask() even though it should not. In such
cases the workaround takes place and for the workaround
the calculations have already taken place and we
do not need to reapply them because in that case
the blurred area moves out of the window.
2020-05-11 20:59:05 +03:00
Michail Vourlakos
30b6781fe0 disable offset slider when it can not be changed 2020-05-11 20:41:14 +03:00
Michail Vourlakos
9d7aabf998 fix Outline for Justified Floating Views 2020-05-11 20:32:43 +03:00
Michail Vourlakos
78a8770be8 clip Tasks Scrollable area
--this way the Tasks applet can not
hover and hijack signals from previous
added applets in the same Layout container
2020-05-11 20:12:23 +03:00
Michail Vourlakos
c8164597bb fix LayeredBackground calculations 2020-05-11 20:00:39 +03:00
Michail Vourlakos
93c6bbe9bd fix published screenEdgeMargin for panels
--in older version screenEdgeMargin == -1 was meant
that the screenEdgeMargin was disabled but this does not
need to be passed to View any more because variable
screenEdgeMarginDisabled is now passed directly
2020-05-11 19:47:30 +03:00
Michail Vourlakos
35bc8f3560 fix ConfigOverlay behavior/appearance 2020-05-11 18:45:53 +03:00
Michail Vourlakos
114828ad88 reduce GtkFrameExtents calls/triggers 2020-05-11 18:08:55 +03:00
Michail Vourlakos
3e17f718ee dont block hiding for #debugwindow#(s) 2020-05-11 17:44:30 +03:00
Michail Vourlakos
8b32be15b9 support GtkFrameExtents under X11
--this way to dock windows can now snap beautifully
with windows around them, very beautiful behavior!
That was pretty annoying in the past.
2020-05-11 17:31:51 +03:00
Michail Vourlakos
383e365f82 update availableScreenRegionWithCriteria
--the new implementation is much simpler and takes into
account all alignment types and view dock/panel modes
2020-05-11 11:27:22 +03:00
Michail Vourlakos
cb56a34800 fix debug message in Colorizer.Manager 2020-05-11 10:47:19 +03:00
Michail Vourlakos
39cc767eed drop panelUserSetAlignment not used anymore 2020-05-11 10:45:25 +03:00
Michail Vourlakos
57fd073e3f improve Blur responsiveness
--Blur area is not updated instantly any more
and does not make too many unnecesary calls.
A timer was added to orchestrate this in order
for the Effects area to be updated at maximum
20times/sec.
--Dont animate the view container at all cases, that
creates a much smoother experience for the user in
editing mode
2020-05-11 10:30:08 +03:00