1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-13 16:58:17 +03:00

385 Commits

Author SHA1 Message Date
Michail Vourlakos
722d656bfa enhance colorschemes and colorizer to new arch 2018-10-27 14:37:11 +03:00
Michail Vourlakos
3553415c59 load roundness theme info properly 2018-10-27 00:59:36 +03:00
Michail Vourlakos
92ce3f15c1 introduce plasma theme extended
--this is going to be a class that will
provide all the extended info of a plasma
theme such as roundness, dark/light color
schemes
2018-10-26 23:40:10 +03:00
Michail Vourlakos
37b89f2830 move qml luminance calculations to js files 2018-10-26 18:19:56 +03:00
Michail Vourlakos
9374ff3cc4 move colorizeManager to its own Item class 2018-10-26 18:19:56 +03:00
Michail Vourlakos
d705d5a657 fixes for new Communicator protocol 2018-10-23 20:42:14 +03:00
Michail Vourlakos
5bab21d786 add function to identify mainitem in applets
--applets can have different main elements based on their
implementation. In such case we use a depth of 2 in order
to search for elements that contain variable isInLatte
2018-10-23 20:42:14 +03:00
Michail Vourlakos
4a13d12703 send colorizerManager colors to applets 2018-10-23 20:42:14 +03:00
Michail Vourlakos
9dae7f7170 add Colorizing properties in Communicator
--add properties in order for the Communicator
to inform applet when to use the LatteColorScheme
2018-10-23 20:42:14 +03:00
Michail Vourlakos
1f51524d42 create Applet Communicator for applets
--this item is fully responsible in order to
communicate the latte containment with any
underlying applet. A protocol specification
is used in that item in order for applets and
latte to exchange information.

currently supported:
   ingoing parameters (to applet):
      bool isInLatte // is in a Latte dock

   outgoing parameters (from applet):
         //deprecated from disableLatteOverlay
      bool disableLatteParabolicIcon

      bool disableLatteOverlay //dont use Latte overlays
2018-10-23 20:42:13 +03:00
Michail Vourlakos
c5150300d5 fix warnings 2018-10-23 20:42:13 +03:00
Michail Vourlakos
f2d088a297 add theme roundness option at preferences page 2018-10-23 20:42:13 +03:00
Michail Vourlakos
e1712dded4 add more colors to SchemeColors 2018-10-23 20:42:13 +03:00
Michail Vourlakos
1192760f28 apply Colorizer at per applet bases 2018-10-23 20:42:13 +03:00
Michail Vourlakos
89b86c4b3e add customBackground class for colorizer
--in order to overlay properly the panel background
a roundness option was needed that takes into account
which borders should be drawn. In an upcoming commit
the user will be able to adjut the current plasma
theme roundness. The Colorizer is using now the
CustomBackground in order to draw the background
when the user wants to draw the contents based on
the current active window color scheme.
2018-10-23 20:42:13 +03:00
Michail Vourlakos
1510f1013c add option to colorize based on active win scheme 2018-10-23 20:42:13 +03:00
Michail Vourlakos
f6b4aa55cf support background painting based on window scheme
--support painting based on the active window scheme.
Added a schemecolors class for this and updated
abstractwindowinterface to provide tracking for windows
color schemes.
2018-10-23 20:42:12 +03:00
Michail Vourlakos
500b3d2b86 respect shrink margins for thickBase
--increase also the minimum for thickHigh in order
to follow plasma design

BUG: 398950, 398951
FIXED-IN: 0.8.2
2018-09-23 11:42:33 +03:00
Michail Vourlakos
f4c9060bff update delete icons to plasma design
BUG: 398941
FIXED-IN: 0.8.2
2018-09-22 18:55:32 +03:00
Michail Vourlakos
0f79c08e86 simplify code readability for panelShadowsActive
--fix also a case that the user hasnt enabled to
show panel background at all from the Show option
and the shadows where shown because they were
chosen before it was disabled by the user
2018-09-01 11:34:27 +03:00
Michail Vourlakos
fc8a531837 fix disabled monochrome contents for no background
--when the user had chosen monochrome contents and had
disabled the panel background totally the case wasnt
activating monochrome contents when needed
2018-09-01 10:59:04 +03:00
Michail Vourlakos
ec0e16ca5a consider preferredSize(s) only for >0 values
--do not consider preferredWidth or preferredHeight
for applets when that value is <=0 otherwise that
applet it may become invisible. Such case is the
plasma analog clock when it is locked at a vertical
dock

BUG: 398098
FIXED-IN: 0.8.1
2018-08-31 18:36:44 +03:00
Yuri Chornoivan
7323068f36 Fix minor EBN issues 2018-08-30 08:47:53 +03:00
Michail Vourlakos
87094a6fe7 dont draw panel shadows when theme doesnot provide
when the plasma theme was not supporting shadows then
Latte was double drawing the panel background when
the user has chosen that wanted shadows

BUG: 397980
FIXED-IN: 0.8.1
2018-08-28 13:49:32 +03:00
Michail Vourlakos
6070d2b0f0 restore panel shadows for docks 2018-08-28 10:24:46 +03:00
Michail Vourlakos
81d3a12e91 respect different panel backgrounds from theme
--many plasma themes provide a different panel
background per edge, with different styles or
transparency levels. Latte now respects the
plasma theme concerning the panel backgrounds
found in a plasma theme.
2018-08-27 22:56:28 +03:00
Michail Vourlakos
78b41eff91 use current transparency to update effects
--the background contrast effect should be applied
only when the dock/panel is visually solid otherwise
it may block the transparency settings

BUG: 397431
FIXED-IN: v0.8.1
2018-08-21 00:51:36 +03:00
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
2018-08-04 02:05:44 +03:00
Michail Vourlakos
fef362a52f a way for the user to change settings window size
--user can now use Meta+ScrollWheel in order to
increase/decrease the size of the dock settings
window according to its preference

BUG: 397038
2018-08-03 01:52:14 +03:00
Michail Vourlakos
b5954009c2 Blur is not working for solid panels
--removing the option to check blurring
based on whether a panel is solid or not
and also check !compositing. Blurring doesnt
make any sense at !compositing environments

BUG: 396955
FIXED-IN: 0.8.1
2018-07-29 17:11:25 +03:00
Michail Vourlakos
e7bd3f5aaf dont block tooltips for zoom scale=1
--trying to combine dock mode, panel mode and
parabolic effect with plasma applets current implementation
can create such issues. Removing the zoom=1
criteria to activate the Latte MouseArea. The
user can still lock plasmoids that want the
Hover Default Plasmoid behavior or use the
Latte protocol to understand when they are in a Latte
containment.

FIXED-IN: 0.8.1
2018-07-28 19:17:26 +03:00
Michail Vourlakos
8251fa8263 forward wheel events for underneath plasmoids
BUG: 396811
FIXED-IN: 0.8.1
2018-07-24 18:04:50 +03:00
Michail Vourlakos
e908c1207c fixes badges from applets
--fix for binding loop for applets badges
--dont hide applets number badges on hovering
2018-07-23 20:17:44 +03:00
Michail Vourlakos
3ea01dfafc fix badge text warning and border.color 2018-07-23 20:02:29 +03:00
Michail Vourlakos
6cff0be9c1 enable Meta forward from KWin to Latte
In Latte Preferences the user can now enable/disable
the Meta key forwarding for showing the
Application Launcher

BUG: 396754
2018-07-23 18:59:30 +03:00
Michail Vourlakos
d4cb4e2410 setup unified global shortcuts per dock
--in multiple layouts environment the user
may prefer different settings for its global
shortcuts, in some may wants to use global
shortcuts for its applets and in another
layout may not.
2018-07-23 17:17:00 +03:00
Michail Vourlakos
6708510213 support a meta badge visual from global shortcuts
--when an application launcher exists, Latte can show
a "Meta" badge for that applet instead of the global
shortcut action number. With this patch we take also
into account when the assigned application launcher is
in different dock/panel and show it accordingly

BUG: 396753
2018-07-23 17:00:58 +03:00
Michail Vourlakos
00d15a7906 support no-unified global shortcuts
--v0.8 introduced unified global shortcuts for all
cases, that means that applets are also taken into
account for Latte activation/new instance global
shortcuts. A new parameter is introduced with
the patch at Latte global settings file called
"unifiedGlobalShortcuts", the user can set that
parameter to false before Latte startup in order
to use only global shortcuts relevant to the
Latte plasmoid.
2018-07-21 19:46:25 +03:00
Michail Vourlakos
91a1736b14 add debug flag for overloaded applets
--a visual indicator in order to show which plasma
applets have been overloaded from Latte. The overloaded
mechanism is a way in order to make these applets work
properly with Latte parabolic effect
2018-07-08 20:51:30 +03:00
Michail Vourlakos
50a4727ffa fix #867,enable neutral areas in corner cases
--The Plasma layout is using the Latte plasmoid. By
following that case the neutral applets areas werent
activated. This is fixed now and also the click animation
in such cases.
2018-04-30 14:05:04 +03:00
Michail Vourlakos
28f0bed9dd fix #997,decrease text size when needed
Launchers Area text wasnt decreasing its size for
very small thickness.
2018-04-19 18:05:17 +03:00
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
2018-04-19 17:55:47 +03:00
Michail Vourlakos
2d9b5376b7 add missing license headers in javascript files 2018-04-15 15:23:39 +03:00
Michail Vourlakos
62497561d2 Revert "wayland fix crash when changing location"
This reverts commit 797ead1f1d42292a8ef3dbf79a118fd46ebce225.
2018-04-14 20:48:55 +03:00
Michail Vourlakos
797ead1f1d wayland fix crash when changing location
--when a dock was changing location and kwin
effects where enabled then a crash was appearing
under wayland. So we block drawing effects when
a dock is inTempHiding or inForceHiding
2018-04-14 18:38:18 +03:00
Michail Vourlakos
506d23d948 enable parab.effect for latte spacer 2018-04-14 18:34:02 +03:00
Michail Vourlakos
7930b5950d remove present windows applet from blacklist 2018-04-14 18:12:21 +03:00
Michail Vourlakos
c14470c742 fix #983,expose latte availability to applets
--allow the applet developers to set at their
applet main file:

property bool disableLatteParabolicIcon: true

in order to disable any Latte functionality
concerning the parabolic icon

-- allow the applet developers to set at their
main file:

property bool isInLatte: false

in order to be informed by Latte when they are
in a Latte containment. For what ever purposes
the developers need to adjust to their plasmoid.
2018-04-14 17:58:45 +03:00
Michail Vourlakos
7f89bd99b0 fix #985,use same style for tasks/applets numbers 2018-04-14 05:39:01 +03:00
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.
2018-04-09 01:03:05 +03:00