aerothemeplasma/plasma/plasmoids/org.kde.plasma.volume/contents/ui/SmallToolButton.qml

20 lines
564 B
QML
Raw Normal View History

2024-08-09 01:20:25 +00:00
/*
SPDX-FileCopyrightText: 2017 Chris Holland <zrenfire@gmail.com>
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
import QtQuick
import QtQuick.Layouts
import org.kde.kirigami as Kirigami
import org.kde.plasma.components as PlasmaComponents3
PlasmaComponents3.ToolButton {
id: smallToolButton
readonly property int size: Math.ceil(Kirigami.Units.iconSizes.small + Kirigami.Units.smallSpacing * 2)
implicitWidth: size
implicitHeight: size
display: PlasmaComponents3.AbstractButton.IconOnly
}