Warning, /education/gcompris/src/activities/binary_bulb/resource/tutorial3.qml is written in an unsupported language. File is not indexed.
0001 /* GCompris - tutorial3.qml 0002 * 0003 * SPDX-FileCopyrightText: 2018 Timothée Giet <animtim@gcompris.net> 0004 * 0005 * Authors: 0006 * Timothée Giet <animtim@gcompris.net> 0007 * 0008 * SPDX-License-Identifier: GPL-3.0-or-later 0009 */ 0010 import QtQuick 2.12 0011 import GCompris 1.0 0012 0013 import "../../../core" 0014 0015 Rectangle { 0016 anchors.fill: parent 0017 color: "#80FFFFFF" 0018 0019 Item { 0020 width: parent.width 0021 height: parent.height * 0.5 0022 0023 Image { 0024 source: "transistor.svg" 0025 fillMode: Image.PreserveAspectFit 0026 anchors.fill: parent 0027 sourceSize.height: implicitHeight 0028 } 0029 } 0030 0031 Item { 0032 width: parent.width * 0.2 0033 height: parent.height * 0.5 0034 anchors.bottom: parent.bottom 0035 anchors.left: parent.left 0036 0037 GCText { 0038 anchors { 0039 right: parent.right 0040 verticalCenter: parent.verticalCenter 0041 } 0042 text: "0" 0043 font.pixelSize: parent.height * 0.5 0044 color: "black" 0045 horizontalAlignment: Text.AlignRight 0046 width: 0.9 * parent.width 0047 height: 0.9 * parent.height 0048 z: 2 0049 } 0050 } 0051 0052 Item { 0053 width: parent.width * 0.3 0054 height: parent.height * 0.4 0055 anchors.bottom: parent.bottom 0056 anchors.right: parent.horizontalCenter 0057 anchors.bottomMargin: parent.height * 0.05 0058 0059 Image { 0060 source: "bulb_off.svg" 0061 fillMode: Image.PreserveAspectFit 0062 anchors.fill: parent 0063 sourceSize.width: implicitWidth 0064 } 0065 0066 } 0067 0068 Item { 0069 width: parent.width * 0.3 0070 height: parent.height * 0.4 0071 anchors.bottom: parent.bottom 0072 anchors.left: parent.horizontalCenter 0073 anchors.bottomMargin: parent.height * 0.05 0074 0075 Image { 0076 source: "bulb_on.svg" 0077 fillMode: Image.PreserveAspectFit 0078 anchors.fill: parent 0079 sourceSize.width: implicitWidth 0080 } 0081 0082 } 0083 0084 Item { 0085 width: parent.width * 0.2 0086 height: parent.height * 0.5 0087 anchors.bottom: parent.bottom 0088 anchors.right: parent.right 0089 0090 GCText { 0091 anchors { 0092 left: parent.left 0093 verticalCenter: parent.verticalCenter 0094 } 0095 text: "1" 0096 font.pixelSize: parent.height * 0.5 0097 color: "black" 0098 horizontalAlignment: Text.AlignLeft 0099 width: 0.9 * parent.width 0100 height: 0.9 * parent.height 0101 z: 2 0102 } 0103 } 0104 }