Commit 2b0c617a authored by Bruno Coudoin's avatar Bruno Coudoin

Now the menu description background color is managed through the skin.xml

property file.

svn path=/branches/gcomprixogoo/; revision=3513
parent 03248ada
......@@ -39,14 +39,15 @@
<font id="gcompris/board/title bold" name="Sans bold 20"/>
<font id="gcompris/board/huge" name="Sans 28"/>
<font id="gcompris/board/huge bold" name="Sans bold 28"/>
<color id="menu/text" rgba="0xFFFFFFFF"/>
<color id="menu/text_shadow" rgba="0x000000FF"/>
<color id="menu/description_bg_color" rgba="0x0000FFCCL"/>
<!-- Here you may define some other properties that will -->
<!-- affect a particular game. -->
<!-- For example, in futur, the colors of the canal lock game will be -->
<!-- customisable with some lines like: -->
<!-- customisable with some lines like: -->
<!-- <color id="canal_lock/canal color" rgba="0x0010FFFF"/>-->
<!-- <color id="canal_lock/lock color" rgba="0x8cc679FF"/>-->
<!-- <color id="canal_lock/lock color h" rgba="0x71A65FFF"/>-->
......
......@@ -41,6 +41,7 @@
<color id="menu/text" rgba="0x597ad7FF"/>
<color id="menu/text_shadow" rgba="0x000000FF"/>
<color id="menu/description_bg_color" rgba="0xe8e7e2CCL"/>
<!-- Here you may define some other properties that will -->
<!-- affect a particular game. -->
......
......@@ -651,6 +651,7 @@ create_info_area(GooCanvasItem *parent, MenuItems *menuitems)
g_assert(parent);
/* The description background */
menuitems->bg =
goo_canvas_rect_new (parent,
info_x,
......@@ -658,7 +659,8 @@ create_info_area(GooCanvasItem *parent, MenuItems *menuitems)
info_w,
info_h,
"stroke_color_rgba", 0xFFFFFFFFL,
"fill_color_rgba", 0x0000FF90L,
"fill_color_rgba",
gc_skin_get_color("menu/description_bg_color"),
"line-width", (double) 2,
"radius-x", (double) 10,
"radius-y", (double) 10,
......
......@@ -629,8 +629,8 @@ item_event_bar (GooCanvasItem *item,
{
/* Decrease the level */
current_level--;
if(current_level<1)
current_level=1;
if(current_level < 1)
current_level = gcomprisBoard->maxlevel;
}
if(tmp!=current_level)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment