Skip to content

Commit dbc27ec

Browse files
committed
feat: add ControlCenterWidget for mimeapp-gui plugin
1 parent e7593f7 commit dbc27ec

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import QtQuick
2+
import Quickshell
3+
import qs.Widgets
4+
5+
NIconButton {
6+
property ShellScreen screen
7+
property var pluginApi: null
8+
9+
icon: "file-text"
10+
tooltipText: pluginApi?.tr("bar.tooltip")
11+
12+
onClicked: {
13+
if (pluginApi) {
14+
pluginApi.togglePanel(screen);
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)