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

restore border around tile on tabs selection

Restore the border surrounding each tile in tabs view. Also add
feedback on mouse press/touch to indicate selected tab
parent e40b053b
...@@ -124,14 +124,30 @@ Kirigami.ScrollablePage { ...@@ -124,14 +124,30 @@ Kirigami.ScrollablePage {
} }
} }
} }
Rectangle {
// border around a tile
anchors.fill: parent;
border.color: Kirigami.Theme.textColor
border.width: webBrowser.borderWidth
color: "transparent"
opacity: tabs.currentIndex === index ? 0.5 : 0.3
}
Rectangle {
// selection indicator
anchors.fill: parent
color: mouse.pressed ? Kirigami.Theme.highlightColor : "transparent"
opacity: 0.2
}
MouseArea { MouseArea {
id: mouse
anchors.fill: parent anchors.fill: parent
onClicked: { onClicked: {
print("Switch from " + tabs.currentIndex + " to tab " + index); print("Switch from " + tabs.currentIndex + " to tab " + index);
tabs.currentIndex = index; tabs.currentIndex = index;
//tabs.positionViewAtIndex(index, ListView.Beginning);
//tabs.positionViewAtEnd();
pageStack.pop() pageStack.pop()
} }
} }
......
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