mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-16 05:57:36 +03:00
upgrade thickness.normal to Abilities
This commit is contained in:
parent
f1c615fd0f
commit
0a35af87d9
@ -68,13 +68,10 @@ Item{
|
||||
root.isHorizontal ? root.height + edgeMargin - 1 : root.width + edgeMargin - 1;
|
||||
} else {
|
||||
var topOrLeftEdge = ((plasmoid.location===PlasmaCore.Types.LeftEdge)||(plasmoid.location===PlasmaCore.Types.TopEdge));
|
||||
return (topOrLeftEdge ? -thicknessNormal : thicknessNormal);
|
||||
return (topOrLeftEdge ? -metrics.mask.thickness.normal : metrics.mask.thickness.normal);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
property int thicknessNormal: metrics.mask.screenEdge + Math.max(metrics.totals.thickness + metrics.extraThicknessForNormal, background.thickness + background.shadows.headThickness)
|
||||
|
||||
//! when Latte behaves as Plasma panel
|
||||
property int thicknessAsPanel: metrics.totals.thickness
|
||||
|
||||
@ -499,10 +496,10 @@ Item{
|
||||
//console.log("entered normal state...");
|
||||
//count panel length
|
||||
tempLength = background.totals.visualLength;
|
||||
tempThickness = thicknessNormal;
|
||||
tempThickness = metrics.mask.thickness.normal;
|
||||
|
||||
if (animations.needThickness.count > 0) {
|
||||
tempThickness = LatteCore.WindowSystem.compositingActive ? metrics.mask.thickness.zoomed : thicknessNormal;
|
||||
tempThickness = LatteCore.WindowSystem.compositingActive ? metrics.mask.thickness.zoomed : metrics.mask.thickness.normal;
|
||||
}
|
||||
|
||||
if (maskIsFloating) {
|
||||
@ -593,7 +590,7 @@ Item{
|
||||
if(onlyLengthAnimation) {
|
||||
//this is used to fix a bug with shadow showing when the animation of edit mode
|
||||
//is triggered
|
||||
tempThickness = thicknessNormal;
|
||||
tempThickness = metrics.mask.thickness.normal;
|
||||
|
||||
if (latteView.visibility.isHidden && !slidingAnimationAutoHiddenOut.running ) {
|
||||
tempThickness = metrics.mask.thickness.hidden;
|
||||
|
@ -588,7 +588,7 @@ Window{
|
||||
}
|
||||
|
||||
Text{
|
||||
text: visibilityManager.thicknessNormal
|
||||
text: metrics.mask.thickness.normal
|
||||
}
|
||||
|
||||
Text{
|
||||
|
@ -1213,7 +1213,7 @@ Item {
|
||||
when: latteView && !latteView.maskManager.inRelocationHiding
|
||||
value: {
|
||||
if (latteView) {
|
||||
return animations.hasThicknessAnimation ? metrics.mask.thickness.zoomed : latteView.maskManager.thicknessNormal;
|
||||
return animations.hasThicknessAnimation ? metrics.mask.thickness.zoomed : metrics.mask.thickness.normal;
|
||||
}
|
||||
|
||||
return metrics.totals.thickness * parabolic.factor.zoom;
|
||||
|
Loading…
x
Reference in New Issue
Block a user