forked from qt-creator/qt-creator
QmlDesigner.PropertyEditor: adjust TabView style
Styling the TabView in css is problematic and we want to keep the style in sync. So we use the old style here. Change-Id: I57ed39a03b4b4c59e9a996ca4e14d4d9fe9dfeb2 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
@@ -40,26 +40,28 @@ Controls.TabView {
|
|||||||
frameOverlap: 0
|
frameOverlap: 0
|
||||||
frame: Item { }
|
frame: Item { }
|
||||||
tab: Rectangle {
|
tab: Rectangle {
|
||||||
color: styleData.selected ? "#eee" : "#444"
|
color: styleData.selected ? "#eee" : "#414141"
|
||||||
implicitWidth: root.width/root.count + 2
|
implicitWidth: root.width/root.count + 2
|
||||||
implicitHeight: 21
|
implicitHeight: 28
|
||||||
Text {
|
Text {
|
||||||
id: text
|
id: text
|
||||||
|
font.bold: true
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
anchors.verticalCenterOffset: -1
|
||||||
text: styleData.title
|
text: styleData.title
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
color: styleData.selected ? "#000" : "#fff"
|
color: styleData.selected ? "#333" : "#fff"
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
anchors.fill: parent
|
color: "#eee"
|
||||||
opacity: 0.10
|
width: parent.width
|
||||||
gradient: Gradient {
|
height: 4
|
||||||
GradientStop {color: '#fff' ; position: 0}
|
anchors.bottom: parent.bottom
|
||||||
GradientStop {color: '#000' ; position: 1}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: "#666"
|
color: "#333"
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: 1
|
height: 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user