Skip to content

1.6.1

Choose a tag to compare

@rds1983 rds1983 released this 09 Jun 14:18
· 109 commits to master since this release

Edit Stylesheets in MyraPad

Now it's possible to edit stylesheets right in the MyraPad.

If the ui project references custom stylesheet. Then the Stylesheet tab app appear, where it could be edit. And when you do File/Save, then both the ui project and the referenced stylesheet will be saved.

The stylesheet editor shows only styles present in the stylesheet, if some widget style doesn't exist, add it manually to the xmms, like this

<PanelStyles>
	<WidgetStyle />
</PanelStyles>

In this video, we reference a stylesheet, then change color of labels and image of checkboxes:

myraPadEditStylesheet.mp4

New MyraPad Image Editor

The new image editor allows to change brushes and images to the ui project's stylesheet's texture atlas's images. Also it's possible to customize the color tint.

In this video, we set Image's Renderable to the image from the stylesheet, then modify the color tint:

myraPadNewImageEditor.mp4

New MyraPad Font Editor

There's new font editor too. Now it can also references the stylesheet fonts. If the stylesheet font is ttf(and the default stylesheet font is), then it is possible to modify the size too.

In this video, we set Label Font to the default stylesheet "tooltip-font", then modify its size to 32:

myraPadNewFontEditor.mp4

Styleable Containers

All containers(Grid, Panel, HorizontalStackPanel and VerticalStackPanel) are now styleable. You could set their style either through the code, or through the xmms.

New Tool: MyraViewer

It is small utility to view the xmmp files: https://myraui.github.io/Myra/docs/MyraViewer.html

Major Code Refactor

I am aware that some people fork Myra in order to adapt it to their needs. It should be easier now, since the whole code was refactored in order to become cleaner and simplier. Particularly code that does the style and the MML serialization code was affected.

New Repo That Stores Custom Stylesheets

https://github.com/MyraUI/MyraStylesheets