1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-09 17:18:11 +03:00
Commit Graph

724 Commits

Author SHA1 Message Date
Michail Vourlakos
b8ad6fceeb drag a maximized window from panel 2018-10-27 20:50:49 +03:00
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
l10n daemon script
7fd9cb1952 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"
2018-10-20 05:56:42 +02:00
l10n daemon script
cfec678f68 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"
2018-10-10 06:14:12 +02: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
l10n daemon script
b50a4807aa 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"
2018-08-20 05:35:00 +02: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
l10n daemon script
ec9ad19c36 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"
2018-08-03 05:35:32 +02: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
49d91aa19e update master version to 0.8.75 2018-07-15 12:52:30 +03:00
Michail Vourlakos
785b3029ad update to stable version 0.8.0
--after one year of work v0.8 with
its fantastic new features is here
2018-07-15 12:50:29 +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
321af85469 update to v0.7.96
--last beta with string freeze before
official release of v0.8
2018-07-06 09:45:36 +03:00
l10n daemon script
bc93683d25 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"
2018-06-25 05:22:31 +02:00
Michail Vourlakos
b3d80717c1 Beta1 for v0.8
--this is the first beta release for
v0.8. Everything will be open for the
upcoming days including translation
strings improvements. Beta2 possibly
will introduce a string freeze.
2018-06-22 18:19:18 +03:00
l10n daemon script
972a56bd69 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"
2018-06-11 05:41:22 +02:00
l10n daemon script
3f4fa6699c 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"
2018-05-19 06:04:08 +02: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
l10n daemon script
680032c222 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"
2018-04-23 05:24:11 +02: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 797ead1f1d.
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
Michail Vourlakos
76af94b59d reposition applet spacer visual debugger
--this way the applet spacer visual debugger
uses the same metrics with its plasmoid
counterpart
2018-04-07 10:52:21 +03:00
Michail Vourlakos
eec2927f88 updates for hidden tasks and int.separators 2018-04-07 02:48:58 +03:00
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
2018-04-06 19:36:30 +03:00
Michail Vourlakos
0c956fac77 fix #961,Improve Visibility consider WindowsGoBelow
--the following case:
[Windows Go Bellow + Top Panel + Panel Transparency<40%
+ "Improve Visibility" + "Not Forced Solid Background
for maximized windows"]
disables the colorizer because the role of the background
is done from the window titleBar.
2018-04-06 13:18:26 +03:00
Michail Vourlakos
13e8791213 add a few margins for applets tooltips 2018-04-06 00:38:23 +03:00
Michail Vourlakos
92c025d94d show tooltips by default
--shows Latte tooltips by default except
if an applet is locked or zoomfactor==1
2018-04-06 00:29:42 +03:00
Michail Vourlakos
ca6188bf46 remove transparency from Colorizer colors
--the plasma theme may have set for textColor
and backgroundColor, colors with transparency.
This can mess up the "Improve Visibility"
feature.
2018-04-05 21:31:49 +03:00
Michail Vourlakos
2967eea11a fix #961,Semi-Tranparent Panels at ImproveVisibility
--update issue #957 in order to take into account
semi-transparent panels. With semi-transparent panels
contrast could be a puzzle. The changes that
introduced with this patch are:
1. Enable Improve Visibility when also case [E] from
 #957 is enabled.
2. When a semi-transparent panel exists in combination
with Improve Visibility option then add a threshold
in order to indicate if the Colorizer will be applied
or not. The threshold is 40% in order to indicate if
a semi-transparent panel is solid or not.
2018-04-05 21:16:30 +03:00
Michail Vourlakos
cd8676e62a blacklist from applet from heuristics
--blacklist "com.github.zren.presentwindows" from
Latte heuristics in order to work correctly with
it.
2018-04-05 14:57:23 +03:00
Michail Vourlakos
f49951566b Revert "change window type for applets tooltip"
This reverts commit fec2756266.
2018-04-04 15:55:05 +03:00
Michail Vourlakos
fec2756266 change window type for applets tooltip
--change type to PopuMenu because Dock interacts
with wayland windows stangely and ToolTip doesnt
provide a beautiful theming.
2018-04-04 14:13:25 +03:00
Michail Vourlakos
065f92bb70 show maxLength value at relevant tooltip 2018-04-04 14:08:45 +03:00
Michail Vourlakos
ba2acef2c1 fix warning 2018-04-04 02:03:39 +03:00
Michail Vourlakos
0712d62a3b dont lose focus from dock tooltips
--because focus is lost from dock tooltips the
dock settings window was closing. We take into
account that case in order to not close the
dock settings window in such case
2018-04-04 01:58:39 +03:00
Michail Vourlakos
820dff0bb5 improve calculations of panelEdgeSpacing 2018-04-03 17:06:54 +03:00
Michail Vourlakos
8f33a4f722 take into account if an applet is locked
--if in applet is locked from the user then we
dont need to try to enforce the parabolic manager
rectangular layouting.
2018-04-03 16:53:56 +03:00
Michail Vourlakos
e0707b684e fix #956,take into account panel transparency
--implementation of the design decisions described at
issue #957. Panel Background and Dynamic Background
options interact with each other concerning
panel transparency and triggering of solidness or
transparency.
2018-04-03 16:00:50 +03:00
Michail Vourlakos
ad16d8d1b8 use plasma desktop version for folderview 2018-04-02 16:41:14 +03:00
Michail Vourlakos
60531484e9 simplify PanelBox states
--combine Center and Justify panel alignments
concairning their anchoring
2018-04-02 14:27:47 +03:00
Michail Vourlakos
285d00a21c dont blur in forceSolidPanel if it was deactivated 2018-04-02 14:01:28 +03:00
Michail Vourlakos
badbe7da6a update to version 0.7.79 2018-04-02 00:50:26 +03:00
Michail Vourlakos
f5bcb6462e disable active indicator for plasma appmenu 2018-04-01 17:13:59 +03:00
Michail Vourlakos
da5cb9c61f fix #946,improve kwin edges support
--make the behaviour more robust and be more
precise at geometries used at all times
2018-04-01 01:04:23 +03:00
Michail Vourlakos
3ea40954fc fix #942,show dock when dragging at kwin edge
-- enable showing the dock if the user drags something
on it and the dock is hidden at a kwin edge
2018-03-31 17:15:48 +03:00
Michail Vourlakos
7ce5938312 add internal separator through drag n' drop 2018-03-31 13:46:26 +03:00
Michail Vourlakos
2b2ddfeb70 improve contrast for Launchers Area text 2018-03-31 11:58:56 +03:00
Michail Vourlakos
1f0acbc3b5 Support KWin Edges mechanism
--by default now Latte supports the KWin Edges mechanism,
this way the following issues are fixed:
fix #935, fix #721, fix #687, fix #512, fix #514
--improve dock behavior when the user user touch
gestures
--fix #144, support KWin bright placeholders
--this behavior can be disabled if the user prefers
the old one from the Tweaks page
--in !compositing no more is shown a 1px line at
the screen edge when the dock is hidden
--support KWin Edges in Multiple Layouts state under
X11
2018-03-31 10:57:03 +03:00
Michail Vourlakos
18151ec023 disable "visibility improvement" for !compositing 2018-03-31 02:02:33 +03:00
Michail Vourlakos
a3ebd17070 fix #928,pass propagated events to applets
-- the mousearea used for the parabolic effect
can block some important signals to go to
underneath applets. We make sure that such
signals are not accepted, and as such are
forwarded to underlying applets.
2018-03-21 17:12:58 +02:00
Michail Vourlakos
edc8905ea8 improve slide out animation 2018-03-18 23:18:28 +02:00
Michail Vourlakos
c65d037468 fix startup warning for Colorizer 2018-03-18 19:17:47 +02:00
Michail Vourlakos
8a3239c924 fix #913,update Justify calculations in editMode
--in Justify alignment fillWidth(s)/Height(s) applets
may exist. In such case the calculations for their values
should be activated because there is a chance that the
panel contents would go out of bounds and out of
screen. This way we make sure that all contents will be always
visible.
2018-03-18 16:31:57 +02:00
Michail Vourlakos
40fc0ca717 block automaticIconSize inTempHiding 2018-03-16 19:05:59 +02:00
Michail Vourlakos
c6d755eb27 delay sliding-in when changing location
--the sliding-in is delayed a bit when
changing location in order to create a more
predictable animation for applets
2018-03-16 18:45:29 +02:00
Michail Vourlakos
35f53e6428 animations improvements
--animate tasks hidden spacers properly
when a task is inAttention and the user
enters the mouse at first time when the task
isnt zoomed
--improve tasks hidden spacers animated
behaviors
--improve applets hidden spacers animated
behaviors
2018-03-16 09:33:37 +02:00
Michail Vourlakos
607d6b4f4a hide plasmoid preview when hovering an applet 2018-03-16 00:39:46 +02:00
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.
2018-03-16 00:35:11 +02:00