Skip to content

Commit 9c5df0d

Browse files
authored
Merge pull request #663 from neyfua/mimeapp-gui
feat(mimeapp-gui): add ControlCenterWidget
2 parents 3406f11 + 8f706a4 commit 9c5df0d

3 files changed

Lines changed: 21 additions & 2 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+
}

mimeapp-gui/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ Exec=qs -c noctalia-shell ipc call plugin:mimeapp-gui open
4343

4444
- The "Common" tab visually groups common types (browsers, images, music, video, archives, etc.) and displays typical file extensions beside each group.
4545
- Changing a default updates only the selected MIME type in `~/.config/mimeapps.list`.
46+
- `ControlCenterWidget` for Control Center shortcuts

mimeapp-gui/manifest.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "mimeapp-gui",
33
"name": "MimeApp GUI",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"minNoctaliaVersion": "4.1.2",
66
"author": "Mathew-D",
77
"license": "MIT",
@@ -16,7 +16,8 @@
1616
"entryPoints": {
1717
"main": "Main.qml",
1818
"barWidget": "BarWidget.qml",
19-
"panel": "Panel.qml"
19+
"panel": "Panel.qml",
20+
"controlCenterWidget": "ControlCenterWidget.qml"
2021
},
2122
"dependencies": {
2223
"plugins": []

0 commit comments

Comments
 (0)