From 9413b50cba3d8b4c9a8b6474729483b775aa5619 Mon Sep 17 00:00:00 2001 From: "kali kaneko (leap communications)" Date: Fri, 17 Sep 2021 19:49:15 +0200 Subject: [ui] nospy and sizes --- gui/components/MaterialButton.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gui/components/MaterialButton.qml') diff --git a/gui/components/MaterialButton.qml b/gui/components/MaterialButton.qml index 25911f3..7fe04d9 100644 --- a/gui/components/MaterialButton.qml +++ b/gui/components/MaterialButton.qml @@ -5,6 +5,8 @@ import QtQuick.Controls.impl 2.12 import QtQuick.Controls.Material 2.12 import QtQuick.Controls.Material.impl 2.12 +import "../themes/themes.js" as Theme + T.Button { id: control @@ -42,13 +44,13 @@ T.Button { } background: Rectangle { - implicitWidth: 64 + implicitWidth: 68 implicitHeight: control.Material.buttonHeight radius: 4 border.color: "black" border.width: 1 - color: !control.enabled ? control.Material.buttonDisabledColor : control.highlighted ? control.Material.highlightedButtonColor : control.Material.buttonColor + color: !control.enabled ? control.Material.buttonDisabledColor : control.highlighted ? control.Material.highlightedButtonColor : Theme.buttonColor PaddedRectangle { y: parent.height - 4 -- cgit v1.2.3