mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-06 14:26:32 +00:00
27 lines
799 B
QML
27 lines
799 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import QtQuick.Controls
|
|
import Quickshell
|
|
import Quickshell.Wayland
|
|
import qs.Commons
|
|
import qs.Services
|
|
import qs.Widgets
|
|
|
|
NIconButton {
|
|
id: root
|
|
|
|
property real scaling: 1.0
|
|
|
|
baseSize: Style.capsuleHeight
|
|
compact: (Settings.data.bar.density === "compact")
|
|
colorBg: Settings.data.bar.showCapsule ? Color.mSurfaceVariant : Color.transparent
|
|
colorFg: Color.mOnSurface
|
|
colorBorder: Color.transparent
|
|
colorBorderHover: Color.transparent
|
|
tooltipText: I18n.tr("tooltips.bluetooth-devices")
|
|
tooltipDirection: BarService.getTooltipDirection()
|
|
icon: BluetoothService.enabled ? "bluetooth" : "bluetooth-off"
|
|
onClicked: PanelService.getPanel("bluetoothPanel")?.toggle(this)
|
|
onRightClicked: PanelService.getPanel("bluetoothPanel")?.toggle(this)
|
|
}
|