1898 Commits (master)

Author SHA1 Message Date
Michail Vourlakos bf016527b2 fix more centered Justify calculations
Michail Vourlakos 4132982486 layouter:fix Justify mode centered items size
--fix case of icons-only plasma taskmanager in order to
provide a way to center it. The user can add icon-only
taskmanager in center of Justify mode and add also
two latte expanding spacers around it in order center it.

BUG:434198
Michail Vourlakos 7b817893f0 fix #53,calculations for hidden input in LeftEdge
Michail Vourlakos f6e8125804 fix background paddings based on custom Roundness
--when custom roundness is applied then background paddings
should always respect it independent of the plasma theme
default roundness

BUG:433887
Michail Vourlakos b940d4df72 limit placeholder length to not be very big
Michail Vourlakos 069bbfc41a provide valid placeholderlength for autofill dragged
Michail Vourlakos c8676170f9 fix offset changing for !compositing mode
--do not change offset faulty for !compositing mode
for all cases. In the past all Views in !compositing
mode they were working as behaveAsPlasmaPanels, this
is no more the case.

BUG:433887
Tranter Madi a1af4f6831 Delay floating gap hiding until mouse leaves
Michail Vourlakos 1f79546b39 fix indicators applet specific margin
Michail Vourlakos 83bdbced35 remove no needed variable
Michail Vourlakos 1805e11131 disable some debug messages
Michail Vourlakos 3185a70b9a more functionality for FastLayoutManager
--provide addAppletItem function
--provide reorderSplitters in Start and End
layouts when an applet is added in them and
the splitters are moving in faulty position
Michail Vourlakos 62efa97e61 plenty of fixes for FastLayoutManager
--remove also the deprecated javascript LayoutManager
Michail Vourlakos f9d400fa4a provide fastLayoutManager save options
Michail Vourlakos a5b19284b0 provide restoreOptions and userBlocksColoring
Michail Vourlakos 5c29dcc1e0 fastLayoutManager add lockedZoomApplets property
Michail Vourlakos 98e89d6e39 drop lastSpacer and fix addsplitters
Michail Vourlakos 177f8f9b39 add FastLayoutManager.addJustifySplittersInMain
Michail Vourlakos d8240528ee provide fastLayoutManager.destroyJustifySplitter()
Michail Vourlakos 302439706e improve layout manager updateindexes
Michail Vourlakos e36c8557d0 fixes for applets order during startup
--when an applet is not loaded properly is removed
from its registered order
--when an applet is loaded properly but is not found
in the registered order is at in the end of the stack
Michail Vourlakos b6112c2ab8 provide FastLayoutManager save() function
Michail Vourlakos f61846c6ae expose dndSpacer to fastLayoutManager
Michail Vourlakos c67a877556 fix Floating Gap SideBar case not accepting input
BUG:433820
Michail Vourlakos 393db028b7 provide access below screen margin for Docks
--using hidden VisibilityManager::floatingGapWindow
implementation in order to provide full access for
the area which is below the screen margin when the
user has disabled user interaction for that area

BUG:433820
Michail Vourlakos c25f9f7b54 remove some lastSpacer deprecated code
Michail Vourlakos c4099d4886 restructure appletItem creation
Michail Vourlakos db48a726bd remove deprecated code
Michail Vourlakos f44e7a1256 improve code names and style
--remove also deprecated code
Michail Vourlakos 2d812552b1 provide fastLayoutManager.joinLayoutsToMainLayout
Michail Vourlakos c3e6f3c04f remove deprecated layoutmanager apis
Michail Vourlakos 07d9d63338 new distinct MarginsAreaSeparator visual
Michail Vourlakos 5295dc9ae9 fixes for FastLayoutManager.insertAtCoordinates
--consider start and end layouts only when the alignment
is set to Justify
Michail Vourlakos 15cf2b2b5f replace more functions with fastLayoutManager
Michail Vourlakos d61d074f97 improve moving around an applet
--fast layout manager takes resposibility
for reparent procedures during moving an applet
at different position
Michail Vourlakos f1732be8c3 provide insertAtCoordinates at fastLayoutManager
Michail Vourlakos 90410426bd block autosize for Justify inConfigureAppletsMode
Michail Vourlakos f6df7a7df1 introduc fast layout manager for containment
Michail Vourlakos db99677f8c update FillApplets for dragged items on the view
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.
Michail Vourlakos ac8a88d700 improve AddItem visual
--make it Square with small roundness in order to
fit better at all cases
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
Michail Vourlakos 37721a2628 dont force margins for AutoFill applets
--this way the Tasks scrolling is not triggered
when no needed

BUG:433754
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
Michail Vourlakos 19b1a8c67d margins separator visual for inConfigure
Michail Vourlakos f3fd4a051e draw MarginsSeparator visual paddings
Michail Vourlakos d12d92ac68 Ability.BasicItem respect MarginsArea size
Michail Vourlakos 219c1b5e05 do not draw indicatorPaddings for PlasmaAutoFill
Michail Vourlakos 1e99b97def draw MarginsAreaSeparator visual paddings
Michail Vourlakos 2e70abb41a preserve applets length inMarginsArea
--inMarginsArea the applet length is still
calculated by metrics.iconSize
Michail Vourlakos 992f98389d dont roundToIconSize only for parabolic effect
Michail Vourlakos a72931fc41 identif Applet.ConstraintHints properly
Michail Vourlakos aaf562a207 not CanFillArea applets behabe as MarginsSeparators
Michail Vourlakos 69f466fd2f fix parabolic effect for MarginsAreaSeparators
Michail Vourlakos 87f42e4817 proper margins for CanFillThickness applets
Michail Vourlakos 35e9880ce7 provide AppletItem.canFillScreenEdge
Michail Vourlakos c3e8c5c8af expose Indexer.inMarginsArea through AbilityBridge
Michail Vourlakos a5ceb16e39 provide proper Metrics values for MarginsArea
Michail Vourlakos a67656c2f2 fixes and update elements margins for inMarginsArea
Michail Vourlakos 9abc937fa6 update applet margins for inMarginsArea
Michail Vourlakos 9929d1fa8e identify when applets are inside margins area
Michail Vourlakos fc34150d73 Indexer track marginsAreaSeparators
Michail Vourlakos 9e487b613b identify applet isMarginAreaSeparator
Michail Vourlakos ddb7dfdf5e use bool for floatingInternalGapIsForced
--do not use CheckBox three states in order
to make things simpler for the user
Michail Vourlakos 6550112525 hidden applets pass on parabolieffect messages
Michail Vourlakos 64c42dba7d improve ParabolicAreas center calculations
--this also fixes the bouncing animation in Tasks
applet when the user applies parabolic zoom on it
Michail Vourlakos 297b3a7d5b Revert "fixes for applets thin tooltips"
This reverts commit 4fc85ba8c5.
Michail Vourlakos f2dbafa5ef use Plasma.Hightlight for appelts visual indicator
Michail Vourlakos 4fc85ba8c5 fixes for applets thin tooltips
Michail Vourlakos 1d7e939356 isGraphicsSystemAccelerated at Environment Ability
Michail Vourlakos 518b6b3b7d discover icon for plasma notes applet
--this is needed in order to track background and
glow color for notes applet
Michail Vourlakos 95f86bed8f accept only odd numbers for iconSize and zoom
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
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
Michail Vourlakos a24f6b85c2 drop totally shrinkThickMargins option
--the new per applet margins make that property
no relevant anymore
Michail Vourlakos d8fe0e90d5 drop plasmoidName variable from containment
Michail Vourlakos 32a5282517 not show lock button for IndexerIsSupported applets
Michail Vourlakos d90f195069 do not colorize for IndexerSupported applets
Michail Vourlakos 7af60c802d provide isHidingBlocked through MyView Ability
Michail Vourlakos aa21ed90cb disable lenMargins at ALL IndexerSupported applets
Michail Vourlakos 32d2e75b0c fix configurationarea events sunk mechanism
Michail Vourlakos 9e38a8cc3f fixes in order for abilities to work property
Michail Vourlakos 665a287586 use same parabolic calculation in applet and tasks
Michail Vourlakos 86f73e4135 provide thin tooltips for applets in zoom==1
Michail Vourlakos 83a83075bd remove deprecated reference
Michail Vourlakos d074beff4e containment:remove latteapplet hard dependency
Michail Vourlakos d028db2f5a drop deprecated api
Michail Vourlakos e3d16ca81e appletItem:remove deprecated latteView assignment
Michail Vourlakos 59df189948 remove all deprecated thin tooltips implementation
Michail Vourlakos 17294eff20 provide full working ThinTooltips Ability
Michail Vourlakos 04ce943603 expose ThinTooltip Ability to applets and host
Michail Vourlakos 5c5879ac14 remove latte tasks specific code from containment
Michail Vourlakos b4a71bdbe3 fix applets hidden spacers calculations
--remove also some deprecated apis
Michail Vourlakos f0558d80b1 remove deprecated apis from containment
Michail Vourlakos 1b64cfed14 fix binding loop in Metrics Ability
--fix calculations also for Metrics.thickness.zoomedForItems
Michail Vourlakos ec4ed5ec08 expose badgesIn3DStyle through MyView Ability
Michail Vourlakos a62cebf06e expose containment.alignment through its Ability
Michail Vourlakos dfe439fead provide background opacity through MyView Ability
Michail Vourlakos f1ed85b481 fix items shadow opacity calcs through abilities
Michail Vourlakos 98d863de86 improvements for IndicatorLevel activation
Michail Vourlakos 173a3cf16b plasmoid:access screenGeometry from MyView Ability
Michail Vourlakos f09a6e0026 expose items shadow through MyView Ability
Michail Vourlakos 962db78bb9 containment:expose and use AbilityHost.Indicators
Michail Vourlakos 42592a0de1 simplify Ability.IndicatorItem names
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 ]
--- [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
Michail Vourlakos 28c20af008 fix loading events order of custom indicators
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.
Michail Vourlakos e9ecec47dc containment: more improvements for indicators api
Michail Vourlakos 3e2c59b5bb containment more simplifications for indicators
Michail Vourlakos 41e796c7a5 containment simplify indicators qml implementation
Michail Vourlakos 2365d4b569 provide Indicators ability items
Michail Vourlakos cfb382002b update containmentActions properly when recreating
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
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
Michail Vourlakos 3680862138 improve dropping new plasmoids behavior
Michail Vourlakos 61d091fdda remove containment drag resistaner
Michail Vourlakos f37fde5824 simplify dragging architecture
--simpler implementation both for plasmoid
mousehandler and containment droparea
Michail Vourlakos cadae33a39 drop viewLayout property from everywhere
Michail Vourlakos b58b03891a plasmoid:decouple Launcher ability from latteView
Michail Vourlakos 50a1ee1db8 update input mask even for !normalState
Michail Vourlakos 934f5c163e expose launchers through relevant ability
Michail Vourlakos abd3678e1f expose myView.containmentActions
Michail Vourlakos 10873a2295 activate properly mirror screen gap for panels
Michail Vourlakos 9dcbb90aba disable applet hidden flag inConfigureAppletsMode
Michail Vourlakos 6e3c35510b move updateMaskArea() calls into VisibilityManager
Michail Vourlakos a5626c1e58 improve how updateMaskArea function is triggered
Michail Vourlakos 4ee4f875a5 remove deprecated code
Michail Vourlakos ad3727ce15 drop containment.inSlidingOut exposure
--use myView.inSlidingOut instead
Michail Vourlakos 291f86710f drop containment inSlidingIn exposure
Michail Vourlakos f6747a5f1c drop containment.isReady property
Michail Vourlakos 0a9899491e remove dockIsHidden property
--use instead myView.isHidden
Michail Vourlakos 943a3d07c9 update-rename to myView.isShownFully
Michail Vourlakos e9cc81b03a drop isHalfShown for myView.isShownPartially
--provide also myView.isShownFully
Michail Vourlakos 7a38642012 provide myView different shown states
Michail Vourlakos 16f846c72f rename to myView.alignment
Michail Vourlakos 25335bc025 expose MyView to applets
Michail Vourlakos c855d8f0b6 fix binding loop for behaveAsPlasmaPanel
Michail Vourlakos 8bf428becb fix warnings
Michail Vourlakos 2ed1bedd5f drop deprecated inForcedHiding
Michail Vourlakos 1ec0b924d4 rename to updateIsEnabled for Bindings
Michail Vourlakos 145a4b222c drop deprecated inSlidingAnimation
Michail Vourlakos a9bceda4be rename to inClientSideScreenEdgeSliding
Michail Vourlakos c859f17cab rename to isFloatingInClientSide
Michail Vourlakos 5c03022847 update naming to inNormalState
Michail Vourlakos 397e1324e9 update name to view.inRelocationAnimation
Michail Vourlakos 0e48caa5d0 rename to inForcedHiding
Michail Vourlakos cc81a0ae46 rename background.isGreaterThanItemThickness
Michail Vourlakos f6ddf52148 rename to inClientSideFloating
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
Michail Vourlakos 2c18052ad5 improve internalsplitters behavior when dragging
Michail Vourlakos 6bcef91073 fix typos
Michail Vourlakos b48686229a enable parabolic area for hidden applets
--this way parabolic effect messages are forwarded properly
to surrounding applets
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.
Michail Vourlakos 33d08c92a0 improve internal splitters length computations
Michail Vourlakos 69df6400f2 rename launchersignals to syncedLaunchers
--that is more appropriate name for synced
launchers latte launchers handler
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
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.
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
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
Michail Vourlakos 33ad9069e0 make slide in/outs relevant to animations speed
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
Michail Vourlakos f8cce7acfa fix normalThickness value
Michail Vourlakos 919b0cbf8c rename view property
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.
Michail Vourlakos 72d6383401 drop no needed RootMouseArea
Michail Vourlakos 52f09917fd drop layoutsContainer abilities implementation
--this code is not needed any more. HostAbilities
are pretty capable to handle such code.
Michail Vourlakos 5fbabaf58f abilities: drop parabolic.lastindex property
--new approach is much cleaner to use
Michail Vourlakos e9d5ae1ace remove container parabolic.lastIndex requirement
Michail Vourlakos 0e002567dc drop LayoutsContainer.restoreZoomIsBlocked
--Parabolic Host Ability is quite capable to handle
this properly
Michail Vourlakos 56cf1535d2 improve internal view splitters drawing
Michail Vourlakos 507d673af4 fix binding loop
Michail Vourlakos 77520f7407 improve how fillRealApplets are counted
--a new parameter to count only fillApplets
that are not splitters was needed
Michail Vourlakos 35b757f508 internal splitter dont show debug visual indicator
Michail Vourlakos 3a85a81bd7 fix paddings visuals for left edge
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
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
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.
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
Michail Vourlakos 87f29197bd expose new properties to applets
-paddingThickness
-marginLength
-paddingLength
--are now provided through LatteBridge to applets
Michail Vourlakos 5a73842be9 mprove paddings coloring
Michail Vourlakos 347c5681c6 locate propertly the Internal View splitter
Michail Vourlakos 1df040a68d provide new beautiful Justify splitters
Michail Vourlakos f1c0dce495 fix check of Layouter fillApplets calculations
Michail Vourlakos bc6e3cefb2 plenty of fixes for Justify splitters
Michail Vourlakos c234d0e0b6 enable padding visuals only zoom==1
Michail Vourlakos 6a6e47c657 plenty of fixes for moving/dragging applets
Michail Vourlakos 8959e58148 provide generic code for fill applets calculations
Michail Vourlakos 50aec78526 position properly paddings visuals
Michail Vourlakos 50bf618942 drag/move applets from outside View
Michail Vourlakos 2fd5f51e8d fixes for justify alignment arrangement
Michail Vourlakos 2e7dcb5428 refactor rely on c++ to provide justify alignment
--c++ takes the burden to validate the Justify alignment
Michail Vourlakos 968a80f858 show applet paddings inConfigureApplets mode
Michail Vourlakos 55a6455399 support CanFillArea applets
Michail Vourlakos 17f4a90ed7 hide EventsSinkOriginArea when not needed
Michail Vourlakos fb1aaefd34 Revert "hide sinkareas when no needed"
This reverts commit 168502673b.
Michail Vourlakos 168502673b hide sinkareas when no needed
Michail Vourlakos f63bc30274 remove workaround activating applet from neutral
Michail Vourlakos c7fedca8b6 remove margins from SinkAreas
Michail Vourlakos 431ce6c6fa enable EventsSink with parabolic effect
--add also some comments/information about
EventsSink qml implementation
Michail Vourlakos 574135e084 Welcome the all new EventsSink infrastructure
--each applet has now its own Sunk events to handle,
and as such each applet can now have different paddings
and that does not create any issues or missing events