Hi All,
I did some modifications in the qx.theme.color.LunaBlue file and
I saved those modifications in a new File, named
"qx.theme.classic.color.LunaBlack. And also create a new js file in the
following structure
qx.theme.ClassicLunaBlack. Then using the following command to set the theme
"qx.theme.manager.Meta.getInstance().setTheme(qx.theme.ClassicLunaBlack);"
But my application throws the following error and the project is not loaded
the errors are:
-------------
The type of the key "icon" inside the meta block is wrong.
[Break on this error] throw new Error('The type of the key "' + key + '"
inside the meta...
http://localhost:7080/HrWeb/qooxdoo/qooxdoo-0.7.1-sdk/frontend/framework/source/class/qx/Theme.js
Line 375
[Exception... "'Error: The meta theme to use is not available:
qx.theme.NewTheme' when calling method: [nsIDOMEventListener::handleEvent]"
nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location:
"<unknown>" data: no]
My code is following:
-------------------
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2007 1&1 Internet AG, Germany, http://www.1and1.org
License:
LGPL: http://www.gnu.org/licenses/lgpl.html
EPL: http://www.eclipse.org/org/documents/epl-v10.php
See the LICENSE file in the project's top-level directory for details.
Authors:
* Sebastian Werner (wpbasti)
* Andreas Ecker (ecker)
************************************************************************ */
/**
* Windows Luna Black color theme
*/
qx.Theme.define("qx.theme.classic.color.LunaBlack",
{
title : "Classic Luna Black",
colors :
{
//"background" : [ 236, 233, 216 ],
"background" : [174, 170, 155],
// "border-light" : [ 255, 255, 255 ],
"border-light" : [245, 207, 157],
// "border-light-shadow" : [ 241, 239, 226 ],
"border-light-shadow" : [100, 100, 214],
//"border-dark" : [ 113, 111, 100 ],
"border-dark" : [191, 204, 240],
"border-dark-shadow" : [ 172, 168, 153 ],
"effect" : [ 0, 84, 227 ],
"selected" : [ 49, 106, 197 ],
"text" : "black",
"text-selected" : [ 255, 255, 255 ],
"text-disabled" : [86, 64, 4],
//"text-disabled" : [ 172, 168, 153 ],
//"text-disabled" : [245,245,245],
"tooltip" : [ 255, 255, 225 ],
"tooltip-text" : [ 0, 0, 0 ],
"menu" : [ 249, 248, 243 ],
"list" : [ 249, 248, 243 ],
"field" : [ 249, 248, 243 ],
// "button" : [ 236, 233, 216 ],
"button" : [174, 170, 155],
// "button-hover" : [ 245, 244, 235 ],
"button-hover" : [236,233,216],
"button-abandoned" : [ 236, 233, 216 ],
// "window-active-caption" : [ 0, 84, 227 ],
// "window-active-caption-text" : [ 255, 255, 255 ],
//"window-inactive-caption" : [ 122, 150, 223 ],
//"window-inactive-caption-text" : [ 216, 228, 248 ],
//"window-active-caption" : [ 0, 84, 227 ],
"window-active-caption" : [38, 38, 38],
// "window-active-caption-text" : [ 255, 255, 255 ],
"window-active-caption-text" : [228, 185, 35],
//"window-inactive-caption" : [ 122, 150, 223 ],
"window-inactive-caption" : [45,45,45],
"window-inactive-caption-text" : [ 216, 228, 248 ],
"button-view-pane" : [ 249, 248, 243 ],
"button-view-bar" : [ 225, 238, 255 ],
//"tab-view-pane" : [ 249, 248, 243 ],
"tab-view-pane" : [174, 170, 155],
// "tab-view-border" : [ 141, 183, 255 ],
"tab-view-border" : [174, 170, 155],
// "tab-view-button" : [ 218, 226, 246 ],
"tab-view-button" : [218, 213, 180],
//"tab-view-button-hover" : [ 249, 248, 243 ],
"tab-view-button-hover" : [218, 213, 180],
//"tab-view-button-checked" : [ 249, 248, 243 ],
"tab-view-button-checked" : [236, 233, 216],
"radio-view-pane" : [ 249, 248, 243 ],
"radio-view-bar" : [ 225, 238, 255 ],
"radio-view-button-checked" : [ 250, 251, 254 ],
"list-view" : [ 249, 248, 243 ],
"list-view-border" : [ 167, 166, 170 ],
"list-view-header" : [ 242, 242, 242 ],
"list-view-header-border" : [ 214, 213, 217 ],
"list-view-header-cell-hover" : "white",
"date-chooser" : [ 249, 248, 243 ],
"date-chooser-title" : [ 98, 133, 186 ],
"date-chooser-button": [145,197,148],
"table-pane" : [ 249, 248, 243 ],
"table-header" : [ 242, 242, 242 ],
"table-header-border" : [ 214, 213, 217 ],
"table-header-cell" : [ 235, 234, 219 ],
"table-header-cell-hover" : [ 255, 255, 255 ],
"table-focus-indicator" : [ 197, 200, 202 ],
"table-focus-indicator-active" : [ 179, 217, 255 ],
"table-row-background-focused-selected" : [ 90, 138, 211 ],
"table-row-background-focused-selected-blur" : [ 179, 186, 198 ],
"table-row-background-focused" : [ 221, 238, 255 ],
"table-row-background-focused-blur" : [ 218, 224, 231 ],
"table-row-background-selected" : [ 51, 94, 168 ],
"table-row-background-selected-blur" : [ 152, 158, 168 ],
//"table-row-background-even" : [ 250, 248, 243 ],
"table-row-background-even" : [236, 233, 216],
"table-row-background-odd" : [ 255, 255, 255 ],
"table-row-selected" : [ 255, 255, 255 ],
"table-row" : [ 0, 0, 0],
"table-row-selected-blur" : [230, 240, 100]
}
});
ClassicLunaBlack.js
-----------------
qx.Theme.define("qx.theme.ClassicLunaGreens",
{
title : "Classic Luna Greens",
meta :
{
color : qx.theme.classic.color.LunaBlack,
border : qx.theme.classic.Border,
font : qx.theme.classic.font.Default,
widget : qx.theme.classic.Widget,
appearance : qx.theme.classic.Appearance,
icon : qx.theme.icon.CrystalClear
}
});
What are things are I should follow to resolve this problem
--
View this message in context:
http://www.nabble.com/Add-new-Theme-to-qooxdoo-tp15890374p15890374.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel