Verified Commit e42d1125 authored by Rinigus Saar's avatar Rinigus Saar Committed by Jonah Brüchert
Browse files

make page titles readable in tabs minipages

parent 662e1932
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
import QtQuick 2.3 import QtQuick 2.3
import QtQuick.Controls 2.0 as Controls import QtQuick.Controls 2.0 as Controls
import QtGraphicalEffects 1.0
//import QtWebEngine 1.0 //import QtWebEngine 1.0
...@@ -56,7 +57,6 @@ Kirigami.ScrollablePage { ...@@ -56,7 +57,6 @@ Kirigami.ScrollablePage {
//live: true //live: true
anchors.fill: parent anchors.fill: parent
anchors.margins: Kirigami.Units.gridUnit * 0.5
sourceRect: Qt.rect(0, 0, width * 2, height * 2) sourceRect: Qt.rect(0, 0, width * 2, height * 2)
...@@ -90,14 +90,19 @@ Kirigami.ScrollablePage { ...@@ -90,14 +90,19 @@ Kirigami.ScrollablePage {
} }
} LinearGradient {
Rectangle { id: grad
anchors.fill: parent; anchors.fill: parent
anchors.margins: Kirigami.Units.gridUnit / 4; cached: true
border.color: Kirigami.Theme.textColor; start: Qt.point(0,0)
border.width: webBrowser.borderWidth end: Qt.point(0,height)
color: "transparent" gradient: Gradient {
opacity: 0.3; GradientStop { position: 0.0; color: "transparent"; }
GradientStop { position: Math.max(0.25, (grad.height - label.x * 4) / grad.height); color: "transparent"; }
GradientStop { position: Math.max(0.25, (grad.height - (label.x + label.height) / 2) / grad.height); color: Kirigami.Theme.backgroundColor; }
GradientStop { position: 1; color: Kirigami.Theme.backgroundColor; }
}
}
} }
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
...@@ -123,6 +128,7 @@ Kirigami.ScrollablePage { ...@@ -123,6 +128,7 @@ Kirigami.ScrollablePage {
} }
Controls.Label { Controls.Label {
id: label
anchors { anchors {
left: tabItem.left left: tabItem.left
right: tabItem.right right: tabItem.right
......
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