Skip to content

braineo/zeplin-qml-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zeplin QML Extension

This plugin generates code for QML

Zeplin extension that generates sample snippets.

Getting started

Add the extension to your project from extensions.zeplin.io.

Output

Rectangle {
    width: 464
    height: 510
    radius: 4
    border {
        width: 2
        color: "#ffbb18"
    }
}
Text {
    text: qsTr(example text for plugin')
    color: "#ffffff"
    font.pixelSize: 14
    wrapMode: Text.WordWrap
    elide: Text.ElideRight
}

Options

Resize function name

Name of function to apply to size, width, height.

Use linked style guide

Display resources from linked and parent style guides.

Style guide namespace

QML name space of style guide. A prefix to color names etc.

ARGB hex color format

Display hex colors in ARGB format with the alpha value as the first tuple (instead of the default Zeplin format with alpha last)

Text i18n option

If enabled, will wrap text into qsTr('text') or qsTrId('text-id')

Development

This extension is developed using zem, Zeplin Extension Manager. zem is a command line tool that lets you quickly create, test and publish extensions.

To learn more about creating Zeplin extensions, see documentation.

Releases

No releases published

Packages

No packages published