diff --git a/src/core/ReadyButton.qml b/src/core/ReadyButton.qml index 96b8ba8f0..b276881e0 100644 --- a/src/core/ReadyButton.qml +++ b/src/core/ReadyButton.qml @@ -1,88 +1,88 @@ /* GCompris - ReadyButton.qml * * Copyright (C) 2014 Bruno Coudoin * * Authors: * Bruno Coudoin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ import QtQuick 2.2 import GCompris 1.0 Rectangle { id: iamReady anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter border.color: "black" visible: true radius: 4 smooth: true border.width: 0 width: iamReadyText.width + 50 * ApplicationInfo.ratio height: iamReadyText.height + 50 * ApplicationInfo.ratio color: "#AAFFFFFF" signal clicked GCText { id: iamReadyText anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter font.bold: true - fontSize: 18 + fontSize: mediumSize text: qsTr("I am Ready") visible: iamReady.visible } MouseArea { id: mouseArea anchors.fill: parent hoverEnabled: true onClicked: { iamReady.visible = false iamReady.clicked() } } states: [ State { name: "notclicked" PropertyChanges { target: iamReady scale: 1.0 } }, State { name: "clicked" when: mouseArea.pressed PropertyChanges { target: iamReady scale: 0.9 } }, State { name: "hover" when: mouseArea.containsMouse PropertyChanges { target: iamReady scale: 1.1 } } ] Behavior on scale { NumberAnimation { duration: 70 } } }