-
Notifications
You must be signed in to change notification settings - Fork 280
Mimeapp GUI plugin #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Mimeapp GUI plugin #342
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
84b45e1
Mimeapp GUI plugin - A GUI for managing MIME type associations on Linux
Mathew-D a9213af
Changed GUI to Default and All
Mathew-D 5f43427
Fixing common page gui for
Mathew-D 6bcd1d5
New preview showing two of the guis
Mathew-D f22eaff
- Moved all user-facing strings in Panel.qml to i18n, removed all fal…
Mathew-D 76dfc1e
Add i18n for "Common" tab and use translation keys for group tab names
Mathew-D 2812581
Improve group tab i18n fallback for Panel.qml
Mathew-D acef05b
Fixed README to remove toggle # Please enter the commit message for y…
Mathew-D 8108eb1
removed the official: false in the manifest
Mathew-D File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import Quickshell | ||
| import qs.Commons | ||
| import qs.Widgets | ||
|
|
||
| NIconButton { | ||
| id: root | ||
|
|
||
| property var pluginApi: null | ||
| property ShellScreen screen | ||
| property string widgetId: "" | ||
| property string section: "" | ||
|
|
||
| readonly property string screenName: screen?.name ?? "" | ||
|
|
||
| baseSize: Style.getCapsuleHeightForScreen(screenName) | ||
| applyUiScale: false | ||
| customRadius: Style.radiusL | ||
| icon: "file-text" | ||
| tooltipText: pluginApi?.tr("bar.tooltip") || "MIME App Defaults" | ||
|
|
||
| onClicked: { | ||
| pluginApi?.openPanel(root.screen, root) | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import QtQuick | ||
| import Quickshell | ||
| import Quickshell.Io | ||
|
|
||
| Item { | ||
| id: root | ||
|
|
||
| property var pluginApi: null | ||
|
|
||
| IpcHandler { | ||
| target: "plugin:mimeapp-gui" | ||
|
|
||
| function open() { | ||
| if (root.pluginApi) { | ||
| root.pluginApi.withCurrentScreen(screen => { | ||
| root.pluginApi.openPanel(screen) | ||
| }) | ||
| } | ||
| } | ||
|
|
||
| function toggle() { | ||
|
Mathew-D marked this conversation as resolved.
Outdated
|
||
| if (root.pluginApi) { | ||
| root.pluginApi.withCurrentScreen(screen => { | ||
| root.pluginApi.togglePanel(screen) | ||
| }) | ||
| } | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.