Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support actions in tour #5

Closed
mirkobrombin opened this issue Jan 4, 2024 · 0 comments
Closed

Support actions in tour #5

mirkobrombin opened this issue Jan 4, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mirkobrombin
Copy link
Member

mirkobrombin commented Jan 4, 2024

In this commit I added a prototype of action based on prefixes.

    {
        "resource": "/org/vanillaos/Tour/assets/configure.svg",
        "title": "Configure Your Device",
        "description": "From Bluetooth devices to that wallpaper you love so much. The settings panel allows you to configure it as you like.",
        "hasAction": true,
        "action": {
            "title": "Open the Settings",
            "callback": "cmd://gnome-control-center"
        }
    }

The following explain each key:

  • hasAction is a boolean, this could be removed if we check for the presence of the action key instead
  • action contains the metadata for the action:
    • title is the name of the action which will be displayed in the button
    • callback is the one containing the real action, the idea is to define each action using a prefix to inform the backend how to process them:
      • cmd:// where the remaining characters is the command to launch
      • url:// where the remaining characters is the url to open in the web browser

this is just a prototype, the whole structure can be changed/improved. There is no backend that manages it.

@mirkobrombin mirkobrombin added the enhancement New feature or request label Jan 4, 2024
@mirkobrombin mirkobrombin added this to the 2-beta milestone Jan 4, 2024
@mirkobrombin mirkobrombin moved this to Todo in 2 - Orchid Jan 4, 2024
@mirkobrombin mirkobrombin self-assigned this Jan 5, 2024
Muqtxdir added a commit that referenced this issue Jan 7, 2024
-  refactor slide to make use of `AdwSttausPage` and hidden `GtkButton`
- fix gresource for png asset
@github-project-automation github-project-automation bot moved this from Todo to Done in 2 - Orchid Jan 8, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

2 participants