clean up the code

v0.6
Michail Vourlakos 8 years ago
parent d8b7bb9604
commit 500c28cb26

@ -129,13 +129,11 @@ Item{
var icons = root.statesLineSize + root.iconSize + root.iconMargin + 1; var icons = root.statesLineSize + root.iconSize + root.iconMargin + 1;
var panels = root.themePanelSize + root.panelMargin; var panels = root.themePanelSize + root.panelMargin;
root.realPanelThickness = icons;
if (icons > panels) { if (icons > panels) {
root.realPanelThickness = icons;
return panels; return panels;
} else { } else {
var pan = icons; return icons;
root.realPanelThickness = pan;
return pan;
} }
} }
} }

@ -303,10 +303,6 @@ Item{
var fixedThickness = root.realPanelThickness; var fixedThickness = root.realPanelThickness;
// if(panelIsBiggerFromIconSize && !root.drawShadowsExternal) {
// fixedThickness = thicknessNormal - root.panelShadow;
// }
if (plasmoid.formFactor === PlasmaCore.Types.Vertical) { if (plasmoid.formFactor === PlasmaCore.Types.Vertical) {
newMaskArea.width = fixedThickness; newMaskArea.width = fixedThickness;
} else { } else {

Loading…
Cancel
Save