Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Fix Fusion style for QML TabButtonBase once more.

Wolthera van Hövell tot Westerflier772f68fb3659
diff --git a/qmlmodules/components/qml/themedComponents/+Fusion/TabButtonBase.qml b/qmlmodules/components/qml/themedComponents/+Fusion/TabButtonBase.qml
index 662e1ca257..ab622a72bc 100644
--- a/qmlmodules/components/qml/themedComponents/+Fusion/TabButtonBase.qml
+++ b/qmlmodules/components/qml/themedComponents/+Fusion/TabButtonBase.qml
@@ -28,13 +28,13 @@ TabButton {
color: checked? control.palette.window: Qt.darker(parent.palette.window, 1.1);
border.color: Qt.darker(parent.palette.window, 1.4);
radius: 2;
- y: checked ? 2 : 4;
+ y: checked ? 0 : 2;
height: control.height+5;
Rectangle {
x: 1; y: 1
width: parent.width - 2
height: parent.height - 2
- border.color: control.palette.window;
+ border.color: control.palette.light.hslLightness > 0.63? control.palette.window: control.palette.light;
color: parent.color;
radius: parent.radius+1;
}