Warning, /plasma/latte-dock/declarativeimports/components/Label.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2016 Marco Martin <mart@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 import QtQuick 2.1
0008 import QtQuick.Window 2.2
0009 import QtQuick.Templates 2.2 as T
0010 import org.kde.plasma.core 2.0 as PlasmaCore
0011 
0012 T.Label {
0013     id: control
0014 
0015     verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter
0016 
0017     activeFocusOnTab: false
0018 
0019     // Work around Qt bug where NativeRendering breaks for non-integer scale factors
0020     // https://bugreports.qt.io/browse/QTBUG-67007
0021     renderType: Screen.devicePixelRatio % 1 !== 0 ? Text.QtRendering : Text.NativeRendering
0022 
0023     //font data is the system one by default
0024     //TODO: from theme singleton?
0025     color: PlasmaCore.ColorScope.textColor
0026     linkColor: theme.linkColor
0027 
0028     opacity: enabled? 1 : 0.6
0029 
0030     Accessible.role: Accessible.StaticText
0031     Accessible.name: text
0032 }