1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-26 23:21:37 +03:00
Commit Graph

1412 Commits

Author SHA1 Message Date
Michail Vourlakos
302140972c fixes for Layouter ability in Container 2020-05-14 10:57:23 +03:00
Michail Vourlakos
2268d7ca12 more improvements for Layouter different alignments
--trying to find a workable layout case for all alignments
when they contain Fill(s) applets
2020-05-14 09:42:25 +03:00
Michail Vourlakos
1b19de8952 improve Layouter for Fill(s) in MainLayout 2020-05-14 02:40:35 +03:00
Michail Vourlakos
4fa11ab3d8 use maximum length for normal alignments and fills
--when Left/Center/Right alignments contain a fill
applet then they should use the entire max length
2020-05-14 02:03:36 +03:00
Michail Vourlakos
e21e6eba94 center fillApplets in MainLayout for Justify
--avoid for fillApplets of Main layout to overlap
with surrounding applets from side layouts
2020-05-14 01:10:57 +03:00
Michail Vourlakos
61ce906ef9 dont add margins for fitt's case in fill applets 2020-05-14 00:59:14 +03:00
Michail Vourlakos
5604d8cb3f inform Layouter for applets parent change inConfigure
--this way many glitches are avoided
2020-05-14 00:37:36 +03:00
Michail Vourlakos
8b6585284c improve visuals for placeholder
--dont add length edge margins through offset
for start/endlayouts, much cleaner and visual
pleasing to the eye. the user can always add
spacers if prefers to add padding.
2020-05-14 00:16:54 +03:00
Michail Vourlakos
f81e3cdc3a provide visual feedback when layouts overlap
--in configure applets mode when the layouts overlap
with main centered layout then visual feedback is provided to
the user in order to help him understand in which
layout each applet belongs
2020-05-13 21:41:20 +03:00
Michail Vourlakos
df9eda426f improve Justify splitters behavior inConfigure
--justify splitters now the offset themselves when
startLayout or endLayout are too big
2020-05-13 20:55:26 +03:00
Michail Vourlakos
3d6c7b3b23 reduce justify splitter maximum size 2020-05-13 19:45:33 +03:00
Michail Vourlakos
2ef0cdd944 introduce Layouter ability 2020-05-13 19:25:29 +03:00
Michail Vourlakos
2a91cb55c1 remove subtract extranormthick from headThickGap
--extra thickness that is required from indicators
must be ignored from HeadThicknessGap which is used
for nice snapping
2020-05-13 11:06:27 +03:00
Michail Vourlakos
66f8cce6d9 introduce Layouter Debug mode
--really handy and beautiful in order to confirm the
calculations that are valid. Already a bug was found
for ParabolicEffect. There is 1px difference between
hovering Tasks and Applets
2020-05-12 17:08:09 +03:00
Michail Vourlakos
ec949948b6 fix View recraetion and frameExtents freezes
--View recreation path was broken from new implementation
for Latte::Interfaces that pass objects to containment
interface. This is now fixed and Interfaces::View object is updated
and broadcasted correctly when changed
--when GtkFrameExtents are zeroed for behaveAsPlasmaPanels
then it is better to recreate the view to avoid freezes and
hidings of the view because of compositor strange behavior
2020-05-12 14:45:31 +03:00
Michail Vourlakos
677caab132 introduce a background.minThickness
--plasma themes because of their svg nature can
have a minimum padding under which they are not
drawn correctly. In such cases background shadows
overlap and background internal drawing overlaps
in the center. That property protects from
such case by introducing a minimum background
thickness at all cases. Good example of the issue
is observed in behaveAsPlasmaPanel(s) that are
floating and have very good round corners.
2020-05-12 11:39:30 +03:00
Michail Vourlakos
da571bdc32 improve background computations for 100% 2020-05-12 10:45:52 +03:00
Michail Vourlakos
8525e076f8 Tasks,dont mask out zoomed items too soon
--AppletItem::clip was introduced  in order to
avoid circumstances that applets exceed their limits
and as such still events from surrounding applets.
Because of that change applets should now apply
their layout properties as valid all the time
2020-05-12 10:08:03 +03:00
Michail Vourlakos
5b13bc421f improve background calculations a bit 2020-05-12 03:23:27 +03:00
Michail Vourlakos
e83f7e551e redraw panel shadows after !visible workarounds
--use a single slot when View triggers its workarounds
for the kwin issue that kwin hides panels when an activity
stops. In such case the view shadows are also redrawn.
2020-05-11 23:04:44 +03:00
Michail Vourlakos
9d7aabf998 fix Outline for Justified Floating Views 2020-05-11 20:32:43 +03:00
Michail Vourlakos
c8164597bb fix LayeredBackground calculations 2020-05-11 20:00:39 +03:00
Michail Vourlakos
93c6bbe9bd fix published screenEdgeMargin for panels
--in older version screenEdgeMargin == -1 was meant
that the screenEdgeMargin was disabled but this does not
need to be passed to View any more because variable
screenEdgeMarginDisabled is now passed directly
2020-05-11 19:47:30 +03:00
Michail Vourlakos
35bc8f3560 fix ConfigOverlay behavior/appearance 2020-05-11 18:45:53 +03:00
Michail Vourlakos
114828ad88 reduce GtkFrameExtents calls/triggers 2020-05-11 18:08:55 +03:00
Michail Vourlakos
3e17f718ee dont block hiding for #debugwindow#(s) 2020-05-11 17:44:30 +03:00
Michail Vourlakos
8b32be15b9 support GtkFrameExtents under X11
--this way to dock windows can now snap beautifully
with windows around them, very beautiful behavior!
That was pretty annoying in the past.
2020-05-11 17:31:51 +03:00
Michail Vourlakos
cb56a34800 fix debug message in Colorizer.Manager 2020-05-11 10:47:19 +03:00
Michail Vourlakos
39cc767eed drop panelUserSetAlignment not used anymore 2020-05-11 10:45:25 +03:00
Michail Vourlakos
57fd073e3f improve Blur responsiveness
--Blur area is not updated instantly any more
and does not make too many unnecesary calls.
A timer was added to orchestrate this in order
for the Effects area to be updated at maximum
20times/sec.
--Dont animate the view container at all cases, that
creates a much smoother experience for the user in
editing mode
2020-05-11 10:30:08 +03:00
Michail Vourlakos
95462fe5e6 fix maxlength applied inConfigureApplets mode 2020-05-11 10:18:37 +03:00
Michail Vourlakos
75c14b504e main layout on top of start and end layouts 2020-05-11 10:01:01 +03:00
Michail Vourlakos
344a7b7f53 smoothen up glitches inConfigureApplets mode 2020-05-11 00:05:55 +03:00
Michail Vourlakos
2ebe0d0b63 fix glitch from hide screen edge gap in dock mode
--do not update view window geometry when there is
an automatic hide screen edge gap situation because
of maximized windows events
2020-05-10 23:38:17 +03:00
Michail Vourlakos
0d023dff37 expose backgroundThickness through Metrics
--this way Tasks scrolling shadows work ok again
and also they are decoupled from containment
2020-05-10 20:27:35 +03:00
Michail Vourlakos
f715c5bbd5 various fixes for backgroud/items offsets 2020-05-10 20:27:35 +03:00
Michail Vourlakos
dd4e4fb79d rename all Background.MultiLayer values
--much better and understandable names are now used
2020-05-10 20:27:35 +03:00
Michail Vourlakos
0539db1a09 rename more values of Background.MultiLayered 2020-05-10 20:27:35 +03:00
Michail Vourlakos
545249404e rename values in Background.MultiLayered 2020-05-10 20:27:35 +03:00
Michail Vourlakos
bc441af941 rename PanelBox to Background.MultiLayered
--much better name and also describes how Background
really works and draws its content
2020-05-10 20:27:35 +03:00
Michail Vourlakos
fe370bf885 improve all binding for containment
--use the Binding.when property in order to identify
when a binding is triggered or not
2020-05-10 20:27:35 +03:00
l10n daemon script
51a302de63 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"
2020-05-09 06:29:25 +02:00
Michail Vourlakos
f5db9ce63d fix Justify alignment applets placement inConfigure
--applets are now always take into account the splitters
placement and the splitters try to be always in the
center. This is much more predictable and understanble
from the user
2020-05-08 23:02:43 +03:00
Michail Vourlakos
6ae3c499f0 block calculations for applets changing parents 2020-05-08 22:31:35 +03:00
Michail Vourlakos
97a1c3fdb8 NEW Intuitive InConfigureApplets Mode
--I have managed to solve most of the issues that were
preventing a live demonstration of applets layout
during InConfigureApplets mode... Things are more
intuitive now are updated correctly between different
layout areas... enjoy...
2020-05-08 21:15:10 +03:00
Michail Vourlakos
7a451facb2 use inConfigureAppletsMode like a regular mode 2020-05-08 18:30:44 +03:00
Michail Vourlakos
e64921d2bf rename Indexer ability clients properties
--include also a fix for Tasks addingarea
2020-05-08 09:36:35 +03:00
Michail Vourlakos
28ec313bd2 track container fill calculations better
--container fill calculations are now tracked much
better when they are applied.
--as an improvement fill calculations are now taking place
at all edit mode states. So inConfigureApplets mode
the fill(s) applets do not throw out of screen
applets that are the layout edges
2020-05-07 22:36:20 +03:00
Michail Vourlakos
30aa8963cb fixes for Fitts Law applet margins 2020-05-07 19:59:33 +03:00
Michail Vourlakos
ef2592b183 add Indexer applet Ability
--works beautifully and nicely even in
multi-applets indexer supported environment
2020-05-07 16:19:05 +03:00
Michail Vourlakos
a9425409d0 improve Indexer Container/Bridge implementation 2020-05-07 14:34:47 +03:00
Michail Vourlakos
df4df914ca introduce Indexer ContainerAbility 2020-05-07 00:07:16 +03:00
Michail Vourlakos
a622485a47 fix warnings 2020-05-06 23:18:53 +03:00
Michail Vourlakos
a9c29916b0 improve catching signals for Container abilities 2020-05-06 20:48:56 +03:00
Michail Vourlakos
e8290aeb92 add debug row for applets maxInnerZoomFactor 2020-05-06 20:48:56 +03:00
Michail Vourlakos
87ffc22f6a remove AppletsRecords container ability
--use the all new much better infrastructure
to track applet abilities requirements
2020-05-06 20:48:56 +03:00
Michail Vourlakos
e3e4ee4c5a fantastico! full decoupled parabolic effect
--This is the first commit that demonstrates also
a beautiful and easy way to gain properties from
multiple applets that support specific activities
2020-05-06 20:48:56 +03:00
Michail Vourlakos
d26b189bfa split ContainerParabolicEffect, Private/Properties 2020-05-06 20:48:56 +03:00
Michail Vourlakos
62879df90e rename appletitem aliases properly 2020-05-06 20:48:56 +03:00
Michail Vourlakos
b1ce98e8a4 introduce PrabolicEffect Ability for applets 2020-05-06 20:48:56 +03:00
Michail Vourlakos
cfd79ae713 fixes for ParabolicEffect Ability 2020-05-06 20:48:56 +03:00
Michail Vourlakos
44c7faba65 move zoomFactor,maxZoomFactor to ContainerAbility
--use nicer names such as parabolic.factor.zoom
and parabolic.factor.maxZoom
2020-05-06 20:48:56 +03:00
Michail Vourlakos
f707cdab4f create ParabolicEffect Abitility
--such ability provides four different parts:
Defintion/Applet/Container/Bridge
2020-05-06 20:48:56 +03:00
Michail Vourlakos
0bb838d90e fix triggering for contextMenuIsShown
--it should not be triggered in every view press
event but only when there is or not a context
menu any more
2020-05-06 20:48:56 +03:00
Michail Vourlakos
a0e4f688e5 fix some previews issues 2020-05-06 20:48:56 +03:00
Michail Vourlakos
81abb0eb35 fix some parabolic effect glitches 2020-05-06 20:48:56 +03:00
Michail Vourlakos
7e1be6144a remove Parabolic::DirectRender timer functionality
--remove direct render timer which is not used any more.
2020-05-06 20:48:56 +03:00
Michail Vourlakos
140cc8cb73 smoothen up parabolic effect 2020-05-06 20:48:56 +03:00
Michail Vourlakos
c9b7866662 HoveredIndex:Drop plasmoid implementation
--parabolic effect does not need hovered index
any more in order to work properly
2020-05-06 20:48:56 +03:00
Michail Vourlakos
63500ed524 HoveredIndex:Drop for containment
--a new implementation is needed which is going
to be simpler and lighter. Removing the current
implementation, parabolic effect works just fine
without issues and feels more responsive.
2020-05-06 20:48:56 +03:00
Michail Vourlakos
7b521634a8 restore properly multi-tasks parabolic effect
--update parabolic effect clear zoom functionanlity in order
to clear zoom properly
2020-05-06 20:48:56 +03:00
Michail Vourlakos
9145634434 PARABOLIC:new parabolic effect implementation
--the new implementation relies on items in order to
forward scale signals properly to their neighbours. So
parabolic effect does not have to know separators and
hidden items any more. As it appears it is lighter
also and more responsive. This is a very important
milestone for the parabolic effect.
2020-05-06 20:48:56 +03:00
Michail Vourlakos
22f9bdd6a7 use Metrics Ability for screenEdgeMargin 2020-05-02 19:36:35 +03:00
Michail Vourlakos
4d1f5b2df0 deprecate root.screenEdgeMargin from containment 2020-05-02 15:57:21 +03:00
Michail Vourlakos
9be7822b98 upgrade to LatteApp.Interfaces containment access 2020-05-02 13:23:37 +03:00
Michail Vourlakos
6259c395de move lengthMargin(s) to Metrics ability 2020-05-01 16:03:41 +03:00
Michail Vourlakos
dae35a12bb rename thicknessMargins to thicknessEdges
--which is more accurate an Edge can be the calculated
distance of margin+border+padding like css is also
describing
2020-05-01 14:03:50 +03:00
Michail Vourlakos
c45e45138f rename Metrics padding.length 2020-05-01 13:50:54 +03:00
Michail Vourlakos
1c6fef6c12 move thickMargin(s) to Metrics Ability 2020-05-01 13:27:34 +03:00
Michail Vourlakos
583af39fba add metrics.margin.maxThickness 2020-05-01 12:49:06 +03:00
Michail Vourlakos
e0d2991790 move fractions to MetricsPrivate 2020-05-01 12:39:40 +03:00
Michail Vourlakos
ed3472b11f make Metrics.Fractions as private property 2020-05-01 12:19:29 +03:00
Michail Vourlakos
2727aa1616 add more metrics options for applets 2020-04-30 16:48:25 +03:00
Michail Vourlakos
3143bef896 rename metrics option to portionIconSize 2020-04-30 16:18:19 +03:00
Michail Vourlakos
90d9aefd0b add more metrics options for Ability 2020-04-30 16:11:57 +03:00
Michail Vourlakos
f227191f3f position properly background for all allignments
--do not take into account the background shadows for its
positioning for Left/Right/Top/Bottom alignments
2020-04-29 11:38:29 +03:00
Michail Vourlakos
e8c15905d6 position properly alignments for real panels
--provide calculations to position properly real
panels that use Left/Right/Top/Bottom alignments
2020-04-29 10:43:43 +03:00
Michail Vourlakos
441fbdf635 plenty of improvements to position Latte panels
--used a video demonstrating multiple panels at the
bottom edge with padding between them
--max/minLength and offset are changed to float values
--max/minLength and offset can now be adjusted with
Ctrl+Wheel over their label in Appearance tab page. Clicking
the previous mentioned label will round the values
--introduce an autoSizeEnabled value in order to block
auto size mechanism when it becomes annoying. Such issue
appears more often to Latte panels
--block MenuZ from Latte icon heuristics
2020-04-29 09:54:16 +03:00
Michail Vourlakos
00127f28c0 Tasks:introduce Tasks.Dialog
--this is just a subclass of PlasmaQuick::Dialog
that provides "containsMouse" property
2020-04-28 13:12:48 +03:00
Michail Vourlakos
97e7c428b7 rename Ability.Container to Metrics
--major change but improves readability a lot
2020-04-27 21:21:44 +03:00
Michail Vourlakos
dbd830aa48 remove applets spacers unneeded code 2020-04-27 18:04:23 +03:00
Michail Vourlakos
92a6319dac update applets windows tracking for AppletsRecords 2020-04-26 20:52:17 +03:00
Michail Vourlakos
e4a609f250 release Applets.latteBridge on destruction 2020-04-26 20:17:13 +03:00
Michail Vourlakos
3a7a8368fa provide a multiapplets innerZoomFactor structure
--introduce AppletsRecords in order to keep track
of their requirements that influence the containment
qml behavior
2020-04-26 20:07:04 +03:00
Michail Vourlakos
03de9bb09f replace maxZoomFactor with innerZoomFactor
--innerZoomFactor is a way for applets to
request specific zoom factor at some cases
for example during some of their animations
2020-04-26 19:20:33 +03:00
Michail Vourlakos
c9ec2bc957 rename minZoomFactor to animations.maxZoomFactor 2020-04-26 17:45:57 +03:00
Michail Vourlakos
69aaedac5f move Tasks local animations to local ability 2020-04-26 17:38:43 +03:00
Michail Vourlakos
ef1fc413c9 publich Containet ability components 2020-04-26 17:18:45 +03:00
Michail Vourlakos
7709e1514b simplify autosize container ability 2020-04-26 17:02:31 +03:00
Michail Vourlakos
04daf81ac5 provide apis through abilities import 2020-04-26 16:54:04 +03:00