X-Git-Url: http://git.maemo.org/git/?p=lichviet;a=blobdiff_plain;f=qml%2FLichViet%2FThemes.js;fp=qml%2FLichViet%2FThemes.js;h=8690364a6f11d63a9995b8120b4ae442a23b4545;hp=80d73de5e73ad42caf33eac29e196079df43f036;hb=bebe39d38728cb4fcc9600bd65298fbef84ee7ee;hpb=464bd2551a742a176539f4a861712b31da817de4 diff --git a/qml/LichViet/Themes.js b/qml/LichViet/Themes.js index 80d73de..8690364 100644 --- a/qml/LichViet/Themes.js +++ b/qml/LichViet/Themes.js @@ -3,7 +3,7 @@ Copyright (C) 2011 by Cuong Le This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or +the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -22,3 +22,9 @@ var root_dir = "/opt/usr/share/LichViet/"; function default_theme(){ return "file:"+root_dir+"themes/default/default.qml"; } + +function init(Controller, Model){ + if(Controller.pathExists(root_dir)){ + Model.append({idm:2,name: "BLACK",title:"",can_be_deleted:false,is_selected:false}) + } +}