diff options
| author | mmbyday <bromark@protonmail.com> | 2018-12-10 12:48:17 -0500 |
|---|---|---|
| committer | mmbyday <bromark@protonmail.com> | 2018-12-10 10:49:07 -0800 |
| commit | 84bf8736d7d08e904ee0351fae4b5058a9a30025 (patch) | |
| tree | aaa804273e1f32c776e99630b6d2f9c89eaa7395 /components | |
| parent | 0f05127262cf662ab549deae426c9deebf77967e (diff) | |
| download | monzero-gui-84bf8736d7d08e904ee0351fae4b5058a9a30025.tar.gz monzero-gui-84bf8736d7d08e904ee0351fae4b5058a9a30025.tar.xz monzero-gui-84bf8736d7d08e904ee0351fae4b5058a9a30025.zip | |
MiddlePanel: add scrollbars :lipstick:
Diffstat (limited to 'components')
| -rw-r--r-- | components/Scroll.qml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/components/Scroll.qml b/components/Scroll.qml index 43876a49..67b0c304 100644 --- a/components/Scroll.qml +++ b/components/Scroll.qml @@ -27,10 +27,14 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import QtQuick 2.0 +import "." as MoneroComponents Item { id: scrollItem property var flickable + property alias scrollColor: scroll.color + property alias scrollWidth: scroll.width + property alias scrollRadius: scroll.radius width: 15 z: 1 @@ -52,13 +56,14 @@ Item { id: scroll width: 4 + radius: width / 2 height: { var t = (flickable.height * flickable.height) / flickable.contentHeight - return t < 20 ? 20 : t + return t < 50 ? 50 : t } y: 0; x: 0 - color: "#DBDBDB" - opacity: flickable.moving || handleArea.pressed || scrollArea.containsMouse ? 0.5 : 0 + color: MoneroComponents.Style.orange + opacity: flickable.moving || handleArea.pressed || scrollArea.containsMouse ? 0.8 : 0 visible: flickable.contentHeight > flickable.height Behavior on opacity { |
