-
Notifications
You must be signed in to change notification settings - Fork 1
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
native OVOS integration #12
Comments
It's been a while since I properly looked into the lapel source code, so my memory's a bit rusty, but I'll try my best to answer any questions. (Would be nice to get this project up and running again...)
I'm not entirely sure whether something like the QML approach could be done with GTK's .ui files. In general, the way UI files work is a bit confusing:
In general, though, I find the approach used by Mycroft with QML files a bit awkward - if I understand correctly, they are made to work primarily in a full-screen setting, like the standard Mycroft-GUI. Fitting them into an app like Lapel, where content is provided in a chat-like format akin to Google Assistant, could be challenging. An alternative could be providing the data needed to build an interface in a more easily parsable format, like JSON. Then we could e.g. add "display types" which would serve effectively the same purpose as the SYSTEM qml files (I'm thinking kinda like the card types of Twitter Cards), "actions" which would denote things like buttons, and maybe some other options for more specific layouts. This way there's an unified way to specify what the UI should contain, and GUI makers could choose how they want to display the information. It also means it can be used in a lot more than just QML and GTK apps, without skill devs having to support each one separately. ...still, that also sounds like plenty of development effort, but it might be a bit more sustainable. This is all just a loose suggestion though :p I'd love to discuss this further, I'm open to suggestions! |
...actually, disregard everything I said about templates, I think we should be able to do the same thing as the QML files with GtkBuilder. See |
hello! just found out about this project thanks to @PureTryOut
i am not familiar with GTK or with this code base, i took a quick look at the repo. apologies if my terminology is off or i misunderstood something
my suggestion is that this is made to support all the SYSTEM_XXX.qml equivalents, these correspond to templates commonly used by skills, eg,
self.gui.show_image
,self.gui.show_text
, docs here and can be easily parsed from the requested page nameregarding the hardcoding of skill_ids to views, i wonder how we could best allow skills to provide this (optionally)
we have been discussing the best way to support other GUIs that don't use QML such as javascript or command line interfaces, the easy implementation would be to check if the skill provides a equivalent named file with different file extensions, ie
if we implement this in ovos, would the .ui format seen here be the way to go from skill developers side if they wanted to explicitly support lapel or other GTK based gui clients?
The text was updated successfully, but these errors were encountered: