Moscrif Skin
Moscrif‘s graphic engine is based on Skia; therefore applications appearance does not depend on device’s operation system. At present, there are two skins available: Moscrif and Metro. Moscrif is a brand new skin, created by our graphic designers.
Metro skin is similar to Windows phone 7 and Windows phone 8 skins. It creates application with appearance of Windows Phone for all supported platforms: Android, Bada, Symbian, iOS etc. Another positive of the Moscrif Metro skin is its capability of adjusting to every resolution.
Skins in Moscrif are separated from the application source code. We can change the application appearance any time in project life cycle.
Skin changing
Skin changing is very simple operation. It requires to include skin’s source file and create a skin object, for example Moscrif Metro skin has to be set into the application object.
include "code://ui/application.ms"
//include skin's source file
include "code://skin/skin.metro.ms"
//create new object of MetroSkin
var skin = new MetroSkin();
//apply skin to the application object (set instance of skin's class as the second parameter of application constructor)
var app = new Application("application name", skin);
//initialize and run application object
app.init().run();
Screenshots below show Moscrif Metro skin in action (screenshots are from Graphics Calculator demo):
License
This article, along with any associated source codes and files, is licensed under The BSD License
|