mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2026-09-19 18:19:02 +05:30
refactor(system-tray): replace rectangle with barbutton
This commit is contained in:
@@ -3,22 +3,18 @@ pragma ComponentBehavior: Bound
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell.Services.SystemTray
|
import Quickshell.Services.SystemTray
|
||||||
import qs.config
|
import qs.config
|
||||||
|
import qs.ui
|
||||||
|
|
||||||
Rectangle {
|
BarButton {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property int iconSize: 16
|
property int iconSize: 16
|
||||||
|
|
||||||
implicitWidth: trayRow.implicitWidth + 10
|
hoverHighlight: false
|
||||||
implicitHeight: 34
|
pointerCursor: false
|
||||||
radius: Appearance.radius
|
|
||||||
color: Appearance.colors.inActive
|
|
||||||
visible: SystemTray.items.values.length > 0
|
visible: SystemTray.items.values.length > 0
|
||||||
|
|
||||||
Row {
|
contentItem: Row {
|
||||||
id: trayRow
|
|
||||||
|
|
||||||
anchors.centerIn: parent
|
|
||||||
spacing: Appearance.spacing
|
spacing: Appearance.spacing
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
|
|||||||
Reference in New Issue
Block a user