Skip to content
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

Remember UI language #929

Open
sonnyp opened this issue Apr 3, 2024 · 4 comments
Open

Remember UI language #929

sonnyp opened this issue Apr 3, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@sonnyp
Copy link
Contributor

sonnyp commented Apr 3, 2024

I'd love it if it remembered my choice of UI templating language; at the moment, I manually change it to "XML" every time I open a new preview.

https://floss.social/@[email protected]/112209275904050683

Should be quite easy to implement, we do this for Code language, see the setting recent-code-language.

@sonnyp sonnyp added the enhancement New feature or request label Apr 3, 2024
@DevHyperCoder
Copy link

I would like to know the possibility of adding a keyboard shortcut to switch between the two (XML and blueprint)

My current workflow innvolves desiging the UI using blueprint, and then copying the XML code into a .ui file.

I have a bit of experience with GTK apps in general so I can try to contribute where I can if the feature request is accepted.

@sonnyp
Copy link
Contributor Author

sonnyp commented Apr 24, 2024

Not against the idea of shortcuts but perhaps we can do even better.

When you switch to XML is it to make edits or copy/paste?
Do you copy into a new .ui file or an existing one?

I feel like an export action might be worth considering.

@DevHyperCoder
Copy link

I use blueprint to edit it (because i find it is much easier to edit) and then switch to XML, copy the code into a existing .ui file.

What exactly do you mean by a export feature ? Do you mean it as a "Save As" ?

Aside:
I haven't found a way to load multiple files in workbench ? Because I don't need a whole "project" for my workflow, just being able to preview and edit the files.

@vixalien
Copy link
Contributor

Food for thought: Remember when the Blueprint/XML used to be a simple toggle, and now it's a dropdown?

Now it takes 2 clicks to switch a language, which is kind of a regression. It would be nice if there was a "Switch" button next to the drop down to quickly change the UI language.

Or we can leverage the new AdwToggleGroup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants