Commit Graph

32 Commits (507d673af4a473fe0b448e79964f7ac210aab3fc)

Author SHA1 Message Date
Michail Vourlakos ba94315ecb REFACTOR:input events and mask area
-- The new approach reduces mask area calls to
barely minimum. Input mask is used instead to
specify the area for which we accept input.
-- The new approach solves also the BLACKLINE issue
when hovering the view at startup. This is because
at all times the full window area is drawn.
4 years ago
Michail Vourlakos ab57516dab drop ShadowedRectangle workaround
--new kde frameworks have solved the main issue
of very big shadows for very narrow background
thickness. On the contrary a secondary issue occurs
that in the previous case the shadows are masked
outcut for ShadowedRectangle implementation.
4 years ago
Michail Vourlakos cee7a73ad0 dont draw PlamaTheme::Svg when custom radius is set 4 years ago
Michail Vourlakos 8381b42dc2 fixes for CustomBackground 4 years ago
Michail Vourlakos 237e561627 ignore background.headThickness for behaveAsPanels 5 years ago
Michail Vourlakos 148e3956b1 decouple background layer plasma shadows svg
--the multilayered background first layer is not
decoupled and is not the parent layer for all the
rest layer. This way we can really hide it without
influence the rest background layers.
5 years ago
Michail Vourlakos 305b0b9519 add custom radius length paddings for background 5 years ago
Michail Vourlakos 8298bf0e2c fix dock view geometry calculations
--when background custom radius and shadow
are applied the dock window geometry shouldnot
change if these values are not altered. This
is especially true when a dock is hiding
its screen edge margin when there is a maximized
window and the same time is hiding also its
background shadows. In such case in the past because
shadows were temporarily disabled the dock was constantly
changing its geometry
5 years ago
Michail Vourlakos dae99ea8a2 provide fixedshadows for LayeredBackground 5 years ago
Michail Vourlakos ab1aa51fce fix for customDefShadowEnabled case 5 years ago
Michail Vourlakos 9e8192438c improvements for custom shadowed rectangle 5 years ago
Michail Vourlakos 8553a2e511 discover plasma theme shadow size and color 5 years ago
Michail Vourlakos b2f8f20482 background:fixes for customBackgroundShadow
--limit also the background custom shadow to never
exceed the minimum panel axis
5 years ago
Michail Vourlakos 89e94fce3b initial support background custom radius/shadow
--playing around with Kirigami.ShadowedRectangle in order
to provide a nice beautiful custom made panel background
that the user can chosen custom radius or shadow size.
Colors are going to be used totally based on current plasma
theme.
5 years ago
Michail Vourlakos 3c0060ba1d update panel background paddings calculations
--Plasma::FrameSvgItem margins are not consintent
in order to provide helpful hints how plasma theme
panel-background svg is drawn properly. The new
approach calculates paddings based on top,left,bottom,right
svg elements and in that way a consistent a properly
background.minimumThickness is discovered.
5 years ago
Michail Vourlakos 2336272e1a update backgroundMinThickness only in normal state
--this way we avoid changing background thickness during
auto hiding screen gaps when there are maximized windows
5 years ago
Michail Vourlakos 5e78a0a3c7 provide all background corners option
--provide an option to force showing of all background
corners
5 years ago
Michail Vourlakos af37c31f36 support theme length paddings
--update layouter, background and layoutscontainer
in order to take into account the background length
paddings
5 years ago
Michail Vourlakos fec2f447d5 drop editMode workarounds in containment 5 years ago
Michail Vourlakos 7672202b4c decrease Blur area update interval
--was changed to 60Hz from 20Hz and also
the first call is immediately draw and then
the timer in triggered in order to block all
other calls. Hopefully this will be enough
for smooth moving blurring areas.

BUG:422209
5 years ago
Michail Vourlakos dde2b0b10e do not apply Plasma popups coloring if not enabled 5 years ago
Michail Vourlakos 8bfc71fd3e remove magical (+/-1 px) from calculations
--implementation is much more concrete now and we
need to be 1px precise in order to provide good
snapping and dodge visibility modes correctly
--in upcoming commit the view is touched property
will mean without window is touching the view edge.
For view edges touching there will be a different
variable that can be used from containment and
applets.
5 years ago
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.
5 years ago
Michail Vourlakos da571bdc32 improve background computations for 100% 5 years ago
Michail Vourlakos 5b13bc421f improve background calculations a bit 5 years ago
Michail Vourlakos c8164597bb fix LayeredBackground calculations 5 years ago
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
5 years ago
Michail Vourlakos f715c5bbd5 various fixes for backgroud/items offsets 5 years ago
Michail Vourlakos dd4e4fb79d rename all Background.MultiLayer values
--much better and understandable names are now used
5 years ago
Michail Vourlakos 0539db1a09 rename more values of Background.MultiLayered 5 years ago
Michail Vourlakos 545249404e rename values in Background.MultiLayered 5 years ago
Michail Vourlakos bc441af941 rename PanelBox to Background.MultiLayered
--much better name and also describes how Background
really works and draws its content
5 years ago