use offset when drawing shadows external

pull/1/head
Michail Vourlakos 8 years ago
parent 6b77350ea6
commit b088015616

@ -545,8 +545,10 @@ void DockView::updatePosition(QRect availableScreenRect)
QRect screenGeometry; QRect screenGeometry;
QPoint position; QPoint position;
position = {0, 0}; position = {0, 0};
const auto length = [&](int length) -> int { const auto length = [&](int length) -> int {
return static_cast<int>(length * (1 - maxLength()) / 2); float offs = static_cast<float>(offset());
return static_cast<int>(length * ((1 - maxLength()) / 2) + length * (offs / 100));
}; };
int cleanThickness = normalThickness() - shadow(); int cleanThickness = normalThickness() - shadow();

Loading…
Cancel
Save