Warning, /plasma/plasma-sdk/plasmoidviewer/qmlpackages/shell/contents/views/FloatingToolBar.qml is written in an unsupported language. File is not indexed.

0001 /*
0002  *  SPDX-FileCopyrightText: 2023 ivan tkachenko <me@ratijas.tk>
0003  *
0004  *  SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 import QtQuick
0008 import QtQuick.Templates as T
0009 
0010 import org.kde.kirigami 2.20 as Kirigami
0011 import org.kde.ksvg 1.0 as KSvg
0012 
0013 T.ToolBar {
0014     id: control
0015 
0016     implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
0017                             contentWidth + leftPadding + rightPadding)
0018     implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
0019                              contentHeight + topPadding + bottomPadding)
0020 
0021     topPadding: background.margins.top
0022     leftPadding: background.margins.left
0023     rightPadding: background.margins.right
0024     bottomPadding: background.margins.bottom
0025 
0026     spacing: Kirigami.Units.smallSpacing
0027 
0028     background: KSvg.FrameSvgItem {
0029         imagePath: "widgets/background"
0030     }
0031 }