Commit Graph

456 Commits (a20302a598a24b2a3215a9ad204bff536aed1830)

Author SHA1 Message Date
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.
6 years ago
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
6 years ago
Michail Vourlakos a885eaa163 dont show progress badge if user disabled it 6 years ago
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
6 years ago
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
6 years ago
Yuri Chornoivan 15ab253efd Fix minor EBN issues 6 years ago
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
6 years ago
Michail Vourlakos 43d1985d4e improve LeftClick::PreviewWindows
--when the user clicks a single window now it is
just activated instead of showing first the preview
window showing only one instance

BUG:410417
6 years ago
Michail Vourlakos 5bab4b0409 wayland,show preview windows for grouped tasks
BUG: 410408
6 years ago
Michail Vourlakos 6121799346 avoid Tasks Pixelization
--enable cached:true for Tasks effects in order
to try to avoid pixelization in some cases when
effects are enabled
6 years ago
Michail Vourlakos 60e97ec0be fix blurred icons
--revert back the PIXELIZATION workaround because
it creates BLURRED icons even for sizes>=64px!

BUG:410365
FIXED-IN:0.9.1
6 years ago
Michail Vourlakos 4ebf3e2329 update progress badge properly
--send repaint signals properly for BadgeText

BUG:410318
FIXED-IN:0.9.1
6 years ago
Michail Vourlakos 780d807cc8 find a way to apply LatteSideColoring for Tasks 6 years ago
Michail Vourlakos 30f3145f95 Introduce Flat and 3D style for Badges
--the user can now choose to enable or NOT 3D
style for all badges through Latte Global Preferences
window. By default the Flat style is preferred

BUG: 409467
6 years ago
Michail Vourlakos 6fbb2d7d0d define specific prominent badge colors 6 years ago
Michail Vourlakos df9394ddd6 option for prominent color of Notification Badges
--The user from Tasks,Badges can choose a more prominent
color for notification badges (usually reddish). In case
the user has not enabled that option(default) then the plasma
theme highlight color is used which is also the default
option of Latte v0.8

BUG: 408955
6 years ago
Michail Vourlakos f75605d78d introduce Resources for Indicators 6 years ago
Michail Vourlakos 33962fa1fc expose some animations properties to Indicators
--animations enabled and durationTime exposed to
Indicators
6 years ago
Michail Vourlakos cda688c2a5 refactor:move AddingVisuals to LatteComponents 6 years ago
Michail Vourlakos d283e61b5d improve DragDrop behavior/responsiveness 6 years ago
Michail Vourlakos dfcd3e2452 reinstantiate properly tasks previews
--this code helps the previewsmodel to
reinstantiate when changing from single
instance preview to another single one
6 years ago
Michail Vourlakos 682e039439 fix for VirtualDesktops array identifying
BUG: 407351
6 years ago
Michail Vourlakos 74772cd7a9 introduce SCROLLING options for Tasks
--the user can now adjust the Scrolling options
for its Tasks when the items overflow. The following
are provided:
Scrolling: ENABLE/DISABLE
--Manual Scrolling: DISABLE/PARALLEL/HORIZONTALANDVERTICAL
--Auto Scrolling: ENABLE/DISABLE

BUG: 407779
6 years ago
Michail Vourlakos 828b31fb78 animate new launchers when dropping them 6 years ago
Michail Vourlakos 7ffe7d436d introduce plasmoid:TasksExtendedManager
--All the Tasks WORKSAROUNDS for libtaskmanager
limitation in one place
6 years ago
Michail Vourlakos 1ef4de0da8 VASTLY IMPROVE dragging experience
--when dragging a new applet over the view
the responsiveness is now improved vastly
--the new architecture uses two different
DragAndDropAreas. One which is the old one
and is used when dragged launchers, urls and
separators. The second is used only when
applets are dragged into the view
--the visuals for adding launchers/applets have
been improved and a circular visual is preferred
now instead
6 years ago
Michail Vourlakos be25a3b145 improve debug graphics mode visuals 6 years ago
Michail Vourlakos 844dc8096c fix startup warnings 6 years ago
Michail Vourlakos a61120bd7d enable Tasks draggin in live editing mode 6 years ago
Michail Vourlakos 215d74092f HACK TO avoid pixelixation in TASKS 6 years ago
Michail Vourlakos 7ae63e7dd1 optimize screenGeometry calls from Tasks plasmoid
--plasmoid.screenGeometry is costly under Latte environment
because it supports multple layouts in multiple activities.
By using the View::screenGeometry the calls are minimized
almost totally.
6 years ago
Michail Vourlakos 6f47b7c4c8 rename Rectangled TO Square for Indicators 6 years ago
Michail Vourlakos f10239e364 onwheel event publish task geometries 6 years ago
Michail Vourlakos 704a12a522 center properly tasks published geometries 6 years ago
Michail Vourlakos 763d22643e enable tasks dragging !inConfigureAppletsMode 6 years ago
Michail Vourlakos 8168d4ec13 fix pixelated icons when par.effect disabled 6 years ago
Michail Vourlakos 13cb58d54a improve badges borders colors 6 years ago
Michail Vourlakos 12e8863f4b update info badges color for tasks notifications
--info badges updated their colors in order to attract
more attention on them. Most themes etc. use for their
negativeTextColor a reddish color so that is a good
match for this.
6 years ago
Michail Vourlakos 18fdde41a2 introduce auto-scrolling for tasks 6 years ago
Michail Vourlakos 05b5344379 improve when tasks geometries are published
--take into account the scrolling area, when animations
in scrolling area are ended tasks geometries could be
calculated again
6 years ago
Michail Vourlakos fa61ee8842 scroll to active task automatically 6 years ago
Michail Vourlakos 3f66f09045 bound published tasks geometries at scrollarea 6 years ago
Michail Vourlakos fd99fba0bf refactor:Previews and TasksList on own directories 6 years ago
Michail Vourlakos 6710be3ae5 update plasmoid to support scrolling 6 years ago
Michail Vourlakos 6505e8797f send mouse signals from View to containment
--this is side-way path for mouse events and
more specific the mouse pressed, released
events to be sent from parent window to its
qml containment part. This way it is possible
to keep the original plasma applet behavior
such as original plasma tooltips and provide
Latte specific functionality such as animated
clicks from indicators.

NOTE: An investigation - testing took place in
order to check if this approach could be also used
for mouseMove events to be used for applets parabolic
effect. The result was that this was not possible because
there were too many signals and too much calculations
too identify for which applet the signal belonged to.
The parabolic effect was not fluid in that case and
could not catch up.
6 years ago
Michail Vourlakos d95d861b64 add new options to indicators interface
--providesHoveredAnimation, in order to disable
the Latte one
--providesClickedAnimation, in order to disable
the Latte one
--needsMouseEventCoordinates, in order to know
when the mouse pressed e.g. creating animations
like the android way
6 years ago
Michail Vourlakos 30174bbb00 fix parabolic effect for vertical views 6 years ago
Michail Vourlakos 834bb56194 provide panel transparency info to indicators 6 years ago
Tranter Madi 5fe27176fa Center align shortcut badges when iconSize < 48
Summary:
When iconSize is not big enough, center aligned shortcut badges look better than top-left aligned ones.

BUG: 406037

Test Plan:
- When iconSize < 48: shortcut badges are center aligned
- When iconSize >= 48: they are top-left aligned

For example, with iconSize = 32:
Before:
{F6736365}
After:
{F6736366}

Reviewers: #latte_dock, mvourlakos

Reviewed By: mvourlakos

Subscribers: mvourlakos, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D20128
6 years ago
Michail Vourlakos d4b2589d0c expose isPressed state to indicators 6 years ago
Michail Vourlakos 612c53b78a respect liveEditMode for plasmoid separators 6 years ago
Michail Vourlakos 6569160195 improve icon colors for applets
--provide a background and glow color for those
applets that do not provide an icon to render
6 years ago
Michail Vourlakos 69bbb82841 improve icons colors names 6 years ago
Michail Vourlakos f9289dc558 support colorGroup for IconItem
--this way we fix all coloring issues with
plasma theme icons e.g. the audio indicator
was not painted correctly for some themes
6 years ago
Michail Vourlakos 262dfa6b09 Indicators protocol change attributes to level
--introduce a new class called level which contains
all the needed information concerning indicator level
and at the same time the bridge that provides information
for the specific indicator states
6 years ago
Michail Vourlakos 614ec3ea48 move shortcut badges at top left corner
--this way the elements are observed better and
the user is able to both watch out the items and
the shortcut that activates them
6 years ago
Michail Vourlakos 0b90411b1d IMPORTANT: All new Indicators architecture
--this huge commit contains all the changes needed
in order for Latte to load Indicators dynamically
from their own packages
6 years ago
Michail Vourlakos ca80a7932f introduce LatteComponents to be consumed globally
--this is needed in order for indicators plugins in
the future to provide the same UI elements with the
rest of LatteView Settings windows
6 years ago
Michail Vourlakos 18d6a0354b Previews show again Activities and Desktops text
--merge plasma taskmanager commit, D19257
6 years ago
Michail Vourlakos b89ef0e50b fix warnings fron new indicators architecture 6 years ago
Michail Vourlakos 8be388b893 improve vastly the indicators arch independence 6 years ago
Michail Vourlakos 0d568c81d5 update indicators architecture to be independent
--first steps in order to support completely independent
indicators that can be downloaded/installed/used online
6 years ago
Michail Vourlakos 10fbf41081 enable hover effect for Plasma Style 6 years ago
Michail Vourlakos e250048048 indicators active for previews only for windows 6 years ago
Michail Vourlakos c85ec4c07a new architecture for Indicators
--indicators now support both Back/Front
layers. Back layer is the usual layer
behind the current Item and the Front layer is
a layer above the current Item (overlay)
--update Unity to follow new architecture
6 years ago
Michail Vourlakos a919dc3fca Unity:add triangles, make things more interesting
--added triangles indicators that follow plasma theme
coloring in order to indicate windows count, minimized
state and isActive flag

CCBUG: 404122
6 years ago
Michail Vourlakos 104ee8581f add more information for indicators consumption
--currentIconSize/maxIconSize/windowsCount/
windowsMinimizedCount
6 years ago
Michail Vourlakos c07c1c75ab disable separators size when parabolicEffectEnabled 6 years ago
Michail Vourlakos f7b9f49af8 fix crash from information badges
--the Colorizer that was responsible to
grey out the information badges when the
task is dragged, it was creating crashes
when its latte view was removed by the user
6 years ago
Michail Vourlakos d61f8d5dd2 make slide in/out windows independent 6 years ago
Michail Vourlakos 1cc88b4c22 make launcher bounce animation independent 6 years ago
Michail Vourlakos 4f84d10b0b fix windowsCount for Task in plasmoid 6 years ago
Michail Vourlakos b00598949d activate/disable independent animations 6 years ago
Michail Vourlakos 25b636465a split animations and make par.effect independent 6 years ago
Michail Vourlakos 9e6abb70d0 fix groupedTasks activation for !compositing 6 years ago
Michail Vourlakos b15df34cc4 livemode:enable parabolic effect for editMode
--first commit to restructure editMode in order to
support livemode under editing. Live mode means
that all options changes during editMode will be
available to be tested directly
6 years ago
Michail Vourlakos f3be388c40 expose windowsCount to Indicators 6 years ago
Michail Vourlakos ff77bc3485 compute icon colors only for indicators requesting 6 years ago
Michail Vourlakos b1865e2634 hide indicator properly when task is removed 6 years ago
Michail Vourlakos c64df5a078 fixes for separators 6 years ago
Michail Vourlakos 2af8d6290a move task IndicatorLoader in its own qml file 6 years ago
Michail Vourlakos f1eb8becfc improvements for Plasma Style indicator 6 years ago
Michail Vourlakos fe71e5dd2e remove deprecated headers 6 years ago
Michail Vourlakos 8d265f9432 fix attention animation for reverse state 6 years ago
Michail Vourlakos ef2e464ca8 improvements for separators 6 years ago
Michail Vourlakos 98c20e4f83 adjust separators to new indicators design 6 years ago
Michail Vourlakos e40e1556a9 fix attention animation with new indicators 6 years ago
Michail Vourlakos 388a5cdb99 important fixes for tasks states 6 years ago
Michail Vourlakos 54a9e7ed17 reposition tasks indicatots to a better place 6 years ago
Michail Vourlakos d9fe9d438d move Plasma/UnityIndicators into liblatte2 6 years ago
Michail Vourlakos ab85d28701 move LatteIndicator at Latte library as it should 6 years ago
Michail Vourlakos 3d7f5e7990 update Latte Indicator to new design 6 years ago
Michail Vourlakos 0147ed8451 update indicators design in plasmoid 6 years ago
Michail Vourlakos 82a11b9f4a adjust plasmoid to new indicators design 6 years ago
Michail Vourlakos c2dc637a46 activate Unity indicator style
--this is just initial work and not even close
to the final result but it is the ground in order
to build upon.
6 years ago
Michail Vourlakos e1ccd5f096 improve semantics for Task.LatteIndicator 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 c5bf65dc32 improve wheel behavior in plasmoid 6 years ago
Michail Vourlakos 901b5a9455 hide indicators when are user disabled 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 a295560ed1 move TaskShorcutBadge in its own qml item 6 years ago
Michail Vourlakos fef791d8e1 improve names for globalshortcuts qml calls 6 years ago
Michail Vourlakos 58d8208704 fix binding loops for ShortcutBadges 6 years ago
Michail Vourlakos f6d2e8c8f8 add 24px minimum height for ShortcutBadges 6 years ago
Michail Vourlakos 3bfa313cbb fix crash when showing shortcut badges
BUG: 403647
6 years ago
Michail Vourlakos ef457f7cb3 prioritize progress over notification at InfoBadge
--the new behavior gives more priority to progress actions
over notification items such as "unread emails". Progress
actions at the end probably they will end and after that
the number of notification items will be shown

BUG: 403559
6 years ago
Michail Vourlakos 87a712229d circle View for InfoBadge when AudioBadge is shown
BUG: 403559
6 years ago
Michail Vourlakos 9851a71293 elide InfoBadge for first task when needed
BUG: 403518
6 years ago
Michail Vourlakos 37558dd20c dont include tasks badges at brightness effects
BUG: 403518
6 years ago
Michail Vourlakos c3ddce3c86 improve Tasks IconItem visuals/badges positioning
--in order to be able to draw correctly the badges when
they exceed the tasks boundaries the effects needed to
be repositioned in Task/IconItem. So now shadows/colorizers
etc. provide better freedom from code point of view.

BUG: 403518
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 4bdcd5e4d2 rename task:centralItem to taskIcon
--improve readability of code
6 years ago
Michail Vourlakos e3223d6908 rename task:mainItemContainer to taskItem 6 years ago
Michail Vourlakos 582d05e722 rename plasmoid Task Animations accordingly 6 years ago
Michail Vourlakos 52465865f9 rename Task SubParts in plasmoid accordingly 6 years ago
Michail Vourlakos 6c09418aa8 update badges mask in live mode at all cases
BUG: 403353
6 years ago
Michail Vourlakos e6192a084c update badge mask for value changes
Trying to handle the case of 403353 .
We update the badge mask when the badge information
have updated. Strange issue because this
does not happen when using dbus interface
for tasks badges indicators.
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
Michail Vourlakos 2794de1f73 plasma 5.15 fixes for VirtualDesktops
--support new Virtual Desktops interface under
plasma 5.15
--improve readability of plasma 5.15 fixes
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 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 b191d72144 simplify TaskWindows and avoid a crash
--during dragging the DelegateModel inside
TaskWindows may not catch up with TasksModel
modelIndex() function and that could create
crashes. In order to avoid such crashes the
DelegateModel is not updated during dragging
and we give it also a little time to update
after the dragging has finished.
6 years ago
Michail Vourlakos 694e25ef6b restore mouse wheel actions for tasks
BUG: 401380
FIXED-IN: 0.8.4
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
Yuri Chornoivan 7323068f36 Fix minor EBN issues 7 years ago
Michail Vourlakos afb34a85cf dont crash plasmoid from too fast mouse events
make sure that we delete a valid contextMenu and
not a ghost reference. This could occur from
two-fingers emulating right-click in wayland.

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 ffe2995493 delayer for tasks wheel events
-- touchpads and fast wheel scrolling for
tasks was creating an unpredicted effect
from user point view. The solution was
already tested from audio badges, applets
wheel activation but hadnt got into
for Tasks.

BUG: 396737
FIXED-IN: 0.8.1
7 years ago
Michail Vourlakos 3ea01dfafc fix badge text warning and border.color 7 years ago
Michail Vourlakos e6d87a0097 fix for filtering tasks based on launchers 7 years ago
Michail Vourlakos d7070d6a34 dont update spacers in launcher bouncing animation 7 years ago
Michail Vourlakos 0c6f9be0e7 some improvements to hidden spacers 7 years ago
Michail Vourlakos 1365d2f444 improvements for hidden spacers animations 7 years ago
Michail Vourlakos ff2b895fed fix launch feedback for plasma 5.13
--in plasma 5.13 there are cases the libtaskmanager
shows two launchers because we delay the launcher
removal for the bouncing animation. A way
to fix this by the user is to disable all startups
through plasma systemsettings->launch feedback
for the taskmanager. But because this is a
default plasma option many users would feel
uncomfortable when the launching animation
breaks. Such apps were gimp and inkscape.
This patch handles that case in order to provide
a nice no-breaking launcher animation for
these apps also.
7 years ago
Michail Vourlakos 8866047099 fix #1031,limit tooltip to 80characters 7 years ago
Michail Vourlakos 33f104215a fix #976,dont hide startups when having launchers 7 years ago
Michail Vourlakos 7c593c7112 fix #977,improve geometries publishing 7 years ago
Michail Vourlakos 7f89bd99b0 fix #985,use same style for tasks/applets numbers 7 years ago
Michail Vourlakos e9ad5cd660 fix #981,single window titles in title tooltips 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 3b7f4f4997 [wayland] improve previews behavior 7 years ago
Michail Vourlakos 6de8417007 fix #970,dont show previews when sliding in/out 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 544642903b fix warnings under wayland 7 years ago