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

66 Commits

Author SHA1 Message Date
Michail Vourlakos
323ffbe3af refactor:move viewsCount to Layout 2018-12-01 17:43:33 +02:00
Michail Vourlakos
bf097f3f62 refactor:add viewsCount to Layout 2018-12-01 17:29:17 +02:00
Michail Vourlakos
3098812679 simplify code 2018-12-01 17:11:29 +02:00
Michail Vourlakos
ab2dc47fd9 refactor:move dock freeEdges to Layout 2018-12-01 16:55:48 +02:00
Michail Vourlakos
642b524cc7 refactor:move currentScreen to View::Positioner
--rename also currentScreen to currentScreenName
for better semantic representation
2018-12-01 15:22:33 +02:00
Michail Vourlakos
885e438143 refactor:colorizerSupport moved to View::Effects
--renamed also from colorizerSupport to colorizerEnabled
2018-12-01 09:19:25 +02:00
Michail Vourlakos
b2abb99f2c fix layout integrity check
--this check was returning false results
in some cases
2018-11-11 09:29:06 +02:00
Michail Vourlakos
0bab344682 fixes for multi-screen behavior
--fix wrong placement at multi-screen environment
during startup. freeEdges function was not sufficient for
reconsiderScreen() because there was a chance to
exclude edges that even though they were available
it returned fault results. Such case is when
a view request available edges for specific screen
and the edge of that specific view is also exluded
because that view has not finished its movement
to the new assigned screen.

--fix re-adding an explicit dock when its screen
is activated. A check was missing in order to
confirm that a primary dock is occuping that
edge but we must check also that the primary
screen is the same with the explicit one.

--add/improve debug messages
2018-10-12 19:04:17 +03:00
Michail Vourlakos
135ddc479d dont break BorderlessMaximized window default
--dont update the BorderlessMaximized value if
the user hasnt explicitly enabled it from Latte
options.
2018-10-07 01:12:48 +03:00
Michail Vourlakos
09fe5e385b on startup explicit dock faulty moving onPrimary
--multi-screen fix for explicit docks. There were
cases that explicit docks during startup were
moving to onprimary screen even though they shouldnt
based on the new multi-screens implementation.
Bug was tracked down at a faulty series of signals
that were overwriting dockView config values
to default values and that was creating the fault.
-- one more fix for multi-screens, a missing return
statement in case an explicit dock is called and its
edge at that specific screen is occuppied by an
onPrimary one.

BUG: 398219
FIXED-IN: 0.8.1
2018-09-04 19:43:17 +03:00
Yuri Chornoivan
7323068f36 Fix minor EBN issues 2018-08-30 08:47:53 +03:00
Michail Vourlakos
285a2f8764 ignore systrays at multi-screen considerations
--if a dock/panel was containing a systray there
was a chance that the systray was messing the
calculations for adding/removing docks based on
the screen and edges changes
2018-08-24 01:27:14 +03:00
Michail Vourlakos
30c90d2a41 More predictable copy function for multi-screen
--Improve the series of events in order for CopyDock
to work better in multi-screen environments. Copy Dock
should create the same dock in the same free edge at
different explicit screen when that edge is already
occupied in the origin screen

BUG: 397081
FIXED-IN: 0.8.1
2018-08-02 13:26:07 +03:00
Michail Vourlakos
03b469eff5 IMPORTANT: Update multi-screen codepage!!!
--after v0.8 release many issues with multi-architecture
were identified. An alternative approach was needed
in order for Latte to get a more user-predictable state.
In new approach:
--onPrimary docks have always higher value
and should be shown, this is also like how plasma is
moving its panels.
--explicit docks are removed if their edge in their screen
is occupied by an onPrimary dock
--be stupid smart in order to check if docks contain
tasks and try to not remove them based on screen-changes
is removed! Over-Complicated code that doesnt help
in maintainability...

one of the issues was reported at following bug report...

BUG: 396806
2018-07-24 22:25:19 +03:00
Michail Vourlakos
5728cb954b fix to update contents correctly between sessions
--when changing Single mode to Multiple mode the latest
changes from user didnt get into because the kde cache
from KFileConfigPtr hadnt been updated yet. This
patch fixes this by using a temp file that contains
the layout in question.
2018-07-13 20:42:11 +03:00
Michail Vourlakos
a85555f52c FIX creating and copying docks
--there were cases that during creating
or copying docks the applets ids were
created inconsistent by creating applets
with ids already reserved. This patch
fixes this by using the applet ids found
in the layout file and not the one loaded
in memory.
2018-07-11 20:39:42 +03:00
Michail Vourlakos
8bb20ae988 fix #1043,fix warning 2018-05-30 22:19:01 +03:00
Michail Vourlakos
591ce6c4d5 fix #1021,add borders option in layouts window
--the user can now enable/disable borderless maximized
windows per layout through Latte settings window
2018-05-10 21:14:48 +03:00
Michail Vourlakos
a5837fff09 add enabler/disabler for borderless maximized wins 2018-05-10 20:26:46 +03:00
Michail Vourlakos
92a7239550 fix #1001,disable maximized borders per layout
--give the user an option in layout file in order
to enable/disable borders for maximized windows.
the option is called "disableBordersForMaximizedWindows"
and must be put in LayoutSettings section
2018-04-25 00:11:50 +03:00
Michail Vourlakos
78ebe6e258 dont apply containment changes when locked
--if the layout is locked then dont apply any
containment config changes
2018-04-18 23:27:39 +03:00
Michail Vourlakos
1e2b996a9e support lock/unlock in layout
--identify if a layout is locked and
support lock/unlock for that layout
2018-04-15 00:43:54 +03:00
Michail Vourlakos
085f5b3d16 update lastUsedActivity in Single Layout mode
--this also fixes #908. Everything was ok except from
the fact that in Single layout mode the needed
lastUsedActivity variable was empty and thus it couldnt
be tracked to update the needed wallpaper correctly.
2018-03-08 17:37:02 +02:00
Michail Vourlakos
b8321fb829 fix #905,smart colorize transparent panels
--enhanche the dynamic background feature and
in ordre to improve contrast with the underlying
background Latte now calculates the luminosity of the area
underneath the panel and based on that chooses the
best color to create contrast. The colors are chosen
only between textColor and backgroundColor.
2018-03-07 17:54:53 +02:00
Michail Vourlakos
2403fbabe1 update brown textColor 2018-02-28 20:45:57 +02:00
Michail Vourlakos
47054c3380 update layouts color based on new palette 2018-02-28 20:13:13 +02:00
Michail Vourlakos
211399eaf5 support changing the textColor of editMode 2018-02-17 01:54:06 +02:00
Michail Vourlakos
c6408564d0 make the containment background aware 2018-02-17 00:36:06 +02:00
Michail Vourlakos
3110986215 prepare setting background 2018-02-16 23:55:43 +02:00
Michail Vourlakos
41117e9290 add background and textColor to layout
-- auto-adjust the textShadow for Ruler based on
the textColor luminosity
2018-02-16 17:46:49 +02:00
Michail Vourlakos
3bddb99881 remove ghost containments on loading
--ghost containments such as when a user
deletes a dock without notification confirmation
can be removed afterwards when that layout is
loading either at Single or Multiple mode.
2018-02-08 17:49:27 +02:00
Michail Vourlakos
acb77c6cd4 update header files and move files around 2018-02-03 11:37:09 +02:00
Michail Vourlakos
f22e26fef3 dont update lastUsedActivity for FakeMultiLayout 2018-01-31 20:54:45 +02:00
Michail Vourlakos
c436d4f201 move docksCount from corona to layout 2018-01-31 20:45:55 +02:00
Michail Vourlakos
f7f7d3da6c move explicitDockOccupyEdge to layout 2018-01-31 20:26:38 +02:00
Michail Vourlakos
6a1c8173e2 remove noDocksWithTasks from corona 2018-01-31 20:17:50 +02:00
Michail Vourlakos
3d471ee884 update syncDockViews to per layout 2018-01-31 19:04:01 +02:00
Michail Vourlakos
5e2d786729 add freeEdges in layout 2018-01-31 18:45:15 +02:00
Michail Vourlakos
8aad360916 add lastUsedActivity in the layout file
--lastUsedActivity is also used when we are opening
an assigned0-activities layout in order to choose in which
activity to swith on starting.
2018-01-30 14:33:00 +02:00
Michail Vourlakos
67ce3441a4 MultipleLayouts:launchers signals made layout aware 2018-01-21 20:17:58 +02:00
Michail Vourlakos
be0f9dc0ba remember the last used activity per layout 2018-01-21 13:52:33 +02:00
Michail Vourlakos
9cdb75ec49 assign/unassign signals at needed containments 2018-01-21 13:07:08 +02:00
Michail Vourlakos
b5ccba44b1 Move Dock from Layout to Layout
-- In the configuration window at the "New Dock"
ComboBox were added options in order for a dock
to move to another running Layout.
2018-01-21 11:59:46 +02:00
Michail Vourlakos
0120d8635b fix two crashes
--when deleting a copied dockView, unbind the sensitive signals
from dockView
--when deleting a copied dockView and the config windows syncGeometry
is called then it should first check in the dockView has a
layout
2018-01-20 00:25:00 +02:00
Michail Vourlakos
7e2fc0f895 check active layouts also for broken state 2018-01-17 23:32:50 +02:00
Michail Vourlakos
1275da22d7 MultipleLayouts:dont check active layouts as broke
--add also more debug messages for broken layouts
2018-01-16 18:17:34 +02:00
Michail Vourlakos
7ad76937b7 Layout:update locked applets ids
--these ids werent updated at MultipleLayouts
and Copy function
2018-01-15 23:26:10 +02:00
Michail Vourlakos
308d99e215 MultipleLayouts:Rename layout name runtime
--In MultipleLayouts we dont need to close the
active layout to rename it. We can do it without
need to close it and reopen that layout.
2018-01-15 23:04:03 +02:00
Michail Vourlakos
1e97609067 MultipleLayouts:support Export 2018-01-15 20:16:11 +02:00
Michail Vourlakos
b7d1b86a65 IMPORTANT:Fix uniqueness of IDs during importing
--These fixes any issues concerning Multiple Layouts
Loading/Unloading and keeping the Original Layout files
consistent.
2018-01-14 23:58:48 +02:00