From 328eb32a24eef9a59da7bd2e2f1bf22959783f45 Mon Sep 17 00:00:00 2001 From: Sander Ferdinand Date: Fri, 8 Dec 2017 01:51:22 +0100 Subject: Various QML development --- components/InlineButton.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'components/InlineButton.qml') diff --git a/components/InlineButton.qml b/components/InlineButton.qml index 11439369..77f88f3d 100644 --- a/components/InlineButton.qml +++ b/components/InlineButton.qml @@ -28,10 +28,11 @@ import QtQuick 2.0 import QtQuick.Layouts 1.1 +import "." 1.0 Item { id: inlineButton - height: 32 * scaleRatio + height: rect.height * scaleRatio property string shadowPressedColor: "#B32D00" property string shadowReleasedColor: "#FF4304" property string pressedColor: "#FF4304" @@ -50,10 +51,10 @@ Item { Rectangle{ id: rect - color: rect.enabled ? "#808080" : "#3b3b3b" + color: Style.buttonBackgroundColorDisabled border.color: "black" - height: 32 - width: inlineText.width + 22 + height: 28 * scaleRatio + width: inlineText.width + 22 * scaleRatio radius: 4 anchors.top: parent.top -- cgit v1.2.3