Commit 6694eb7a authored by Marco Martin's avatar Marco Martin
Browse files

Make the scrollbar always thick

Summary:
Second part of D26655, removes the thin scrollbar and makes it always thick
to implement the desired design

BUG: 396747
FIXED-IN: 5.18.0

Test Plan: {F7884060}

Reviewers: #plasma, #vdg, #breeze, ngraham, ndavis

Reviewed By: #vdg, #breeze, ngraham, ndavis

Subscribers: plasma-devel

Tags: #plasma

Maniphest Tasks: T9126

Differential Revision: https://phabricator.kde.org/D26685
parent ba452f73
......@@ -5117,14 +5117,13 @@ namespace Breeze
qreal grooveAnimationOpacity( _animations->scrollBarEngine().opacity( widget, QStyle::SC_ScrollBarGroove ) );
if( grooveAnimationOpacity == AnimationData::OpacityInvalid ) grooveAnimationOpacity = (widgetMouseOver ? 1 : 0);
const qreal handleSize = StyleConfigData::animationsEnabled() ? ((Metrics::ScrollBar_SliderWidth / 2.0) * (1 - grooveAnimationOpacity) + Metrics::ScrollBar_SliderWidth * grooveAnimationOpacity) : (int)Metrics::ScrollBar_SliderWidth;
// define handle rect
QRect handleRect;
const State& state( option->state );
const bool horizontal( state & State_Horizontal );
if( horizontal ) handleRect = centerRect( rect, rect.width(), handleSize );
else handleRect = centerRect( rect, handleSize, rect.height() );
if( horizontal ) handleRect = centerRect( rect, rect.width(), Metrics::ScrollBar_SliderWidth );
else handleRect = centerRect( rect, Metrics::ScrollBar_SliderWidth, rect.height() );
const bool enabled( state & State_Enabled );
const bool mouseOver( enabled && ( state & State_MouseOver ) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment