migrate to iconbutton on tray
This commit is contained in:
parent
1d350e35d6
commit
a0ccdc231b
1 changed files with 3 additions and 3 deletions
|
|
@ -1,20 +1,20 @@
|
||||||
pragma ComponentBehavior: Bound
|
pragma ComponentBehavior: Bound
|
||||||
|
|
||||||
import qs.widgets
|
import qs.components
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Services.SystemTray
|
import Quickshell.Services.SystemTray
|
||||||
import Quickshell.Widgets
|
import Quickshell.Widgets
|
||||||
import "menu/"
|
import "menu/"
|
||||||
|
|
||||||
StyledButton {
|
StyledIconButton {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property SystemTrayItem trayItem
|
property SystemTrayItem trayItem
|
||||||
|
|
||||||
onClicked: menu.toggle()
|
onClicked: menu.toggle()
|
||||||
|
|
||||||
content: IconImage {
|
contentItem: IconImage {
|
||||||
id: icon
|
id: icon
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
implicitSize: 18
|
implicitSize: 18
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue