Francesco Galgani
Francesco Galgani

Reputation: 6249

CodenameOne: automatically convert a theme file (theme.res) to CSS

Cascading Stylesheet Support for Codename One is possible thanks to the library cn1-css.

My question is about the conversion of a theme file (theme.res) to the equivalent CSS code. Is it possible automatically? If yes, what about the images incorporated in the theme file?

Upvotes: 2

Views: 107

Answers (1)

Shai Almog
Shai Almog

Reputation: 52760

No. It's only CSS to theme and not the other way around.

You can work with images from file system to a multi-image using the approach highlighted here: https://www.codenameone.com/blog/using-css-to-import-images.html

Upvotes: 1

Related Questions