diff --git a/src/plugins/qmldesigner/components/itemlibrary/itemlibrary.cpp b/src/plugins/qmldesigner/components/itemlibrary/itemlibrary.cpp index bae0b556e89fcae6b761e2ad6a9f70f2e721fcc1..df7e2bbaf9f80016b73fcaf6b83ba064bc01ad69 100644 --- a/src/plugins/qmldesigner/components/itemlibrary/itemlibrary.cpp +++ b/src/plugins/qmldesigner/components/itemlibrary/itemlibrary.cpp @@ -129,8 +129,8 @@ ItemLibrary::ItemLibrary(QWidget *parent) : m_d(new ItemLibraryPrivate(this)) { m_d->m_ui.setupUi(this); - layout()->setContentsMargins(3, 3, 3, 3); - layout()->setSpacing(3); + layout()->setContentsMargins(2, 2, 2, 0); + layout()->setSpacing(2); m_d->m_resourcesDirModel = new QDirModel(this); diff --git a/src/plugins/qmldesigner/components/itemlibrary/qml/ItemsView.qml b/src/plugins/qmldesigner/components/itemlibrary/qml/ItemsView.qml index b0f6093f1ccfd9f3457cb4141f44400f564f4774..2adb189934405d29f170158fab093bafd4f3c24b 100644 --- a/src/plugins/qmldesigner/components/itemlibrary/qml/ItemsView.qml +++ b/src/plugins/qmldesigner/components/itemlibrary/qml/ItemsView.qml @@ -124,10 +124,11 @@ Rectangle { id: itemsFlickable anchors.top: parent.top + anchors.topMargin: 2 anchors.bottom: parent.bottom anchors.left: parent.left anchors.right: scrollbar.left - anchors.rightMargin: 6 + anchors.rightMargin: 2 clip: true interactive: false @@ -161,7 +162,9 @@ Rectangle { id: scrollbar anchors.top: parent.top + anchors.topMargin: 2 anchors.bottom: parent.bottom + anchors.bottomMargin: 2 anchors.left: parent.right anchors.leftMargin: -10 anchors.right: parent.right diff --git a/src/plugins/qmldesigner/components/itemlibrary/qml/Scrollbar.qml b/src/plugins/qmldesigner/components/itemlibrary/qml/Scrollbar.qml index 862ee4e1895bd57e7cae449efad8e926392301ff..47dce94f2932c11d135ff0a51a6590d55bb4d7e2 100644 --- a/src/plugins/qmldesigner/components/itemlibrary/qml/Scrollbar.qml +++ b/src/plugins/qmldesigner/components/itemlibrary/qml/Scrollbar.qml @@ -128,23 +128,22 @@ Item { id: handle anchors.left: parent.left + anchors.leftMargin: 1 anchors.right: parent.right +// anchors.rightMargin: 1 height: Math.max(width, bar.height * Math.min(1, scrollFlickable.visibleArea.heightRatio)) -// radius: width / 2 -// color: style.scrollbarHandleColor - Rectangle { - width: parent.height + width: parent.height - 1 height: parent.width - y: parent.height + y: 1 - height - rotation: -90 - transformOrigin: Item.TopLeft + rotation: 90 + transformOrigin: Item.BottomLeft gradient: Gradient { - GradientStop { position: 0.0; color: "#C6C6C6" } - GradientStop { position: 1.0; color: "#7E7E7E" } + GradientStop { position: 0.0; color: "#7E7E7E" } + GradientStop { position: 1.0; color: "#C6C6C6" } } }