1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-13 05:17:48 +03:00
Commit Graph

1819 Commits

Author SHA1 Message Date
Michail Vourlakos
2d812552b1 provide fastLayoutManager.joinLayoutsToMainLayout 2021-03-04 10:50:20 +02:00
Michail Vourlakos
c3e6f3c04f remove deprecated layoutmanager apis 2021-03-04 10:37:10 +02:00
Michail Vourlakos
07d9d63338 new distinct MarginsAreaSeparator visual 2021-03-04 00:37:29 +02:00
Michail Vourlakos
5295dc9ae9 fixes for FastLayoutManager.insertAtCoordinates
--consider start and end layouts only when the alignment
is set to Justify
2021-03-04 00:06:27 +02:00
Michail Vourlakos
15cf2b2b5f replace more functions with fastLayoutManager 2021-03-03 20:49:38 +02:00
Michail Vourlakos
d61d074f97 improve moving around an applet
--fast layout manager takes resposibility
for reparent procedures during moving an applet
at different position
2021-03-03 20:28:46 +02:00
Michail Vourlakos
f1732be8c3 provide insertAtCoordinates at fastLayoutManager 2021-03-03 20:17:58 +02:00
Michail Vourlakos
90410426bd block autosize for Justify inConfigureAppletsMode 2021-03-02 19:37:39 +02:00
Michail Vourlakos
f6df7a7df1 introduc fast layout manager for containment 2021-03-02 19:33:24 +02:00
Michail Vourlakos
db99677f8c update FillApplets for dragged items on the view 2021-03-01 19:37:30 +02:00
Michail Vourlakos
5d1bf42709 fix fillcalculations at Layouter.TwoSteps codepath
--in Layouter two steps codepath at the end ALL fill
applets at Start/End layouts should adjust their size
in order to not overlap with fill applets in Main layout.
These calculations were broken because they were not
applied properly.
2021-03-01 01:48:52 +02:00
Michail Vourlakos
ac8a88d700 improve AddItem visual
--make it Square with small roundness in order to
fit better at all cases
2021-03-01 01:17:12 +02:00
Michail Vourlakos
b0cfb738bb provide all available space to fillApplets
--in case there is a fill applet then give it all
remaining free space at all cases

BUG:433754
2021-03-01 01:04:07 +02:00
Michail Vourlakos
37721a2628 dont force margins for AutoFill applets
--this way the Tasks scrolling is not triggered
when no needed

BUG:433754
2021-02-28 23:12:10 +02:00
Michail Vourlakos
d51f2d99a3 context menus add more sections
--move elements around in order for the user to find
them at the same positions for all cases independent
if the user triggers context menu from applets or
empty containment areas
2021-02-28 18:26:55 +02:00
Michail Vourlakos
19b1a8c67d margins separator visual for inConfigure 2021-02-27 14:37:23 +02:00
Michail Vourlakos
f3fd4a051e draw MarginsSeparator visual paddings 2021-02-27 14:12:30 +02:00
Michail Vourlakos
d12d92ac68 Ability.BasicItem respect MarginsArea size 2021-02-27 13:57:38 +02:00
Michail Vourlakos
219c1b5e05 do not draw indicatorPaddings for PlasmaAutoFill 2021-02-27 13:18:58 +02:00
Michail Vourlakos
1e99b97def draw MarginsAreaSeparator visual paddings 2021-02-27 13:00:47 +02:00
Michail Vourlakos
2e70abb41a preserve applets length inMarginsArea
--inMarginsArea the applet length is still
calculated by metrics.iconSize
2021-02-27 12:51:12 +02:00
Michail Vourlakos
992f98389d dont roundToIconSize only for parabolic effect 2021-02-27 12:18:35 +02:00
Michail Vourlakos
a72931fc41 identif Applet.ConstraintHints properly 2021-02-27 11:49:50 +02:00
Michail Vourlakos
aaf562a207 not CanFillArea applets behabe as MarginsSeparators 2021-02-27 11:22:59 +02:00
Michail Vourlakos
69f466fd2f fix parabolic effect for MarginsAreaSeparators 2021-02-27 10:38:25 +02:00
Michail Vourlakos
87f42e4817 proper margins for CanFillThickness applets 2021-02-27 10:25:54 +02:00
Michail Vourlakos
35e9880ce7 provide AppletItem.canFillScreenEdge 2021-02-27 10:14:05 +02:00
Michail Vourlakos
c3e8c5c8af expose Indexer.inMarginsArea through AbilityBridge 2021-02-27 10:01:04 +02:00
Michail Vourlakos
a5ceb16e39 provide proper Metrics values for MarginsArea 2021-02-27 09:57:05 +02:00
Michail Vourlakos
a67656c2f2 fixes and update elements margins for inMarginsArea 2021-02-26 19:11:18 +02:00
Michail Vourlakos
9abc937fa6 update applet margins for inMarginsArea 2021-02-26 18:58:49 +02:00
Michail Vourlakos
9929d1fa8e identify when applets are inside margins area 2021-02-26 17:36:17 +02:00
Michail Vourlakos
fc34150d73 Indexer track marginsAreaSeparators 2021-02-26 17:23:16 +02:00
Michail Vourlakos
9e487b613b identify applet isMarginAreaSeparator 2021-02-26 17:04:49 +02:00
Michail Vourlakos
ddb7dfdf5e use bool for floatingInternalGapIsForced
--do not use CheckBox three states in order
to make things simpler for the user
2021-02-21 12:26:16 +02:00
Michail Vourlakos
6550112525 hidden applets pass on parabolieffect messages 2021-02-14 17:13:06 +02:00
Michail Vourlakos
64c42dba7d improve ParabolicAreas center calculations
--this also fixes the bouncing animation in Tasks
applet when the user applies parabolic zoom on it
2021-02-09 18:43:34 +02:00
Michail Vourlakos
297b3a7d5b Revert "fixes for applets thin tooltips"
This reverts commit 4fc85ba8c5.
2021-02-06 13:13:07 +02:00
Michail Vourlakos
f2dbafa5ef use Plasma.Hightlight for appelts visual indicator 2021-02-06 12:53:52 +02:00
Michail Vourlakos
4fc85ba8c5 fixes for applets thin tooltips 2021-02-06 12:45:12 +02:00
Michail Vourlakos
1d7e939356 isGraphicsSystemAccelerated at Environment Ability 2021-02-04 18:21:12 +02:00
Michail Vourlakos
518b6b3b7d discover icon for plasma notes applet
--this is needed in order to track background and
glow color for notes applet
2021-02-03 20:56:07 +02:00
Michail Vourlakos
95f86bed8f accept only odd numbers for iconSize and zoom 2021-02-03 19:31:19 +02:00
Michail Vourlakos
e7bd122fab improvements for applet items
--never overlay icons any more for applets
--applet shadows are now below the applet
--applet icon colors are discovered through
LatteCore.IconItem
2021-02-03 19:20:13 +02:00
Michail Vourlakos
bb998ea90c do not cache tasks animations
--at the same time the maximum parabolic zoom factor
is always calculated based on the fact to provide
maximum icon size that is an integer value
2021-02-03 18:04:35 +02:00
Michail Vourlakos
a24f6b85c2 drop totally shrinkThickMargins option
--the new per applet margins make that property
no relevant anymore
2021-02-02 18:57:20 +02:00
Michail Vourlakos
d8fe0e90d5 drop plasmoidName variable from containment 2021-02-01 17:37:35 +02:00
Michail Vourlakos
32a5282517 not show lock button for IndexerIsSupported applets 2021-02-01 17:24:28 +02:00
Michail Vourlakos
d90f195069 do not colorize for IndexerSupported applets 2021-02-01 17:20:37 +02:00
Michail Vourlakos
7af60c802d provide isHidingBlocked through MyView Ability 2021-01-31 23:05:54 +02:00
Michail Vourlakos
aa21ed90cb disable lenMargins at ALL IndexerSupported applets 2021-01-31 18:44:10 +02:00
Michail Vourlakos
32d2e75b0c fix configurationarea events sunk mechanism 2021-01-31 18:35:07 +02:00
Michail Vourlakos
9e38a8cc3f fixes in order for abilities to work property 2021-01-31 16:02:13 +02:00
Michail Vourlakos
665a287586 use same parabolic calculation in applet and tasks 2021-01-31 08:49:46 +02:00
Michail Vourlakos
86f73e4135 provide thin tooltips for applets in zoom==1 2021-01-30 19:15:45 +02:00
Michail Vourlakos
83a83075bd remove deprecated reference 2021-01-30 09:42:00 +02:00
Michail Vourlakos
d074beff4e containment:remove latteapplet hard dependency 2021-01-30 09:38:00 +02:00
Michail Vourlakos
d028db2f5a drop deprecated api 2021-01-30 09:31:41 +02:00
Michail Vourlakos
e3d16ca81e appletItem:remove deprecated latteView assignment 2021-01-29 20:09:19 +02:00
Michail Vourlakos
59df189948 remove all deprecated thin tooltips implementation 2021-01-29 20:06:08 +02:00
Michail Vourlakos
17294eff20 provide full working ThinTooltips Ability 2021-01-29 19:57:10 +02:00
Michail Vourlakos
04ce943603 expose ThinTooltip Ability to applets and host 2021-01-29 19:37:31 +02:00
Michail Vourlakos
5c5879ac14 remove latte tasks specific code from containment 2021-01-29 00:29:42 +02:00
Michail Vourlakos
b4a71bdbe3 fix applets hidden spacers calculations
--remove also some deprecated apis
2021-01-28 23:56:25 +02:00
Michail Vourlakos
f0558d80b1 remove deprecated apis from containment 2021-01-28 22:08:38 +02:00
Michail Vourlakos
1b64cfed14 fix binding loop in Metrics Ability
--fix calculations also for Metrics.thickness.zoomedForItems
2021-01-28 21:00:51 +02:00
Michail Vourlakos
ec4ed5ec08 expose badgesIn3DStyle through MyView Ability 2021-01-28 20:20:51 +02:00
Michail Vourlakos
a62cebf06e expose containment.alignment through its Ability 2021-01-28 20:12:10 +02:00
Michail Vourlakos
dfe439fead provide background opacity through MyView Ability 2021-01-28 00:35:19 +02:00
Michail Vourlakos
f1ed85b481 fix items shadow opacity calcs through abilities 2021-01-27 20:36:24 +02:00
Michail Vourlakos
98d863de86 improvements for IndicatorLevel activation 2021-01-27 20:36:24 +02:00
Michail Vourlakos
173a3cf16b plasmoid:access screenGeometry from MyView Ability 2021-01-27 20:36:24 +02:00
Michail Vourlakos
f09a6e0026 expose items shadow through MyView Ability 2021-01-27 20:36:24 +02:00
Michail Vourlakos
962db78bb9 containment:expose and use AbilityHost.Indicators 2021-01-26 19:23:56 +02:00
Michail Vourlakos
42592a0de1 simplify Ability.IndicatorItem names 2021-01-26 18:46:41 +02:00
Michail Vourlakos
66361652ef floating,support two different struts thickness
- Hide Thickness Screen Gap scenario provides two different struts thicknesses.
--- [1] The first struts thickness is when there is no maximized window and is such case
---     the view is behaving as in normal AlwaysVisible visibility mode. This is very useful
---     when users tile windows. [bug #432122]
--- [2] The second struts thickness is when there is a maximized window present and in such case
---     the view is hiding all of its screen edges. It is used mostly when the view is wanted
---     to act as a window titlebar.

BUG:432122
2021-01-26 00:46:58 +02:00
Michail Vourlakos
28c20af008 fix loading events order of custom indicators 2021-01-25 20:42:56 +02:00
Michail Vourlakos
50c9eed11b upgrade plasmoid to IndicatorLevet items
--plasmoid is now using the IndicatorLevel Ability
Item cleanly. Now everything is ready in order
to provide the full Indicators Ability.
2021-01-25 20:42:56 +02:00
Michail Vourlakos
e9ecec47dc containment: more improvements for indicators api 2021-01-25 20:42:56 +02:00
Michail Vourlakos
3e2c59b5bb containment more simplifications for indicators 2021-01-25 20:42:56 +02:00
Michail Vourlakos
41e796c7a5 containment simplify indicators qml implementation 2021-01-25 20:42:56 +02:00
Michail Vourlakos
2365d4b569 provide Indicators ability items 2021-01-25 20:42:56 +02:00
Michail Vourlakos
cfb382002b update containmentActions properly when recreating 2021-01-23 23:37:13 +02:00
Michail Vourlakos
39ad54f9bb provide visual indicator for multiple tasks
--when the user changes Tasks tab settings between
different applets, the selected applet is providing an
animation
2021-01-22 21:58:37 +02:00
Michail Vourlakos
04b6909e66 decouple dropping launchers in applet/containment
--all dropping launchers infrastructure has now decoupled
and can be used from any other applet in other to gain
such privileges
2021-01-22 21:17:41 +02:00
Michail Vourlakos
3680862138 improve dropping new plasmoids behavior 2021-01-22 19:27:57 +02:00
Michail Vourlakos
61d091fdda remove containment drag resistaner 2021-01-22 19:17:45 +02:00
Michail Vourlakos
f37fde5824 simplify dragging architecture
--simpler implementation both for plasmoid
mousehandler and containment droparea
2021-01-22 19:09:12 +02:00
Michail Vourlakos
cadae33a39 drop viewLayout property from everywhere 2021-01-21 20:04:06 +02:00
Michail Vourlakos
b58b03891a plasmoid:decouple Launcher ability from latteView 2021-01-21 19:05:07 +02:00
Michail Vourlakos
50a1ee1db8 update input mask even for !normalState 2021-01-21 18:31:07 +02:00
Michail Vourlakos
934f5c163e expose launchers through relevant ability 2021-01-21 18:28:25 +02:00
Michail Vourlakos
abd3678e1f expose myView.containmentActions 2021-01-21 18:15:50 +02:00
Michail Vourlakos
10873a2295 activate properly mirror screen gap for panels 2021-01-21 18:07:16 +02:00
Michail Vourlakos
9dcbb90aba disable applet hidden flag inConfigureAppletsMode 2021-01-21 15:33:04 +02:00
Michail Vourlakos
6e3c35510b move updateMaskArea() calls into VisibilityManager 2021-01-21 00:25:54 +02:00
Michail Vourlakos
a5626c1e58 improve how updateMaskArea function is triggered 2021-01-21 00:18:07 +02:00
Michail Vourlakos
4ee4f875a5 remove deprecated code 2021-01-21 00:10:14 +02:00
Michail Vourlakos
ad3727ce15 drop containment.inSlidingOut exposure
--use myView.inSlidingOut instead
2021-01-20 23:42:16 +02:00
Michail Vourlakos
291f86710f drop containment inSlidingIn exposure 2021-01-20 23:40:47 +02:00
Michail Vourlakos
f6747a5f1c drop containment.isReady property 2021-01-20 23:35:11 +02:00
Michail Vourlakos
0a9899491e remove dockIsHidden property
--use instead myView.isHidden
2021-01-20 23:25:15 +02:00
Michail Vourlakos
943a3d07c9 update-rename to myView.isShownFully 2021-01-20 23:14:25 +02:00
Michail Vourlakos
e9cc81b03a drop isHalfShown for myView.isShownPartially
--provide also myView.isShownFully
2021-01-20 20:51:25 +02:00
Michail Vourlakos
7a38642012 provide myView different shown states 2021-01-20 20:35:53 +02:00
Michail Vourlakos
16f846c72f rename to myView.alignment 2021-01-20 20:25:43 +02:00
Michail Vourlakos
25335bc025 expose MyView to applets 2021-01-20 20:04:19 +02:00
Michail Vourlakos
c855d8f0b6 fix binding loop for behaveAsPlasmaPanel 2021-01-19 21:56:07 +02:00
Michail Vourlakos
8bf428becb fix warnings 2021-01-19 21:43:31 +02:00
Michail Vourlakos
2ed1bedd5f drop deprecated inForcedHiding 2021-01-19 21:41:20 +02:00
Michail Vourlakos
1ec0b924d4 rename to updateIsEnabled for Bindings 2021-01-19 21:35:28 +02:00
Michail Vourlakos
145a4b222c drop deprecated inSlidingAnimation 2021-01-19 21:29:35 +02:00
Michail Vourlakos
a9bceda4be rename to inClientSideScreenEdgeSliding 2021-01-19 21:27:28 +02:00
Michail Vourlakos
c859f17cab rename to isFloatingInClientSide 2021-01-19 21:24:53 +02:00
Michail Vourlakos
5c03022847 update naming to inNormalState 2021-01-19 21:23:24 +02:00
Michail Vourlakos
397e1324e9 update name to view.inRelocationAnimation 2021-01-19 21:14:09 +02:00
Michail Vourlakos
0e48caa5d0 rename to inForcedHiding 2021-01-19 21:07:23 +02:00
Michail Vourlakos
cc81a0ae46 rename background.isGreaterThanItemThickness 2021-01-19 21:04:25 +02:00
Michail Vourlakos
f6ddf52148 rename to inClientSideFloating 2021-01-19 20:58:25 +02:00
Michail Vourlakos
c456599881 add option to mirror floating gap
--when a maximized window is present the
floating gap is mirrored above the dock or
panel in order to provide a much better
visual appearance
2021-01-17 19:50:39 +02:00
Michail Vourlakos
2c18052ad5 improve internalsplitters behavior when dragging 2021-01-17 09:38:53 +02:00
Michail Vourlakos
6bcef91073 fix typos 2021-01-17 09:25:10 +02:00
Michail Vourlakos
b48686229a enable parabolic area for hidden applets
--this way parabolic effect messages are forwarded properly
to surrounding applets
2021-01-16 23:02:09 +02:00
Michail Vourlakos
81e4b19b59 improve SunkEvents implementation
--each origin mouse area is now informin
the SunkEvents handler for the relevant
origin areas at the same time and this way
there is no events breakage when changing
from one sunked event origin area to another
--the sunked events origin and destination areas
are now released only when the event is NOT inside
any origin area or any destination. This way
no events breakage is appearing when changing from
destination area to origin area and vice versa.
2021-01-15 22:29:00 +02:00
Michail Vourlakos
33d08c92a0 improve internal splitters length computations 2021-01-14 23:46:25 +02:00
Michail Vourlakos
69df6400f2 rename launchersignals to syncedLaunchers
--that is more appropriate name for synced
launchers latte launchers handler
2021-01-14 20:21:12 +02:00
Michail Vourlakos
1ca43ee13f use Launchers Ability for syncing
--move internal synced launchers infrastructure
in order to use Launchers Ability. Things
this way will become much cleaner and
at the same reusable and maintainable
2021-01-13 22:53:55 +02:00
Michail Vourlakos
3085e6aa3d expose norma edit mode for Latte plasmoid
--Latte Tasks plasmoid is the only eaxception from
applets because it can be edited during the normal
Latte View editing scenario through Tasks tab.
All other applets need to open their settings window.
2021-01-09 16:10:09 +02:00
Michail Vourlakos
069455be4e provide struts based on screen gap
--following new norms and styles the struts
applying for Always Visible they now take into account
the screen edge margin and apply the same margin
also at their head thickness margin. If there is
much negative user feedback this might be reverted.

BUG:419731
2021-01-08 00:33:28 +02:00
Michail Vourlakos
bb9564e11f fix input mask area length calculations
--effects area is not relevant when the dock is
hidden, in such case using localGeometry is a much
better approach and more accurate.

BUG:431273
2021-01-07 23:18:59 +02:00
Michail Vourlakos
33ad9069e0 make slide in/outs relevant to animations speed 2021-01-07 18:14:54 +02:00
Michail Vourlakos
9d3ebca4af provide stable struts thickness
--when a floating view is hiding its screen gap
there is no reason for struts to be added
during that phase. Published struts could be
the final expected window position in that case.

BUG:431255
2021-01-07 15:02:16 +02:00
Michail Vourlakos
f8cce7acfa fix normalThickness value 2021-01-06 22:59:05 +02:00
Michail Vourlakos
919b0cbf8c rename view property 2021-01-06 22:02:54 +02:00
Michail Vourlakos
1181fc472c dont update GTK_FRAME_EXTENTS for floating state
--dont update when a floating Dock is hiding its screen
edge for a maximized window.
2021-01-06 21:29:34 +02:00
Michail Vourlakos
72d6383401 drop no needed RootMouseArea 2021-01-05 21:24:58 +02:00
Michail Vourlakos
52f09917fd drop layoutsContainer abilities implementation
--this code is not needed any more. HostAbilities
are pretty capable to handle such code.
2021-01-05 21:16:51 +02:00
Michail Vourlakos
5fbabaf58f abilities: drop parabolic.lastindex property
--new approach is much cleaner to use
2021-01-05 21:07:47 +02:00
Michail Vourlakos
e9d5ae1ace remove container parabolic.lastIndex requirement 2021-01-05 20:48:30 +02:00
Michail Vourlakos
0e002567dc drop LayoutsContainer.restoreZoomIsBlocked
--Parabolic Host Ability is quite capable to handle
this properly
2021-01-05 20:09:49 +02:00
Michail Vourlakos
56cf1535d2 improve internal view splitters drawing 2021-01-03 19:20:19 +02:00
Michail Vourlakos
507d673af4 fix binding loop 2021-01-02 21:41:49 +02:00
Michail Vourlakos
77520f7407 improve how fillRealApplets are counted
--a new parameter to count only fillApplets
that are not splitters was needed
2021-01-02 21:25:50 +02:00
Michail Vourlakos
35b757f508 internal splitter dont show debug visual indicator 2021-01-02 20:29:07 +02:00
Michail Vourlakos
3a85a81bd7 fix paddings visuals for left edge 2021-01-02 19:25:55 +02:00
Michail Vourlakos
640e9b3802 fix starup thickness for floating dock
--when starting Latte and a floating dock
has chosen to hide its screen gap for maximized
windows, in that case was not updating its
window thickness properly
2021-01-01 16:28:18 +02:00
Michail Vourlakos
da1df5bc0c parabolic:improve clearZoom responsiveness
--fix also a case the even though mouse was out of the
view the zoomed items where not restoring
2021-01-01 16:16:26 +02:00
Michail Vourlakos
e102fcf792 parabolic:provide better rapid movement indicator
--each item is now informing Parabolic ability about its
visible index when the mouser enters first time its area.
This is enough for parabolic effect to identify correctly
when there is mouse rapid movement.
2021-01-01 15:30:47 +02:00
Michail Vourlakos
04d9cb7cb0 extend ParabolicAreas region
--this way we dont miss any mouse event consercing
the parabolic effect. This is a great improvement
in parabolic effect responsiveness
2021-01-01 13:39:03 +02:00
Michail Vourlakos
87f29197bd expose new properties to applets
-paddingThickness
-marginLength
-paddingLength
--are now provided through LatteBridge to applets
2021-01-01 12:49:43 +02:00