translucent scrollbars
This commit is contained in:
parent
19e5a02d6e
commit
9c4799073b
3 changed files with 18 additions and 5 deletions
|
@ -2,6 +2,7 @@ import QtWebKit 3.0
|
||||||
import QtWebKit.experimental 1.0
|
import QtWebKit.experimental 1.0
|
||||||
import QtQuick.Controls 1.3
|
import QtQuick.Controls 1.3
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
|
import QtQuick.Controls.Styles 1.3
|
||||||
import TTRSS 1.0
|
import TTRSS 1.0
|
||||||
|
|
||||||
ScrollView {
|
ScrollView {
|
||||||
|
@ -9,6 +10,10 @@ ScrollView {
|
||||||
property Post post
|
property Post post
|
||||||
Layout.minimumWidth: 400
|
Layout.minimumWidth: 400
|
||||||
|
|
||||||
|
style: ScrollViewStyle {
|
||||||
|
transientScrollBars: true
|
||||||
|
}
|
||||||
|
|
||||||
WebView {
|
WebView {
|
||||||
id: webView
|
id: webView
|
||||||
url: "content.html"
|
url: "content.html"
|
||||||
|
|
|
@ -8,12 +8,8 @@ Component {
|
||||||
width: parent.parent.parent.width
|
width: parent.parent.parent.width
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
property variant colors: ["#AAFFFFFF", "transparent"]
|
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
color: {
|
color: "transparent"
|
||||||
if(item.ListView.isCurrentItem) return "transparent"
|
|
||||||
return colors[index % 2]
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -57,6 +53,13 @@ Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.top: parent.bottom
|
||||||
|
width: parent.width
|
||||||
|
height: 1
|
||||||
|
color: "lightgray"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|
|
@ -2,6 +2,7 @@ import QtQuick 2.0
|
||||||
import TTRSS 1.0
|
import TTRSS 1.0
|
||||||
import QtQuick.Controls 1.3
|
import QtQuick.Controls 1.3
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
|
import QtQuick.Controls.Styles 1.3
|
||||||
|
|
||||||
ScrollView {
|
ScrollView {
|
||||||
id: item
|
id: item
|
||||||
|
@ -9,6 +10,10 @@ ScrollView {
|
||||||
property Server server
|
property Server server
|
||||||
property Content content
|
property Content content
|
||||||
|
|
||||||
|
style: ScrollViewStyle {
|
||||||
|
transientScrollBars: true
|
||||||
|
}
|
||||||
|
|
||||||
function next() {
|
function next() {
|
||||||
if(listView.count > listView.currentIndex) {
|
if(listView.count > listView.currentIndex) {
|
||||||
listView.currentIndex++;
|
listView.currentIndex++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue