Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
= Start From Step by Step of Making a Good Theme =
Creating a theme is easy by forking an existing "base" theme:
* You can change the name of the theme and the color scheme of the piecharts in
init.rb
 
= Variables in the Init File =
 
The init.rb file contains some variables that are expected by the Amahi platform. Only one is required:
* <code>ret[:name] = "Morning Sunshine"</code> &mdash; A string with the name of the theme (the user sees this)
 
Optional:
* <code>ret[:headers] = ["foo.js", "bar.js"]</code> &mdash; An array of strings,with names of javascript files to be included for this theme
* <code>ret[:gruff_theme] = { ... }</code> &mdash; Theme for the piecharts - see the
 
= Themes Sources in Git =
Trusted, Bots, Bureaucrats, emailconfirmed, Administrators
3,789

edits