mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
25 lines
679 B
QML
25 lines
679 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import Quickshell
|
|
import qs.Commons
|
|
import qs.Services
|
|
import qs.Widgets
|
|
|
|
NIconButton {
|
|
id: root
|
|
|
|
property ShellScreen screen
|
|
property real scaling: 1.0
|
|
|
|
baseSize: Style.capsuleHeight
|
|
compact: (Settings.data.bar.density === "compact")
|
|
icon: "wallpaper-selector"
|
|
tooltipText: I18n.tr("tooltips.open-wallpaper-selector")
|
|
tooltipDirection: BarService.getTooltipDirection()
|
|
colorBg: (Settings.data.bar.showCapsule ? Color.mSurfaceVariant : Color.transparent)
|
|
colorFg: Color.mOnSurface
|
|
colorBorder: Color.transparent
|
|
colorBorderHover: Color.transparent
|
|
onClicked: PanelService.getPanel("wallpaperPanel")?.toggle(this)
|
|
}
|