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

1412 Commits

Author SHA1 Message Date
Michail Vourlakos
368b4b8441 references improvements in container qml 2020-04-26 15:07:22 +03:00
Michail Vourlakos
c43dd6d003 update root references to Abilities 2020-04-26 14:39:17 +03:00
Michail Vourlakos
152a467878 refactor: Tasks applet support Animations ability 2020-04-26 14:31:40 +03:00
Michail Vourlakos
732c7821f1 support property AbilityDefinition.Animations
--use qml for this and it is much better than c++
2020-04-26 02:49:28 +03:00
Michail Vourlakos
529efe548a abilities animations definition working better 2020-04-25 22:28:50 +03:00
Michail Vourlakos
82f007e4bf provide an AbilityDefinition for Animations
--this way both containers and applets can use
the same infrastructure and properties
2020-04-25 21:19:09 +03:00
Michail Vourlakos
b1f5e169ee provide new abilities imports structure 2020-04-25 19:30:17 +03:00
Michail Vourlakos
33aaa85796 improve AutoSizer animations signaling 2020-04-25 18:11:49 +03:00
Michail Vourlakos
6a558df10b refactor:add Containment.AnimationsAbility
--change/update the animations api in order to
be understandable and easier to maintain/debug
2020-04-25 14:27:44 +03:00
Michail Vourlakos
deb9c244ff improve/support BackgroundTracker in app
--the new implementation is much improved and easy
to support. No workaround and direct use of the
libraries
2020-04-24 17:30:30 +03:00
Michail Vourlakos
790e0af406 add Containment.ThemeColorsGroup enum 2020-04-24 13:50:08 +03:00
Michail Vourlakos
1bc14b5d7a add Containment.ThemeColorsGroup 2020-04-24 13:40:55 +03:00
Michail Vourlakos
35d09789c9 add Containment.ShadowColorGroup qml enum 2020-04-24 13:31:49 +03:00
Michail Vourlakos
7ac648983f upgrade applet shadows variable for cotainment
--replace deprecated configuration.shadows with
configuration.appletShadowsEnabled
2020-04-24 13:22:55 +03:00
Michail Vourlakos
39fbf728d5 rename actions for LatteContainment.scrollActions 2020-04-24 12:47:04 +03:00
Michail Vourlakos
9c57f9db4b introduce AppTypes.MouseSensitivity 2020-04-24 10:08:13 +03:00
Michail Vourlakos
9919952239 bring back Settings::inAdvancedMode
--ViewSettings::complexityLevel is not needed
any more... View::Settings will keep only two
states, Basic and Advanced mode
2020-04-23 21:57:17 +03:00
Michail Vourlakos
a4e9b51b2b support LatteContaiment.ActiveWindowFilterGroup 2020-04-23 20:00:53 +03:00
Michail Vourlakos
13a9522a16 rename abilities imports to distiguish purpose
--an better plural naming was chosen in order for
for consumers to distiguish abilities purpose. Abilities
are designed to be use by multiple applets and
containers
2020-04-23 18:55:40 +03:00
Michail Vourlakos
ac99708315 MAJOR MAJOR:splitting types to their own component
--improve types and references and add types splitted
at better places. So now we have
 - LatteCore.Types that are global for all components
 - LatteTasks.Types that are private to tasks plasmoid
 - LatteContainment.Types that are private to latte
containment
2020-04-23 18:46:24 +03:00
Michail Vourlakos
3bee600a98 introduce AppletAbilities as qml library
--introduce AppletAbilities qml library which is going
to be available to all applets to use it freely. In the stage
all components will be qml-only but in the future when
any of the components have been stabilized for their
apis then many of them could gain c++ implementation
2020-04-20 13:42:19 +03:00
Michail Vourlakos
810dd5a1b4 publish Abilities qml library
--add AppletRequirements in Abilities
qml library
2020-04-20 12:41:20 +03:00
Michail Vourlakos
6833a9b5cb expose an object for AppletRequirements 2020-04-20 12:19:11 +03:00
Michail Vourlakos
214447b12f make AutoItemSizer an Ability called AutoSize 2020-04-20 11:45:02 +03:00
Michail Vourlakos
505f63b3ad update plasmoid Containment to Container 2020-04-20 11:45:02 +03:00
Michail Vourlakos
a72c30f763 replace containmentAb name with container 2020-04-20 11:45:02 +03:00
l10n daemon script
d0bf13aa72 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-04-20 05:38:30 +02:00
Michail Vourlakos
42c44c20da Abilities:Move Tasks iconSizes to ContainmentAb 2020-04-18 19:53:39 +03:00
Michail Vourlakos
0db7b29a2d Abilities:move iconSize to containmentAbility 2020-04-18 19:24:21 +03:00
Michail Vourlakos
b69af88ebc refactor:move irrelevant WindowSystem properties
--irrelevant WindowSystem properties are now moved
to LatteCore.Environment that fit better semantically
2020-04-18 13:55:06 +03:00
Michail Vourlakos
5073939335 REFACTOR:split up and refactor liblatte2 and types
--use a more logical organization for types. LibLatte2
is split to become LatteCore library and Latte types
are now moved to application level. The Latte Types will
be split even more... Tasks-Only related types will
become Latte.Tasks types

BUG:420210
2020-04-18 13:39:45 +03:00
Michail Vourlakos
5fdcef81af TASKS:Migrate to multiple Tasks architecture
--First steps in order to support mulitple Tasks
applets in the same dock and panel.
--Step1: migrate values from Containment to Task
applet.
--Step2: deprecate Task applet options that are
found in containment
--Step3: provide multiple dynamic Tasks tabs in
settings
2020-04-18 13:39:41 +03:00
Michail Vourlakos
0da74fb3ce Tasks:track multiple Tasks applets
--create an infrastructure in order to be able
to adjust and configure multiple Tasks plasmoids
2020-04-18 13:39:41 +03:00
Michail Vourlakos
7f4ff70950 upgrader:Alignment instead of PanelPosition
--ContainmentQuickItem is now using alignment
in its configuration
2020-04-16 11:54:56 +03:00
Michail Vourlakos
11afc1db6d improve default values for floating views 2020-04-15 18:34:31 +03:00
Michail Vourlakos
36aae05bc8 position correctly applets thin title tooltips
--consider also the screenEdgeMargin
2020-04-15 15:06:06 +03:00
Michail Vourlakos
aebbff4dfd improve applets badges location 2020-04-11 18:23:39 +03:00
Michail Vourlakos
25d061bb8f introduce Environment in Latte library
--as first value provide the separator length
that needs to be applied for all separators
2020-04-11 15:32:07 +03:00
Michail Vourlakos
8b41314b2f enable scrolling activation only for expandable
--systrays/internal containments are blocked from
this
2020-04-10 12:31:31 +03:00
Michail Vourlakos
0046c904d1 View:Move expanded applets code to View::Interface 2020-04-08 15:22:38 +03:00
Michail Vourlakos
fa65462dea move View::deactivateApplets to extendedInterface 2020-04-08 14:39:12 +03:00
Michail Vourlakos
c333e11cdb update applets expanded tracking on every startup
--even when the views is recreated
2020-04-05 21:06:13 +03:00
Michail Vourlakos
0625ad1423 fix edit visual style in !compositing 2020-04-05 19:39:41 +03:00
Michail Vourlakos
ef41f17ef3 fix minimumLength for !compositing 2020-04-05 19:26:02 +03:00
Michail Vourlakos
6034073dd0 fix floating editMode for !compositing case 2020-04-05 19:05:50 +03:00
Michail Vourlakos
f63a467b1e improvements for applet isExpanded tracking 2020-04-05 18:04:10 +03:00
Michail Vourlakos
1adcbdb863 improve identify applets expanded state 2020-04-05 17:01:10 +03:00
Michail Vourlakos
aa3aba50d9 make blockHiding multiple state
--blockHiding now tracks down which event has
requested it and it can work flawlessly with
multiple events

BUG:419034
2020-04-05 14:59:26 +03:00
Michail Vourlakos
ded6ef04e5 fix fake background blur for shared layouts 2020-04-04 21:18:34 +03:00
l10n daemon script
6dac4e4065 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-03-26 06:12:03 +01:00
Michail Vourlakos
72fdf4563b improve AbstractLayout background infrastructure
--the new infrastructure can remember settings between
CustomBackgroundStyle and ColorStyle in order to
help the user to not have to reassign values
when changing backgrounds, between predefined
colors style and custom one.
2020-03-25 01:30:30 +02:00
Michail Vourlakos
1c88a97c55 app animations independent of plasma durations
--plasma durations can mess up the Latte animations
experience a lot. We now use our own set animations
durations which are independent of what the user
chose for plasma animations speed.

BUG:418883
2020-03-24 12:46:29 +02:00
Michail Vourlakos
4ad3880579 update PLASMAPANEL geometry immediate after hiding
--behaveAsPlasmaPanel can now slide in/out as real windows
but after they hide there is a chance that their geometry
should be updated. This patch makes sure that this will
happen exactly before the BEHAVEASPLASMAPANEL starts
sliding-in.
2020-03-19 22:12:59 +02:00
Michail Vourlakos
25677a01b5 block screen gap animations on startup 2020-03-19 19:05:40 +02:00
Michail Vourlakos
87f6330816 slide in/out nicely when hideThickScreenGap
--when the user has chosen to hide the screen gap
when there is a maximized window in the screen and
at the same time the View behaves as plasma panel,
it now slides in/out nicely
2020-03-19 15:32:36 +02:00
Michail Vourlakos
e0c04a9c6f import:dont update view:local_geometry when hidden
--if this does not apply then local geometry are not valid
when views become hidden
2020-03-19 12:09:17 +02:00
Michail Vourlakos
86ddc74cbb fix EnvironmentActions anchors
--EnvironmentActions follow mainLayout alignment
and anchor style at all cases
2020-03-08 13:28:58 +02:00
Michail Vourlakos
b3c3dab514 improve plasma folder behavior in SideBars 2020-03-08 12:18:53 +02:00
Michail Vourlakos
ecd39b4098 introduce minimum length option
--found also some fixes for mask calculations
in right or bottom alignment
2020-03-08 12:03:30 +02:00
Michail Vourlakos
1d8fe4541c Important:fix localGeometry calculations
--and add also new visual debug mode for
localGeometry calculations
2020-03-08 10:27:16 +02:00
Michail Vourlakos
ef3a59e836 behaveAsPlasmaPanel for NOCOMPOSITING environment
--all views in NOCOMPOSITING environment should behave
as Plasma Panels in order to interact much better with
windows
2020-03-06 19:20:45 +02:00
Michail Vourlakos
ab83bc5b2e fixes for BLUR in live editMode
--add also missing signal in Effects to updateEffects
when enabledBorders are changed
2020-03-05 22:11:06 +02:00
Michail Vourlakos
5cc6ce5484 fix NOCOMPOSITING mode mask calculations
FIXED-IN:0.9.10
BUG:418456
2020-03-05 20:57:18 +02:00
Michail Vourlakos
5efa757146 fix Justify Splitter appearance at all cases
--introduce also some max/min values for applets
size for inConfigureAppletsMode state
2020-03-02 17:28:35 +02:00
Michail Vourlakos
8f98ccb5e8 improve Justify Splitters in SideBars
--improve Justify Splitters experience for vertical
Docks/Panels and SidePanels
2020-03-02 17:11:37 +02:00
Michail Vourlakos
47f79db2ec improve show/hide functions of visibilitymanager
--test the new code both for x11 and wayland and check
out that it does not create crashes or any other new
bugs
2020-03-02 09:39:57 +02:00
Yuri Chornoivan
50f249afc7 Fix minor typo: top -> bottom 2020-03-02 08:49:37 +02:00
Michail Vourlakos
90df4f4f61 support new visibility mode for SideBars
--SideBar views are shown/hide ONLY WHEN the
user has requested to DO SHOW from external
applets, shortcuts and scripts
2020-03-01 18:20:23 +02:00
Michail Vourlakos
9d30eb6257 support stick options for vertical views
--the user can now choose for vertical views to
stick their edges at the top or bottom screen edge
and ignore any top or bottom views accordingly. These
options are available in the Transparent Settings
area for vertical views and in advanced settings
mode.
2020-03-01 10:35:45 +02:00
Michail Vourlakos
de1604bb71 improve bouncing animation speed for plasma 5.18 2020-02-26 18:21:55 +02:00
Michail Vourlakos
bac31e450e plasma5.18:update animations speed 2020-02-13 18:49:24 +02:00
Michail Vourlakos
6635f9fa8f mask fixes for some floating cases 2020-01-31 18:21:35 +02:00
Michail Vourlakos
8e614468bc imrove applets scroll wheel activation
--the new implementation works at all cases even
when the ParabolicEffect MouseArea is not really
enabled (e.g. real panels)
2020-01-31 18:00:17 +02:00
Michail Vourlakos
8ab5779bcb compute blur area correctly on startup
--improve calculations for Effects area during startup
and at the same time when the dock is totally hidden
so it should not paint any effects area at all.

BUG:416928
FIXED-IN:0.9.9
2020-01-30 22:02:53 +02:00
Michail Vourlakos
b5233ddfe0 option for tasks to scroll and minimize them
--a new Wheel action is introduced to Tasks and
the user can now choose to disable wheel actions
only for tasks OR cycle through grouped tasks OR
upwards cycles trhough grouped tasks and downwards
minimizes them.

BUG:416096
2020-01-28 21:33:47 +02:00
Michail Vourlakos
210057af21 take into account roundness for pseudo-blur
--in editing mode the panel background blur takes
into account inside the qml window, it is used
as a demonstration for the user. This patch
takes into account the blurred area roundness
in order to not blur faulty areas that are not
going to be blurred in the end.
2020-01-25 12:36:20 +02:00
Michail Vourlakos
58fcd834d7 fix draging responsiveness for active window 2020-01-19 20:05:07 +02:00
Michail Vourlakos
2a7a009046 dont drag active window with mid click 2020-01-19 19:54:59 +02:00
l10n daemon script
3593ed48c6 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-01-19 05:31:57 +01:00
Michail Vourlakos
88cd15af63 add a mouse wheel delayer for EmtpyAreas
--add a mouse wheel delayer like in other Latte
MouseArea(s) in order to limit the actions
executed through mouse wheel in one second.
The user can now execute five actions at maximum
in one second.
2020-01-18 20:29:31 +02:00
Michail Vourlakos
dabc7bfe88 option to toggle windows minimized state
--mouse wheel can now be used from panel empty areas
in order to minimize windows or cycle between them.
The action is called ScrollToggleMinimed. When that
option is used the user can also use Ctrl+ScrollUp
in order to maximize a window or Ctrl+ScrollDown
to restore it
2020-01-18 20:29:31 +02:00
Michail Vourlakos
77b66e85e0 option to close active window with mid click
--an option to close active window with middle
click from empty areas
2020-01-18 20:29:31 +02:00
Michail Vourlakos
5288aa6e38 protect floating views appearance
--floating views is a strange situation for which
plasma theme do not have any way to be protected for
their drawing (there is a chance that shadows and content
overlap). Latte in order to protect from that situation
now uses the auto-discovered plasma theme roundness to be used
in order to calculate the minimum thicknes for panel
background.
2020-01-17 17:50:23 +02:00
Michail Vourlakos
154038c245 consider edge margin for applets shorcut badges 2020-01-16 18:50:52 +02:00
Michail Vourlakos
4809703e9f remove common global indicators options
--enabledForApplets and lengthPadding for indicators
has now moved to indicators responsibility to handle
--as a consequence usesPlasmaStyle has been removed
from indicators API. The corner cases that indicators
conflict with plasma theme applets should be handled
differently and in a different way
2020-01-13 21:53:49 +02:00
Michail Vourlakos
7d0d8f74f7 fix applets edge margins calculations
--different applets situations request different
margins for indicators and margins between them
in order to draw them properly. This fix takes
into account when edge margins are disabled from
wrapper and in that case the edge margins for these
are calculated bettter.
2020-01-13 21:53:26 +02:00
Michail Vourlakos
63971f4429 enable normal Latte Tasks removal action
--requesting from users a different way to remove
the Latte Tasks plasmoid if they want to is not
a good hig. Reenabling the classic ways to remove
Latte Tasks. The user can now use the applet tooltip
to remove it or by right clicking it in Latte
edit mode. Because of this the Tasks->Recycling
button is not needed any more.

BUG:415274
2020-01-11 18:33:54 +02:00
Michail Vourlakos
34d6c2cd78 identify highest priority application launcher
--provide a new way to identify which application
launcher has the highest priority in order to be
triggered. When an application launcher applet
has a global shortcut assigned to it then that
application launcher applet has the highest
priority in order to be triggered through
"Super" global key.
2020-01-10 17:58:34 +02:00
Michail Vourlakos
87f86ebc75 trying to support masking for floating 2020-01-07 17:54:48 +02:00
Michail Vourlakos
a9d4f91c05 add inSlideAnimation flag for ViewPart::Positioner
--it can be used in order to enable/disable some codepaths
2020-01-03 21:18:01 +02:00
Michail Vourlakos
aa00d6348b disable zoom labels in settings for !animatons 2020-01-03 21:18:01 +02:00
Michail Vourlakos
813b40e9ca fix glitch from editMode to real floating 2020-01-03 21:18:01 +02:00
Michail Vourlakos
783906d244 dont autoposition Layouts for inLocationAnimation
--block default-autopositioning for Layouts when the user
is changing location for the View. This way we are
trying to avoid issues concerning animations and glitches
during that animation.
2020-01-03 21:18:01 +02:00
Michail Vourlakos
1dc154f932 track inLocationAnimation of View:Positioner 2020-01-03 21:18:01 +02:00
Michail Vourlakos
10ce95597c slide out layouts when changing location 2020-01-03 21:18:01 +02:00
Michail Vourlakos
4034ccfaf9 blockHiding in editMode based on edit animations
--it is safer to block/unblock view hiding based on
edit mode animations. This way any view hiding mechanisms
are applied only after the containment editMode has
really applied.
2020-01-03 21:18:01 +02:00
Michail Vourlakos
dba2f3bc8b hide external shadows when real panel hidden 2020-01-03 21:18:01 +02:00
Michail Vourlakos
103de33c92 trying to implement real panels sliding in/ou 2020-01-03 21:18:01 +02:00
Michail Vourlakos
07a1065320 animate dynamic screen edge margin behavior
--when the view is NOT behavingAsPlasmaPanel then for
those cases we can animate the screenEdgeMargin
shrinking/expanding
2019-12-31 19:47:53 +02:00
Michail Vourlakos
80ed729fcf [qt5.14] - restore editVisual to normal
--when the view settings window is closed then the
View must return to normal mode and disable
the editMode. In qt 5.14 default states that have a "when"
property do not play well

BUG:412940
2019-12-30 19:13:10 +02:00
Michail Vourlakos
5d65909adb fix binding loop from hideLengthScreenGap 2019-12-29 14:16:24 +02:00
Michail Vourlakos
79705e9753 option to disable creenEdgeMargin for maximized
--improved settings for Floating windows in Behavior
tab and add a new option to hide ALL screen gaps meaning
both length screen and thickness screen gap when there
is a maximized window in the screen

BUG:415630
2019-12-29 14:09:37 +02:00
Michail Vourlakos
074d9efee1 use all floating screen gaps for Fitt's Law 2019-12-29 12:28:18 +02:00
Michail Vourlakos
4cf929ea81 support containsMouse behavior for WindowsCanCover 2019-12-27 13:38:22 +02:00
Michail Vourlakos
d9e18794c8 simplify keepabove/below calling
--start a bit to work with "Windows Always Cover"
visibility mode
2019-12-26 21:10:11 +02:00
Michail Vourlakos
f9779d5284 introduce two new windows visibilities in options
--add options for visibility modes:
   - Windows Can Cover
   - Windows Always Cover
2019-12-26 12:37:52 +02:00
Michail Vourlakos
4bffa9736a improvements to settings layout
--fix also some left of warnings from
screen edge margin
2019-12-26 10:54:25 +02:00
Michail Vourlakos
6f7eebeec2 choose behavior for floating screen gap
--when the user has enabled dragging/moving active
window from floatings screen gap then that space
can not be used to activate applets. It is rather
used to drag/move/restore last active window.
2019-12-26 10:12:09 +02:00
Michail Vourlakos
c8bd9553c8 update EnvironmentActions for screenEdgeMargin 2019-12-25 21:55:23 +02:00
Michail Vourlakos
6a17a3e67b only left click for applets neutral areas activate 2019-12-25 21:44:39 +02:00
Michail Vourlakos
6a95af5f8c option,always apply Fitt's Law for floating mode
-The use can specify to always apply Fitt's Law when
in floating mode
2019-12-25 11:10:12 +02:00
Michail Vourlakos
32f02c871e consider also thickMarginsEnabled for screenEdge
--if thickness margins are disabled then it must not
be applied any screen edge margin
2019-12-25 10:47:46 +02:00
Michail Vourlakos
1c7eec05e3 send only screenEdgeMargin to applets/indicators
--screenEdgeMarginEnabled value is not really needed
to applets and indicators. Only the margin value
applied is of importance in order to place themselves
properly.
2019-12-25 00:01:12 +02:00
Michail Vourlakos
06fdd0d703 make screenEdgeMargin aware some elements
--update some containment elements and make
them screenEdgeMargin aware in order to be
positioned properly
2019-12-24 23:55:53 +02:00
Michail Vourlakos
896afcc068 support screen edge margin for behaveAsPlasmaPanel 2019-12-24 20:35:48 +02:00
Michail Vourlakos
a40ff9cf5b update CustomBackground to more border styles
--use screenEdgeMargin in order to support more border
styles for custom background component that paints
the underneath panel background for smart coloring.
2019-12-24 19:35:42 +02:00
Michail Vourlakos
8ee4b83461 update applets to screen edge margin awareness
--applets can now use the screen edge margin value
in order to follow Fitt's Law for floating docks/panels
if they want to. Latte takes case all applets of
course but in case an applet would like also to
to use also the space between the gap of the view
and the screen edge, it can so.
2019-12-24 17:10:37 +02:00
Michail Vourlakos
8194ee94bc inform applets/indicators for screen edge margin
--fix geometries publishing, update margins calculations
2019-12-24 15:54:06 +02:00
Michail Vourlakos
0ebef42513 add screenEdgeMargin and update border accordingly 2019-12-24 12:35:28 +02:00
Michail Vourlakos
d31d7afb9d dont wait for dock to show for activate shortcuts
--when the application launcher is not a popup then
we do not have to wait for the dock show we can execute
the activation code immediately
--when Latte activates an entry can now understand
if a popup is going to be shown in order to delay
the execution. If a popup is NOT going to show either
for a latte task or an applet then the code is executed
immediately

BUG:415417
FIXED-IN:0.9.6
2019-12-21 23:37:52 +02:00
Michail Vourlakos
5fff947091 improve panel background is shown identification 2019-12-20 16:00:22 +02:00
Michail Vourlakos
9dd798477e improve criteria for side panels dyamic touching
--Latte panels when they touch each other are informing
each other in order to provide consistent appearance. For
example the Unity mode where a top panel and a left panel
exist at the same time. In such case if the left panel is
INBUSY background state then the top panel is informed and
because inBusy state also. This way the top border of left dock
background does not look out of place. ON THE OTHER hand if
the left dock is hidden because the use has chosen auto-hide
visibility mode or any of the dodge(s) choices then the top
panel does not have to stay in isBusy state. The patch fixes
this by applying this behavior only when the left dock is shown
e.g. the mouse has entered the dock or the dodge mode is not
activated

BUG:415347
FIXED-IN:0.9.6
2019-12-20 15:14:23 +02:00
Michail Vourlakos
08be166ae3 increase grow/shrink distance limits
--automatic icon sizer is using a prediction
algorithm in order to decide to grow or not the
items size. There is a chance that the prediction
calculations are executed too early and as
such grow/shrink limits it is better to not
be to near to each other. That approach should
make the AutomaticItemSizer implementation a little
more robust.
2019-12-11 09:41:51 +02:00
Michail Vourlakos
abd333ea63 fix debug window texts 2019-12-06 12:00:27 +02:00
Michail Vourlakos
484741558e add comments 2019-12-02 16:12:14 +02:00
Michail Vourlakos
2493971f03 improve atScreenEdge code 2019-12-02 16:09:31 +02:00
Michail Vourlakos
747d4870a0 introduce AutomaticItemSizer and add protector
--the automatic item sizer algorithm now is present
in its own class/responsibility area. As a new
improvement/fix the new implementation provides also
a protector/tracker that when the current prediction
to grow has already be applied two steps back in
history then the growing is not applied. This way
endless loops with growings and shrinks are blocked.

BUG:414180
FIXED-IN:0.9.5
2019-12-01 19:20:40 +02:00
Michail Vourlakos
2577c33b7d improvements for margins/paddings
--fix also how firstVisibleIndex is tracked for
AppletContainer(s)
2019-11-24 21:29:56 +02:00
Michail Vourlakos
5c5084f7bb improve some semantics in AppletItem 2019-11-24 21:29:47 +02:00
Adrien Brunelat
a21f46d85f
[414174] - Panel background transition color bug
Summary:
Added animation on background color change.
Removed test for background color that is not needed any more.

BUG:414174
FIXED-IN:0.9.5

Reviewers: mvourlakos

Reviewed By: mvourlakos

Subscribers: ognarb, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25392
2019-11-19 17:47:31 +01:00
Michail Vourlakos
bfd72413d9 show a smaller indicator for atScreenEdge applets
--this is a temporary fix in order to provide a
visually pleasant result until the final fix for
Fitt's law is applied.
2019-11-17 09:25:26 +02:00
Michail Vourlakos
5aac422a65 Fitt's Law improvements for applets
--each applets layout can not identify properly
which applet is the first/last visible from its
contents. This way we can now identify properly
at all cases which applets should remove their
margins in order to follow Fitt's Law at screen
edges. For example when a windows buttons applet
is found at the screen edge and suddently it
hides itself then the next visible applet should
be considered at screen edge and such should remove
its margins in order to touch the screen edge.
2019-11-17 09:25:16 +02:00
Michail Vourlakos
453ac890ab remove exceptions for systray and indicators
--remove the layout exception for the plasma systray
and behave for this just all the rest applets
--fix indicators for applets in order to consider
properly the indicators padding and applets margins.
In other words the Latte indicators for applets should
not take up all the length provided but ONLY the
applet length + indicators padding (without at any
case the applet length margins)

BUG:414104
FIXED-IN:0.9.5
2019-11-14 21:20:39 +02:00
Michail Vourlakos
63ed290593 improve option "Hide Background when not needed"
--when option "Hide Background when not needed" is
used on its own activates or not the forceTransparentPanel
code path. So when that option is enabled and any
window is touching the Latte::View then the force
transparency codepath should be disabled. In such
case the user background settings are applied.

BUG:414071
FIXED-IN:0.9.5
2019-11-13 13:51:08 +02:00
l10n daemon script
a3e747188f SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-11-04 05:13:17 +01:00
Michail Vourlakos
702b53493b Merge branch 'v0.9' into fix 2019-11-03 09:58:32 +02:00
Michail Vourlakos
0a78fc01b8 update to version 0.9.4 2019-10-27 15:15:16 +02:00
Michail Vourlakos
c2a1c20d92 expose colorScheme to lastActiveWindow(s)
--applets can now use the color scheme from lastActiveWindow
objects in order to paint some of their elements
2019-10-26 17:03:54 +03:00
Michail Vourlakos
6a7c959e6a expose colorScheme to lastActiveWindow(s)
--applets can now use the color scheme from lastActiveWindow
objects in order to paint some of their elements
2019-10-26 17:02:47 +03:00
Michail Vourlakos
27aea9b4f6 update to version 0.9.3 2019-09-29 17:05:28 +03:00
l10n daemon script
32078ac05a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-09-24 05:08:03 +02:00
l10n daemon script
71f9e6b85a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-09-15 08:34:59 +02:00
Michail Vourlakos
b9d82fe0f1 improvements for automatic icon size code path
--this patch add two fixes concerning automatic
icon size when contents exceed the view maximum
length.
--A) when the function is called then it also
called one more time after 1sec to confirm that
the icon size found is valid. In the past that
approach was creating an endless loop that should
not be triggered any more
--B) the grow limit was made to be equal with
the shrink limit trying to be more predictive from
the user when the items will grow or shrink. In
the future we must take care of this if the items
grow or shrink endlessly

BUG:411860
FIXED-IN:0.9.3
2019-09-13 21:43:42 +03:00
Michail Vourlakos
182831a808 improvements for automatic icon size code path
--this patch add two fixes concerning automatic
icon size when contents exceed the view maximum
length.
--A) when the function is called then it also
called one more time after 1sec to confirm that
the icon size found is valid. In the past that
approach was creating an endless loop that should
not be triggered any more
--B) the grow limit was made to be equal with
the shrink limit trying to be more predictive from
the user when the items will grow or shrink. In
the future we must take care of this if the items
grow or shrink endlessly

BUG:411860
FIXED-IN:0.9.3
2019-09-13 21:38:16 +03:00
Michail Vourlakos
eb564fdc7d use automatic icon size for behaveAsPlasmaPanel
--this way the panel can be shrinked because it
exceeds screen boundaries even when view is used
as a plasma panel
2019-09-12 20:33:41 +03:00
Michail Vourlakos
7d42891833 use automatic icon size for behaveAsPlasmaPanel
--this way the panel can be shrinked because it
exceeds screen boundaries even when view is used
as a plasma panel
2019-09-12 20:23:08 +03:00
Michail Vourlakos
ac11a3a2d7 do not overlay applets when icon found !visible
--many applets are changing layouts and during that
process the main icon becomes invisile, in that case
the latte overlaied icon should also been disabled and
let applet paint itself accordingly

FIXED-IN:0.9.3
2019-09-11 21:59:31 +03:00
Michail Vourlakos
2414a918bb do not overlay applets when icon found !visible
--many applets are changing layouts and during that
process the main icon becomes invisile, in that case
the latte overlaied icon should also been disabled and
let applet paint itself accordingly

FIXED-IN:0.9.3
2019-09-11 21:58:43 +03:00
Michail Vourlakos
f64f5107bb remove margins,!canbehovered applets in screen edges
--when an applet can not be hovered meaning to use
the parabolic effect and that applet is at the far
screen edge then margins can be disabled for this applet
in order to look exactly touching the screen edge
and at the same feel right following Fitt's Law
2019-09-08 11:20:23 +03:00
Michail Vourlakos
7663e86068 multiple fixes for different margins
--multiple fixes for margins all over the place. More
specific how they are calculated and when they are
used
2019-09-08 11:20:05 +03:00
Michail Vourlakos
d8a32fa18a load an indicator for the view background
--this way the plasma android-style click can be
triggered for empty areas
2019-09-08 11:19:56 +03:00
Michail Vourlakos
c3f9177ec9 remove margins,!canbehovered applets in screen edges
--when an applet can not be hovered meaning to use
the parabolic effect and that applet is at the far
screen edge then margins can be disabled for this applet
in order to look exactly touching the screen edge
and at the same feel right following Fitt's Law
2019-09-08 05:14:06 +03:00
Michail Vourlakos
fb026b1cac multiple fixes for different margins
--multiple fixes for margins all over the place. More
specific how they are calculated and when they are
used
2019-09-08 04:48:03 +03:00
Michail Vourlakos
cb7dbf0db9 load an indicator for the view background
--this way the plasma android-style click can be
triggered for empty areas
2019-09-08 01:51:28 +03:00
Michail Vourlakos
cf5747646d update to version 0.9.2 2019-09-05 14:17:47 +03:00
Michail Vourlakos
82fae53926 update webpages and releases metadata 2019-09-03 01:59:19 +03:00
Michail Vourlakos
48ae720671 update webpages and releases metadata 2019-09-03 01:50:21 +03:00
l10n daemon script
1c4f5906fd SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-09-01 04:54:07 +02:00
Michail Vourlakos
3faf5f6114 Merge branch 'v0.9' into merger 2019-08-31 09:59:26 +03:00
l10n daemon script
20a4610a85 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-08-31 08:45:35 +02:00
Michail Vourlakos
a385f49aea dont draw outline for plasma popups
--when the user of course has chosen the plasma
experience for applets popups
2019-08-31 01:48:26 +03:00
Michail Vourlakos
7f83c04313 dont draw outline for plasma popups
--when the user of course has chosen the plasma
experience for applets popups
2019-08-31 01:47:03 +03:00
Michail Vourlakos
17621e0ffd check no panel shadows from windows states first 2019-08-30 15:47:37 +03:00
Michail Vourlakos
2df56afef2 check no panel shadows from windows states first 2019-08-30 15:46:21 +03:00
Michail Vourlakos
cef15c3adc forceSolidness higher priority from busy background 2019-08-30 15:22:30 +03:00
Michail Vourlakos
8d394f0445 forceSolidness higher priority from busy background 2019-08-30 15:21:14 +03:00
Michail Vourlakos
6c0b9a002f Merge branch 'v0.9' into master 2019-08-30 15:11:17 +03:00
Michail Vourlakos
5a2c59601c Indicators:different margins for applets
--indicators gained a way to set different margins
for applets if they want to
2019-08-30 15:05:54 +03:00
Michail Vourlakos
edfd111d9a use only exter.margins for separators
--separators are only usings the external margins
between items. In the past it was also consider
the indicators internal padding. This is not
needed and it was creating too big empty
spaces with no real reason.
2019-08-30 02:44:33 +03:00
Michail Vourlakos
768a6b4b2a indicators can now offset a bit icons
--through level.requested options each indicator
instance can request specific repositioning for
each icon. Very good example for this is the
Win7 style indicator
2019-08-30 02:23:50 +03:00
Michail Vourlakos
ec78b188b5 plasma theme colors for !accelerated graphics
--fix also how accelerated graphics are identified
by using GraphicsInfo api
2019-08-27 16:25:51 +03:00
Michail Vourlakos
2866b6a3aa plasma theme colors for !accelerated graphics
--fix also how accelerated graphics are identified
by using GraphicsInfo api
2019-08-27 16:24:44 +03:00
Michail Vourlakos
83d090c550 add accelerated graphics checks all over the place
--when qml uses software rendering checks should be
added in order to not hide the visual elements. This
is taking place now in a more concrete way and checked
also that tasks with badges or not are still shown

BUG:411037
FIXED-IN:0.9.2
2019-08-27 15:50:17 +03:00
Michail Vourlakos
724a59eb23 add accelerated graphics checks all over the place
--when qml uses software rendering checks should be
added in order to not hide the visual elements. This
is taking place now in a more concrete way and checked
also that tasks with badges or not are still shown

BUG:411037
FIXED-IN:0.9.2
2019-08-27 15:46:49 +03:00
Michail Vourlakos
e26c0ceb36 provide Progress information to indicators
--as a test case, the Plasma indicator now supports
the original plasma progress indicator of plasma
taskmanagers
2019-08-26 17:50:23 +03:00
Michail Vourlakos
551edf01fb provide Progress information to indicators
--as a test case, the Plasma indicator now supports
the original plasma progress indicator of plasma
taskmanagers
2019-08-26 17:38:57 +03:00
Michail Vourlakos
8cf49b672c remove obsolete draggingStarted signals/slots
--draggingStarted signals/slots were used in order
to handle the active window dragging from empty areas.
The new approach ungrabs the mouse properly through
View relevant function and at the same time sends a
QEvent::Leave event to inform applets that the mouse
has left the view. This is enough in order to remove
any older draggingStarted workarounds and hacks.
2019-08-26 16:35:03 +03:00
Michail Vourlakos
153f5dab27 remove obsolete draggingStarted signals/slots
--draggingStarted signals/slots were used in order
to handle the active window dragging from empty areas.
The new approach ungrabs the mouse properly through
View relevant function and at the same time sends a
QEvent::Leave event to inform applets that the mouse
has left the view. This is enough in order to remove
any older draggingStarted workarounds and hacks.
2019-08-26 16:30:48 +03:00
Yuri Chornoivan
15ab253efd Fix minor EBN issues 2019-08-22 11:26:41 +03:00
Michail Vourlakos
bc94001cc8 reverse scrolling for vds/activities switching
--Latte should use the same workflow paradigm for
switching vds and activities with the plasma pager
approach. This commit complies with this.

BUG:411086
FIXED-IN:0.9.2
2019-08-22 11:16:28 +03:00
Michail Vourlakos
3fb0206243 reverse scrolling for vds/activities switching
--Latte should use the same workflow paradigm for
switching vds and activities with the plasma pager
approach. This commit complies with this.

BUG:411086
FIXED-IN:0.9.2
2019-08-22 11:12:57 +03:00
Yuri Chornoivan
3a60d6f3b2 Fix minor EBN issues 2019-08-18 19:59:09 +03:00
Michail Vourlakos
38663c2534 dont hide icons/applets for software rendering
--when qml software rendering is enabled the ShaderEffects
do not work. Hiding sources in that case is hiding
from the user tasks and applets with no visual feedback.
Sources in that case should hide themeselves and give
the user the minimum which is the original drawn contents.

BUG:410920
FIXED-IN:0.9.2
2019-08-15 13:09:29 +03:00
Michail Vourlakos
f449e22943 dont hide icons/applets for software rendering
--when qml software rendering is enabled the ShaderEffects
do not work. Hiding sources in that case is hiding
from the user tasks and applets with no visual feedback.
Sources in that case should hide themeselves and give
the user the minimum which is the original drawn contents.

BUG:410920
FIXED-IN:0.9.2
2019-08-15 13:06:25 +03:00
Michail Vourlakos
549628ddd0 hacky flag to keep Latte behavior for zoom=1
--if some users want to keep the Latte specific behavior
when the zoom factor = 1 then it can just LOCK
these applets

BUG:410695
2019-08-08 16:44:42 +03:00
Michail Vourlakos
289429185b hacky flag to keep Latte behavior for zoom=1
--if some users want to keep the Latte specific behavior
when the zoom factor = 1 then it can just LOCK
these applets

BUG:410695
2019-08-08 16:37:44 +03:00
Michail Vourlakos
9c3ca1f122 update to v0.9.85
--full development version to distinguish it
for the stable branch v0.9.x
2019-08-04 14:59:27 +03:00
Michail Vourlakos
6cc09eae4b update to v0.9.1 2019-08-04 14:54:45 +03:00
Michail Vourlakos
f414c62a55 initialy support only one case for busyVerticals 2019-08-03 08:58:37 +03:00
Michail Vourlakos
b078765d5c improve smartness for Unity case layout
--when a vertical view is in busy state and is touching
also a horizontal view that is fully transparent in
SMART mode then the visual result is not that good.
In that case it is better to show the view background.
The horizontal view background in that case can provide
three different states:
a) if the panel style for popups is activated then the
horizontal view will follow the plasma original style
b) if NOT [a] and solid background for touching windows
is enabled then solid background will be offered
c) if NOT [a] and NOT [b] then the isBusy state
transparency will be offered
2019-08-03 08:58:24 +03:00
Michail Vourlakos
ab9fbc3727 support touching horizontal view and isbusy
--trying to increase smartness for horizontal
and vertical views. In multiple layouts environment
a view can exist in cases that one or more of
the sided views that is touching it is NOT
transparent, it would be nice for those
cases the top or bottom  view to LOSE also
its transparency in order to not look
inconsistent.
2019-08-03 08:58:13 +03:00
Michail Vourlakos
8058778a93 initialy support only one case for busyVerticals 2019-08-03 08:55:31 +03:00
Michail Vourlakos
92a4fb054e improve smartness for Unity case layout
--when a vertical view is in busy state and is touching
also a horizontal view that is fully transparent in
SMART mode then the visual result is not that good.
In that case it is better to show the view background.
The horizontal view background in that case can provide
three different states:
a) if the panel style for popups is activated then the
horizontal view will follow the plasma original style
b) if NOT [a] and solid background for touching windows
is enabled then solid background will be offered
c) if NOT [a] and NOT [b] then the isBusy state
transparency will be offered
2019-08-03 08:47:45 +03:00
Michail Vourlakos
cad13372d6 support touching horizontal view and isbusy
--trying to increase smartness for horizontal
and vertical views. In multiple layouts environment
a view can exist in cases that one or more of
the sided views that is touching it is NOT
transparent, it would be nice for those
cases the top or bottom  view to LOSE also
its transparency in order to not look
inconsistent.
2019-08-01 18:29:46 +03:00
Michail Vourlakos
ed83d1d13c improve more the isBusy background case
--the new implementation supports and always darkish
case when the isBusy background is drawn. So now
we have the following possibilities:
a)panel transparency<35 means BEST contrast with
underlying desktop background
b)panel transparency>=35 AND <70 means a DARKISH
background
c)panel transparency>=70 the user chosen plasma
theme
2019-07-31 16:10:38 +03:00
Michail Vourlakos
e684924d7c improve more the isBusy background case
--the new implementation supports and always darkish
case when the isBusy background is drawn. So now
we have the following possibilities:
a)panel transparency<35 means BEST contrast with
underlying desktop background
b)panel transparency>=35 AND <70 means a DARKISH
background
c)panel transparency>=70 the user chosen plasma
theme
2019-07-31 16:09:47 +03:00
l10n daemon script
e438e04511 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-07-31 08:57:25 +02:00
l10n daemon script
6cd1a9b7ae SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-07-31 05:07:46 +02:00
Michail Vourlakos
6f51a1b770 fix published absolute geometry in !compositing
--absolute geometry is the published area that the
dock/panel occupies when it is shown. So it should
not change when the dock becomes hidden. This patch
fixes the case for the !compositing environment.
2019-07-30 17:09:22 +03:00
Michail Vourlakos
bab3e9126e fix published absolute geometry in !compositing
--absolute geometry is the published area that the
dock/panel occupies when it is shown. So it should
not change when the dock becomes hidden. This patch
fixes the case for the !compositing environment.
2019-07-30 17:07:20 +03:00