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

2560 Commits

Author SHA1 Message Date
Michail Vourlakos
78096b4181 refactor:move window functions to its own class
--all windows related functions present at visibility
manager are moved at their own class WindowsTracker
2019-02-07 19:15:25 +02:00
Michail Vourlakos
a7bfff0b96 reorganize a bit the DynamicBackground settings 2019-02-07 10:01:27 +02:00
Michail Vourlakos
5db22022c1 refactor:cleanup globalshortcuts
--move out from globalshortcuts functions that were
related to latte views functions such as sorting,
highest priority etc. All these were moved to their
appropriate places in layout manager or layout classes
2019-02-07 09:38:01 +02:00
Michail Vourlakos
0be2048d16 improve code style 2019-02-06 18:22:31 +02:00
Tranter Madi
fede9feb2d improvements for global shortcuts
Summary: BUG: 403880

Reviewers: mvourlakos

Reviewed By: mvourlakos

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18717
2019-02-06 18:17:32 +02:00
Michail Vourlakos
499ae015c1 fix publishing launchersSignals in qml
--fix headers in order to work correctly
2019-02-06 08:52:33 +02:00
Michail Vourlakos
53b5904706 dont enforce background shadow for menu plasmoids
--dont enforce background shadow for global menu
plasmoids such as AWC, plasma appmenu, window appmenu

BUG: 403780
2019-02-03 21:44:53 +02:00
Michail Vourlakos
c1bcd5c5ca improvements for global shortcuts based on position
BUG: 403880
2019-02-03 18:50:08 +02:00
Michail Vourlakos
cf93b7516d improve global shortcuts options
--the user can disable "global shortcuts based
on position" by disabling the global shortcuts
for the first two latte items
--improve texts readability

BUG: 403880
2019-02-03 09:55:01 +02:00
Michail Vourlakos
50dc45c61f fix headers references for classes 2019-02-03 01:48:37 +02:00
Michail Vourlakos
d53c2cbea3 fix indents / text appearance 2019-02-03 01:36:39 +02:00
Michail Vourlakos
668c2ff139 dont close view settings when Alternatives shown
--this way the user can also choose different Alternatives
without having false applets replacements or Latte failing

BUG: 403658
2019-02-03 01:31:52 +02:00
Michail Vourlakos
730d204a56 improve settings explanations 2019-02-03 00:59:08 +02:00
Michail Vourlakos
69b49d42dd the user must enable shortcuts based on position
--the option is now present to Behavior page in order
for the user to enable global shortcuts based on position.
2019-02-03 00:32:00 +02:00
Michail Vourlakos
b15bd24218 refactor:move shortcutsEngine to its own class
--in that way all environment related shortcuts
management (e.g. plasma related shortcuts) is moved
in its own class
2019-02-03 00:10:07 +02:00
Michail Vourlakos
8e8b8e0c73 fix warnings 2019-02-02 20:40:18 +02:00
Michail Vourlakos
9cd851faea show only one Meta badge
--more fixes for globalshortcuts
2019-02-02 20:37:34 +02:00
Michail Vourlakos
66b2e4bd9c fixes and improvements for globalshortcuts 2019-02-02 20:19:20 +02:00
Michail Vourlakos
7740649c85 show all views that contain shortcuts 2019-02-02 19:30:56 +02:00
Michail Vourlakos
43acc40ac3 improve names in global shortcuts 2019-02-02 18:46:48 +02:00
Michail Vourlakos
a295560ed1 move TaskShorcutBadge in its own qml item 2019-02-02 18:39:41 +02:00
Michail Vourlakos
fef791d8e1 improve names for globalshortcuts qml calls 2019-02-02 18:34:40 +02:00
Michail Vourlakos
aa2b607fb8 refactor:improve naming in globalshortcuts 2019-02-02 18:16:17 +02:00
Michail Vourlakos
898ab9f9e0 improve hideViewsSlot for globalshortcuts 2019-02-02 18:06:16 +02:00
Michail Vourlakos
aae2ecc78b refactor:update names in globalshortcuts
--use Latte View as a reference instead of the
deprecated Latte Dock
2019-02-02 18:01:52 +02:00
Michail Vourlakos
608275cc6b refactor:move modifiers code at its own class 2019-02-02 17:46:35 +02:00
Michail Vourlakos
f2f8f0eb8b improvements for Meta behavior
--global shortcuts now tracks modifiers changes
and trys to do the best for the user.
1. When Meta is pressed and holded latte views are
shown
2. When Meta is clicked but without been holded then
the Application Launcher code path is preferred
3. Activating Latte entries does not follow the
Meta pressedAndHolded code path
4. Pressing any other modifier except Meta cancels the
Meta pressed code path

BUG: 403734
2019-02-01 20:19:58 +02:00
Michail Vourlakos
6008f080bd remove x11 hack for global shortcuts
--enhance modifiers tracking at globalshortcuts
class
2019-02-01 20:01:00 +02:00
Michail Vourlakos
6f1c66f7d2 Display shortcut badges while holding Super
Summary:
Use `KModifierKeyInfo` to display shortcut badges while holding Super

BUG: 401768

Test Plan:
Just playing with it.
I still don't understand the `GlobalShortcut` class very well, correct me if I make any mistake.

Reviewers: #latte_dock, mvourlakos

Reviewed By: #latte_dock, mvourlakos

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D18620
2019-02-01 19:14:18 +02:00
Michail Vourlakos
f31df4ee71 show plasma shortcuts for applets
--when shortcuts badges are shown then the
plasma assigned shortcuts are preferred to
be presented to the user
2019-01-30 20:04:00 +02:00
Michail Vourlakos
a2569664b3 Latte is now informed for applets shortcuts
--meaning that Latte now has provide information
for applets when these applets have shortcuts been set
by plasma infrastructure.
2019-01-30 19:52:32 +02:00
Michail Vourlakos
e45ab91d65 heal layout file from deprecated applets
--there are deprecated applets that are not
used, I dont know under which circumstances
this ghost applet configurations are created,
they are shown more commonly under plasma
systrays
2019-01-27 20:21:37 +02:00
Michail Vourlakos
2332ca6d89 fix warning 2019-01-27 17:19:52 +02:00
Michail Vourlakos
e5c2b37f79 update Tasks Indexes immediately after shortcuts
--do not delay updating the tasks indexes and counts in
Latte plasmoid in order to avoid inconsistent values
during startup. Now entries activation works immediately
after startup
2019-01-27 17:14:13 +02:00
Michail Vourlakos
58d8208704 fix binding loops for ShortcutBadges 2019-01-27 16:58:38 +02:00
Michail Vourlakos
f6d2e8c8f8 add 24px minimum height for ShortcutBadges 2019-01-27 16:35:31 +02:00
Michail Vourlakos
46dd59b65a cleanup applet shortcuts on startup
--when Latte crashes the global shortcuts from applets
remain untouched in kglobalshortcutsrc file. That fact
based on the Latte architecture that can alter applet
ids during layout loading can break the global shortcuts
experience by creating multiple global shortcuts records
for the same applet and by disabling some shortcuts because
these shortcuts are already enabled for ghost applets of
the crashed layout. This patch fixes this by removing all
applet global shortcuts during startup. Applet global shortcuts
are already saved in the layout file based on the current
plasma architecture, that fact simplifies things a lot.

BUG: 401184
2019-01-27 16:06:05 +02:00
Michail Vourlakos
3bfa313cbb fix crash when showing shortcut badges
BUG: 403647
2019-01-27 13:54:57 +02:00
Michail Vourlakos
62f396e86f add shortcuts for layout 2019-01-27 13:42:19 +02:00
Michail Vourlakos
ffc1669c67 fix height binding loop for BadgeText 2019-01-27 10:29:56 +02:00
Pino Toscano
72341142a2 fix project_license in appstream file
use the right SPDX tag
2019-01-27 08:57:23 +01:00
Michail Vourlakos
1bfa52ed79 update Changelog to v0.8.5 2019-01-26 18:10:46 +02:00
Michail Vourlakos
b3a845a0d5 do not show tooltip for spacers and separators 2019-01-26 15:58:44 +02:00
Michail Vourlakos
2ab84aa140 make badge Text dependent of Badge height
--this way at very small sizes the text is still
shown without overlapping the badge indicator

BUG: 403602
2019-01-26 15:27:57 +02:00
Michail Vourlakos
ad5286279f rename properties appropriately in containment 2019-01-25 17:36:15 +02:00
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
2019-01-25 16:46:12 +02:00
Michail Vourlakos
87a712229d circle View for InfoBadge when AudioBadge is shown
BUG: 403559
2019-01-25 16:26:30 +02:00
Michail Vourlakos
9851a71293 elide InfoBadge for first task when needed
BUG: 403518
2019-01-24 15:29:41 +02:00
Michail Vourlakos
37558dd20c dont include tasks badges at brightness effects
BUG: 403518
2019-01-23 23:50:33 +02:00
Michail Vourlakos
f03e820caf reposition items to respect proper stack order 2019-01-23 23:09:24 +02:00