Commit Graph

232 Commits (236dd2c3b92ed0a439f762cef9b65de934c467ea)

Author SHA1 Message Date
Michail Vourlakos 0147ed8451 update indicators design in plasmoid 6 years ago
Michail Vourlakos 82a11b9f4a adjust plasmoid to new indicators design 6 years ago
Mathias Tillman ddb941d465 Fix window thumbnails not working since frameworks 5.55
Summary:
This fixes a problem where window thumbnails are no longer visible since KDE Frameworks 5.55. This is caused by https://cgit.kde.org/plasma-framework.git/commit/?id=b257029afc3bfcd6366d2c2b910b8d91403ab8a which no longer automatically updates the visibility of mainItem of PlasmaCore.Dialog.

BUG: 404234

Test Plan: Ensure window thumbnails are working correctly now

Reviewers: mvourlakos

Reviewed By: mvourlakos

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D19002
6 years ago
Michail Vourlakos 2884f73507 enable Plasma Indicator Style
CCBUG: 404122
6 years ago
Michail Vourlakos 8f9140f67a option to enable/disable audio badge actions
BUG: 403611
6 years ago
Michail Vourlakos 7149cf5569 do not make previews show intrusive
BUG: 404099
6 years ago
Michail Vourlakos bd68d5dbcc dont show Preview after activating task with click
BUG: 404099
6 years ago
Michail Vourlakos fef791d8e1 improve names for globalshortcuts qml calls 6 years ago
Michail Vourlakos 94a5118e54 update Latte plasmoid to new Communicator names 6 years ago
Michail Vourlakos 50c5303b54 create separate Badges section for Tasks
--the user can now choose what badges prefers for
Tasks. The current supported are Information/
Progress/Audio

BUG: 400539
6 years ago
Michail Vourlakos 52465865f9 rename Task SubParts in plasmoid accordingly 6 years ago
Michail Vourlakos 9c3726a07b support different actions for left click and hover
--app now supports the user to set different actions
for tasks left-click and for hover event

BUG: 400690 400429
6 years ago
Steffen Coenen f6ce06f6ae Adjust Latte Dock to libtaskmanager API changes for Wayland
Summary:
Changes in libtaskmanager in Plasma 5.15 currently break several Latte Dock features. This patch ensures that Latte Dock will continue to work when Plasma 5.15 is released.

BUG: 403358

Reviewers: mvourlakos

Reviewed By: mvourlakos

Subscribers: plasma-devel

Tags: #latte_dock, #plasma

Differential Revision: https://phabricator.kde.org/D18375
6 years ago
Yuri Chornoivan 8d7110f761 Fix minor typos
Summary: Fix minor typos in messages and comments

Test Plan: No major changes to prevent compilation and usage

Reviewers: mvourlakos

Reviewed By: mvourlakos

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D17894
6 years ago
Michail Vourlakos b8dca987f6 latte plasmoid support new v0.9 Communicator 6 years ago
Michail Vourlakos b418923c03 move from luminas to brightness
--the luminas functions didnt work well
for all cases. Latte is now using brightness
functions as described at:

   https://www.w3.org/TR/AERT/#color-contrast

this patch fixes all cases mentioned in the bug
that Latte contrast identification did not work well

BUG: 402115
6 years ago
Michail Vourlakos f84043d28e REFACTOR:change dock in containment to latteView 6 years ago
Michail Vourlakos d8621a9435 refactor:plasmoid rename latteDock to latteView 6 years ago
Michail Vourlakos 67253eda9d REFACTOR:update qml to new Latte.Types 6 years ago
Michail Vourlakos 74f80cd4db sync launchers when needed
--this way all synced docks/panels are all
updated concerning where their launchers are
placed and in which activities are shown
6 years ago
Michail Vourlakos 8294bd892c support plasmoid.screenGeometry properly
BUG: 401333
6 years ago
Michail Vourlakos 6c58115f9b add launchers validator for syncing launchers
--moving a task now is not synced immediately to
other docks. Syncing takes place only in the end.
The dock in which the user changed the launchers
order sends a signal to other docks to update
theirs launchers order.

BUG: 401232
6 years ago
Michail Vourlakos 530dd8d655 simplify more the communicator 6 years ago
Michail Vourlakos 37b89f2830 move qml luminance calculations to js files 6 years ago
Michail Vourlakos 9dae7f7170 add Colorizing properties in Communicator
--add properties in order for the Communicator
to inform applet when to use the LatteColorScheme
6 years ago
Michail Vourlakos 8db41a9ec2 open dropped urls for launchers in Global group
--dropped paths/urls on launchers of Global or
Layout launchers group did not open because the
synced infrastructure was breaking the QJsonArray
in that case.

FIXED-IN: 0.8.2
6 years ago
Yuri Chornoivan 7323068f36 Fix minor EBN issues 7 years ago
Michail Vourlakos b4dd016ed0 delay hiding previews when creating contextmenu
-- there are cases that hiding previews too early
can create crashes under wayland. Such a case is
when the user uses the touchpad to emulate a right-click
event to create a context menu for specific task

BUG: 397635
FIXED-IN: 0.8.1
7 years ago
Michail Vourlakos b4a7b1ac84 restructure windows previews to plasma design
--previews showed some strange behavior by
re-introducing faulty or empty previews under
X11. Best way to approach this is to follow up
plasma design idea in order for the code to be
comparable. The code was updated and the introduced
issue shows to be fixed but this wants users
feedback.

BUG: 397193
FIXED-IN: 0.8.1
7 years ago
Michail Vourlakos 9a69323293 smarter badges identifier for activation shortcuts
--with this commit now Latte is able to identify what are
the global shortcuts used for each activation entry and
also to not show at all any badge for activation entries
that are disabled from the user

BUG: 397128
7 years ago
Michail Vourlakos 3ea01dfafc fix badge text warning and border.color 7 years ago
Lukas Holecek 79df6cbe2c Activate next task in group on shortcut
Clicking a task group shows a tooltip with list of tasks. This tooltip
cannot be controlled by keyboard and it will stay open unless mouse is
used.

This patch changes the behavior so that when a global shortcut activates
a task group (usually Win+1, Win+2 etc.) a next task in the group is
activated without showing a tooltip.
7 years ago
Michail Vourlakos 83be8d9b20 fix #986,option to not group tasks
--give the user option to group or not
tasks of the same application by default
7 years ago
Michail Vourlakos 7c593c7112 fix #977,improve geometries publishing 7 years ago
Michail Vourlakos 6881d8fbbe fix #970,parabolic effect fix
During dock sliding-in because the parabolic
effect isnt trigerred immediately but we wait
first the dock to go to its final normal
place we might miss the activation of the
parabolic effect. By catching that signal
we are trying to solve this.
7 years ago
Michail Vourlakos 5ea2cfa79e [wayland] - fix previews crash
-- disable the use of PlasmaCore.WindowThumbnail
under Wayland in order to fix a crash that was
appearing after a while when the user was using
previews

BUG: 392865
7 years ago
Michail Vourlakos 6d7d53e454 improve removal animation
-- when removing a task and there are surrounding
separators then the hidden spacers are updated
immediately for the neighbour tasks. In such case
in order to not break the removal animation a small
margin must applied.
7 years ago
Michail Vourlakos 39d837da1d increase separators update signals
--add a delayer in order to syncLaunchers to avoid
a crash when multiple docks exist that are synced
together.
7 years ago
Michail Vourlakos e9b3cf2ed7 Use a new architecture for internal separators
--the old architecture that was trying to keep
an internal separators record couldnt catch up
and at the same time could create issues with
internal separators at different activities.
7 years ago
Michail Vourlakos d4685cd492 disable functionality for onlylaunchers
--when only launchers are shown and the user
has chosen to disable any active indicator
then the plasmoid should behave only as
a smart launchers list with no window
capabilities
7 years ago
Michail Vourlakos eec2927f88 updates for hidden tasks and int.separators 7 years ago
Michail Vourlakos b8c07b8523 fixes for disable Windows Functionality 7 years ago
Michail Vourlakos 2742be427b fix #901,show windows only from launchers
--add an option to tasks filters in order to
hide windows that do not have launchers
7 years ago
Michail Vourlakos a0e4c029a9 use plasma desktop version at plasmoid 7 years ago
Michail Vourlakos f5b56e3559 improvements for publishing geometries 7 years ago
Michail Vourlakos 7ce5938312 add internal separator through drag n' drop 7 years ago
Michail Vourlakos 5cb27f0ae4 fix initialization value 7 years ago
Michail Vourlakos 452e93c33e improve update of hoveredIndexes
--when the plasmoid is hovered when the
applets hoveredIndex should be initialized
and when an applet is hovered then the plamoids
hoveredIndex should be initialized to -1.
7 years ago
Michail Vourlakos 0bb70c1595 drop fastEntering for directRenderDelayer
--the directRenderDelayer is used during first
entering in order to delay the activation of
directRendering. The cons of previous fastEntering
implementation added the necessity for this
replacement.
7 years ago
Michail Vourlakos ec3a68b81e disable some debug messages 7 years ago
Michail Vourlakos 4cf4351b80 improve all luminance calculations
--provide more accurate calculations for luminance
based on algorithm at:
https://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
7 years ago
Michail Vourlakos 7055b44a6e fix #890,dont show audio for paused mpris player
--improvements from plasma taskmanager mpris code
--check for mprisplayer status, when the player
is paused dont show the audio badge
7 years ago
Michail Vourlakos a6d92153f9 fix #881,load launchers correctly in plasma panel 7 years ago
Michail Vourlakos 1ff161a030 updates and improvements at applets glob.shortcuts 7 years ago
Michail Vourlakos 103b901125 support showing applets numbers with badges
-- this is used mainly from globalshortcuts triggering
7 years ago
Michail Vourlakos 5b3c00ff8c improve code for enable/disable checkRestoreZoom 7 years ago
Michail Vourlakos b12cf1446a orchestrate better directRender for plasmoid
--use same techniques with the containment in order
to activate/deactivate the directRender through
the latte plasmoid
7 years ago
Michail Vourlakos 05e08e57c5 delay a bit the directRender activation
--previously directRender was activating also when
from the first entered element the mouse moved fast
enough to the second element. But this could happen
also accidentaly some times. This improvements indicates
also the mouse position in the second element to be
near the center of that element
7 years ago
Michail Vourlakos b41ecad4af fix #858,lower window preview a bit 7 years ago
Michail Vourlakos 3462562a81 fix #857,improve par.effect with tooltips
--window previews were lowered in order to touch
the task for which are presenting issues. This way
the mouse confirms alway the taskContainsMouse flag
--title tooltips are shown only when the dock has
ended its sliding-in animations
7 years ago
Michail Vourlakos 8c0ada943b remove deprecated code
--this code was creating also an issue sometimes
that wasnt showing tasks at all on startup
7 years ago
Michail Vourlakos f4370ccc21 improve identification of immediate launchers
--when a window is closing if there is already
an assigned launcher then the launcher must be
shown without animation
7 years ago
Michail Vourlakos 8cf6f49bb9 improvements to parabolic effect
--issue #852, improve how the two states of zoom-in
and directRendering are indetified and triggered.
The initialization of hovering indexes now is
trigerred only for window mouse out events.
7 years ago
Michail Vourlakos f9afa1bc1f move completely to containmentactions 7 years ago
Michail Vourlakos 2a78437996 add some resistance in activating directRendering
--add some resistance for the functionality added for
issue #852
7 years ago
Michail Vourlakos b64bb1f9d2 use very high sensitivity for parabolic effect 7 years ago
Michail Vourlakos a2fc2edc30 publish internal separators indexes after dragging 7 years ago
Michail Vourlakos 67ce3441a4 MultipleLayouts:launchers signals made layout aware 7 years ago
Michail Vourlakos e56478fb8a publish tasks geometries only for current layout
--this is used mainly from Multiple Layouts in order
to publish tasks geometries only those plasmoids that
belong to the current layout
7 years ago
Michail Vourlakos 274c6a653d add managedLayout to dockView
--this way a dock can belong to specific Layout
and this could be changed runtime in a multi-layout
runtime environment
7 years ago
Michail Vourlakos 4692b87bb5 improve GlowPoint contrast 7 years ago
Michail Vourlakos 1d6c5f074f fix #816,add more task shortcuts
--added shortcuts for tasks 10-19
7 years ago
Michail Vourlakos bc7a9eac9a fix #811,timers to check previews/menus/tooltips
--there were cases that window previews/tasks context menu/
title tooltips were shown at the same time. This patch fixes this
by adding timers to catch these case and show the above on
priority. The priority used is tasks context menu/window
previews/title tooltips
7 years ago
Michail Vourlakos 5ad5620e4e dont animate task additions after dragging 7 years ago
Michail Vourlakos b81f103def dont move launcher of origin dock in ext.signal 7 years ago
Michail Vourlakos 920de6cd6e fix RTL layout for vertical and alignments 7 years ago
Michail Vourlakos f8f78566f9 apply layout mirroring for RTL 7 years ago
Michail Vourlakos 7b8efcaed7 implement fully active indicator types/glows 7 years ago
Michail Vourlakos 5388b709a8 update plasmoid to support glowOnlyOnActive 7 years ago
Michail Vourlakos b30caca172 fix contextmenu blocking parab.effect 7 years ago
Michail Vourlakos f2f2a469d3 improve add/remove internal separators mechanism
--the user now can add an internal separator and set
its position also by taking into account in which task
the context menu is shown
--the user now can remove any internal separator wants to
by showing its context menu options in editMode
7 years ago
Michail Vourlakos 1eca9875f9 drop internal separatorPos for new architecture 7 years ago
Michail Vourlakos f101334443 add/remove intern.separators from context menu 7 years ago
Michail Vourlakos 1a777d9ee4 drop internalSeparatorPos from plasmoid
--the internalSeparatorPos approach was removed
from the plasmoid. The next steps are:
1. ParabolicManagers to update their logic in order
to take into account multiple internal separators
2. To hide all consequent separators either as applets
all internal separators
7 years ago
Michail Vourlakos 63fa3c4b1d drop internalSeparatorHidden from parabolicManager
--improvements for new separators architecture
7 years ago
Michail Vourlakos 24c9751f2e initial architecture for multiple int.separators
--make the single separator old architecture to
work correctly with the new multiple internal
separators architecture. Many things need to be
updated in order for this to work but lets make
one step at a time.
7 years ago
Michail Vourlakos 88108ac524 add option to debug timers
--this is especially useful in order to be sure that
there are timers that create unending loops
7 years ago
Michail Vourlakos 1dd9a30139 release connect signals ondestruction
--following issue from #730 more qml code
was found that wasnt releasing connect signals
properly. That could create crashes because
already deleted qml objects could receive such
signals. That was observed after qt>=5.9.2
7 years ago
Michail Vourlakos 1eb36ff7de mimic ondemand the parabolic effect
--it is used to restore a task after bouncing
for taking users attention and the task
contains also the mouse
7 years ago
Michail Vourlakos 397d169309 fix a glitch when changing activities
--when we go to an activity that has a launcher
and a window at the same time open that there
wasnt previously present we had a glitch
7 years ago
Michail Vourlakos 507e42ee08 improve Attention interaction with parabolic effect 7 years ago
Michail Vourlakos 8ecef66d5d fix coloring in some badges
--a faulty check was using backgroundColor instead of
textColor for badges shown from global shortcuts indicators
--improve badges to understand the new url form of
plasma 5.11 launchers
7 years ago
Michail Vourlakos 5bd4bbe188 play launcher removal animation correct
--when a launcher belonged at all activities and
the user was pinning at an another explicit activity
that wasnt the current one the removal animation
wasnt played correctly
7 years ago
Michail Vourlakos 0df95400d8 hidden internal separator at the edges
--The internal separator can be hidden when it is
found at the edges of Tasks Plasmoid, it creates a
more pleasant result. If the user wants separators at
the edges can always use the Separator plasmoid from
audoban. This fix would fix also the overlap
of internal sepator with external applet separator.
7 years ago
Michail Vourlakos 83fd7fd112 bound Tasks ListView at its limits
--block dragging the entire ListView
--make tasks dragging lighter in resistance
8 years ago
Michail Vourlakos 02ebb701c9 separate launchers and windows in tasksModel
--this is exactly the plasma icons-only taskmanager
is using, in that what way we should have exactly the
same befavior with launchers positioning
8 years ago
Michail Vourlakos ac3058c777 delay window removal when closing from context menu 8 years ago
Michail Vourlakos 6a47f6e811 update launchers group correctly from config win 8 years ago
Michail Vourlakos eefbc5e9ec fix #636,new approach for Layout,Global launchers
--changed the design totally and use only signals
between plasmoid in order to update their models. This
way the launcherList from their tasksmodel should be
updated only on the initialization phase of the Latte
plasmoid. Afterwards signaling between them takes
place, in order to inform each other for adding,
removing launchers, moving them and assigning them
to activities
8 years ago
Michail Vourlakos bd05c7dfed fix #636,try to protect when setting launcherlist 8 years ago
Michail Vourlakos 9f5ab1397d support combining window previews and titletips 8 years ago
Michail Vourlakos 45add5988f fix #622,support title tooltips for hovered applets 8 years ago
Michail Vourlakos 0b344be641 dont release zoom when plasmoid context menu is shown 8 years ago
Michail Vourlakos 8abc2e517a config option for task title tooltips 8 years ago
Michail Vourlakos 35b4cc56b5 support title tooltips for tasks 8 years ago
Michail Vourlakos 0b34dcf1b3 fix #608, support Unique,Layout,Global launchers 8 years ago
Michail Vourlakos b48d1eb4ac improve layout switching in plasmoid and manager 8 years ago
Michail Vourlakos 9f20ceb83e remove globalSettings from qml part
--globalSettings remain only for the layouts in the
config window
8 years ago
Michail Vourlakos f2de335d35 move functionality to new architecture
--add functionality for layoutManager
--add widgets action and alternative layout action to
layoutManager
--remove more functionality that belongs to globalSettings
8 years ago
Michail Vourlakos badcaa5474 fix a crash when changing layouts/old sessions
--when changing layouts/old sessions from the Latte Tasks
Context menu, Latte was crashing very often. Add the switching
code into a Timer to make its execution asynchronoushly
8 years ago
Michail Vourlakos f9ce9ffc9c fix #574,fix internal identification of tasks
--as in an older commit has been documented the qml
function childAt doesnt work propery for our ListView,
there are cases that returns an empty/null child. For this
reason we have implemented our own childAtPos function in
order to immulate the save behavior. Unfortunately there
wasnt a check in it that the items checked based on their
geometry they were actually TaskDelegate's. This fix not
only fixes bug #574 but also should provide a cleaner dragging
behavior, at least for the dragging phase
8 years ago
Michail Vourlakos 7d77ab5195 expose user specified shadows to qml 8 years ago
Michail Vourlakos e2fe456a7e fix #544,disableRestoreZoom is released more cases 8 years ago
Michail Vourlakos be83d54339 fix #521,support syncing launchers for all docks
--this commit is the last for this to be supported.
It checks if the globalLauncherList is empty and in
such case when syncing is enabled the current dock
launchers are used
8 years ago
Michail Vourlakos cf7b820e2e sync launchers correctly between docks,def session 8 years ago
Michail Vourlakos 271810d095 use TaskDelegate activateTask to activate a task 8 years ago
Michail Vourlakos ee6c831b01 fix #510,support correctly global shortcuts
--in X11 now the globalshortcuts class takes into
account if the user presses any modifier in order
to hide the dock
--if the dock is hidden whenever a relevant global
shortcut is triggered the dock is shown and number
indicators for the tasks are shown
8 years ago
Michail Vourlakos 458750aa06 fix #496,crash when changing to Alternative Session
-- a rare crash when changing to Alternative Session
through Tasks context menu
8 years ago
Michail Vourlakos 05c2123708 go faster to directRender state
--improve more the parabolic animation and
fix an issue that was based on the time window
between smooth animation and directRender when
the mouse activates the parabolic effect in the
begin.
8 years ago
Michail Vourlakos 4eb0645474 fix #489,option for mouse wheel actions 8 years ago
Michail Vourlakos 51b600725d fix parabolic effect and Tasks thickness
--this fixes the Tasks plasmoid thickness and
improves a small breakage in the parabolic effect.
The Tasks thickness is going to maximum when there
is a hoveredInded in plasmoid or in containment.
--the previous fix, fixes also a small breakage in
the parabolic effect animation. The breakage was
appearing when going from
applet->applet separator->task and directRender is
enabled
8 years ago
Michail Vourlakos b79b375715 access internal plasma separator from contextmenu
--all the functionality concerning the internal separator
is moved completely into the plasmoid. Now the add/remove
of the internal separator can be found through the Tasks
contextmenu as long as we are in editMode (that is showing
the configuration window)
8 years ago
Michail Vourlakos 988448345f add margins to applet separators
--fix for indicating the separator on startup
--improvements in parabolic signaling
8 years ago
Michail Vourlakos fa9b313c92 use more the ParabolicManagers
-- add even better clearZooms based on
signaling from ParabolicManagers
8 years ago
Michail Vourlakos a9df1d6745 add ParabolicManager in the plasmoid
--move all the logic around parabolic effect signals
into one place, ParabolicManager. The ParabolicManager
is responsible for triggering all the messages to tasks
that are neighbour to the hovered task. This will
help a lot to catch cases such as separators and proper
clearing zoom.
8 years ago
Michail Vourlakos 7c51065fcb fix #468,lock parabolic animation !editMode
--lock properly the parabolic animation for Tasks
plasmoid when the user right clicks the plasmoid
8 years ago
Michail Vourlakos 84e390c312 reduce warnings 8 years ago
Michail Vourlakos 49d20f4617 fix missing typo 8 years ago
Michail Vourlakos c6a8ed09b5 refactor Task code in plasmoid
--refactore the previous enormous classes
TaskDelegate and TaskIconItem and in general
put anything relates to Task into its own
specific directory
8 years ago
Michail Vourlakos 515384dd48 improve heuristic of neighbour tasks 8 years ago
Michail Vourlakos a4cf8055fa improve task needs attention design
--when a task needs attention the task bounces for
8500ms instead of 6500ms
--the color animation of needs attention was
improved in order to not drain the cpu cycles
--all animations concerning needs attention,bouncing
and color are stopped after the 8500ms timer
--the bounce animation is not stopped in the middle
but it waits each bounce to finish in order to make the checks
8 years ago
Michail Vourlakos 7c07385c10 fix #453,substitute absolute build path references
--fixes the kdesrc-build installation
8 years ago