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

0001 /*
0002     SPDX-FileCopyrightText: 2019 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 import QtQuick 2.0
0007 import QtQuick.Controls 1.4
0008 import QtQuick.Layouts 1.3
0009 import QtGraphicalEffects 1.0
0010 
0011 import QtQuick.Controls.Styles.Plasma 2.0 as PlasmaStyles
0012 
0013 import org.kde.plasma.core 2.0 as PlasmaCore
0014 import org.kde.plasma.components 2.0 as PlasmaComponents
0015 
0016 PlasmaStyles.CheckBoxStyle{
0017     id: checkboxStyle
0018 
0019     label: PlasmaComponents.Label {
0020         id: labelStyleTxt
0021         text: control.text
0022         wrapMode: Text.WordWrap
0023         elide: Text.ElideNone
0024 
0025         Rectangle {
0026             anchors.left: parent.left
0027             anchors.right: parent.right
0028             anchors.top: parent.bottom
0029             height: 1 * units.devicePixelRatio
0030             color: theme.highlightColor
0031             visible: control.activeFocus
0032         }
0033     }
0034 
0035     panel: Item {
0036         implicitWidth: Math.round(row.implicitWidth + padding.left + padding.right)
0037         implicitHeight: Math.round(row.implicitHeight + padding.top + padding.bottom)
0038 
0039         RowLayout {
0040             id: row
0041 
0042             y: padding.top
0043             x: padding.left
0044             width: parent.width - padding.left - padding.right
0045             spacing: checkboxStyle.spacing
0046 
0047             Loader {
0048                 id: indicatorLoader
0049 
0050                 Layout.alignment: Qt.AlignTop
0051                 sourceComponent: indicator
0052             }
0053 
0054             Loader {
0055                 id: labelLoader
0056 
0057                 Layout.alignment: Qt.AlignTop
0058                 Layout.fillHeight: true
0059                 Layout.fillWidth: true
0060                 sourceComponent: label
0061             }
0062         }
0063     }
0064 }