Workbench icon indicating copy to clipboard operation
Workbench copied to clipboard

Remember UI language

Open sonnyp opened this issue 1 year ago • 4 comments

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 avatar Apr 03 '24 22:04 sonnyp

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.

DevHyperCoder avatar Apr 24 '24 04:04 DevHyperCoder

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.

sonnyp avatar Apr 24 '24 08:04 sonnyp

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.

DevHyperCoder avatar Apr 24 '24 10:04 DevHyperCoder

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

vixalien avatar Sep 27 '24 14:09 vixalien