Warning, /education/marble/src/apps/marble-maps/BoxedText.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2015 Gábor Péterffy <peterffy95@gmail.com> 0004 // 0005 0006 import QtQuick 2.3 0007 import QtQuick.Window 2.2 0008 0009 Item { 0010 id: root 0011 width: 1.1 * label.width 0012 height: 1.1 * label.height 0013 property alias color: background.color 0014 property alias textColor: label.color 0015 property alias text: label.text 0016 0017 Rectangle { 0018 id: background 0019 anchors.fill: parent 0020 radius: Screen.pixelDensity*0.5 0021 color: "black" 0022 opacity: 0.63 0023 } 0024 0025 Text { 0026 id: label 0027 color: "white" 0028 anchors { 0029 centerIn: background 0030 } 0031 } 0032 }