[Orxonox-commit 2645] r7350 - data/trunk/gui/looknfeel

dafrick at orxonox.net dafrick at orxonox.net
Sat Sep 4 17:26:49 CEST 2010


Author: dafrick
Date: 2010-09-04 17:26:49 +0200 (Sat, 04 Sep 2010)
New Revision: 7350

Modified:
   data/trunk/gui/looknfeel/TaharezGreenLook.looknfeel
   data/trunk/gui/looknfeel/TaharezLook.looknfeel
Log:
Added Property to Listbox that allows to change the background color (inkl. alpha) without changing the alpha of the ListboxItems as well.
The new property is called "BackgroundColor".


Modified: data/trunk/gui/looknfeel/TaharezGreenLook.looknfeel
===================================================================
--- data/trunk/gui/looknfeel/TaharezGreenLook.looknfeel	2010-09-04 15:25:36 UTC (rev 7349)
+++ data/trunk/gui/looknfeel/TaharezGreenLook.looknfeel	2010-09-04 15:26:49 UTC (rev 7350)
@@ -1761,6 +1761,7 @@
     ***************************************************
     -->
     <WidgetLook name="TaharezGreenLook/Listbox">
+        <PropertyDefinition name="BackgroundColor" initialValue="FFFFFFFF" redrawOnWrite="true" />
         <NamedArea name="ItemRenderingArea">
             <Area>
                 <Dim type="LeftEdge" ><ImageDim imageset="TaharezGreenLook" image="ListboxLeft" dimension="Width" /></Dim>
@@ -1880,7 +1881,9 @@
         </ImagerySection>
         <StateImagery name="Enabled">
             <Layer>
-                <Section section="main" />
+                <Section section="main">
+                    <ColourProperty name="BackgroundColor" />
+                </Section>
             </Layer>
         </StateImagery>
         <StateImagery name="Disabled">

Modified: data/trunk/gui/looknfeel/TaharezLook.looknfeel
===================================================================
--- data/trunk/gui/looknfeel/TaharezLook.looknfeel	2010-09-04 15:25:36 UTC (rev 7349)
+++ data/trunk/gui/looknfeel/TaharezLook.looknfeel	2010-09-04 15:26:49 UTC (rev 7350)
@@ -1761,6 +1761,7 @@
     ***************************************************
     -->
     <WidgetLook name="TaharezLook/Listbox">
+        <PropertyDefinition name="BackgroundColor" initialValue="FFFFFFFF" redrawOnWrite="true" />
         <NamedArea name="ItemRenderingArea">
             <Area>
                 <Dim type="LeftEdge" ><ImageDim imageset="TaharezLook" image="ListboxLeft" dimension="Width" /></Dim>
@@ -1880,7 +1881,9 @@
         </ImagerySection>
         <StateImagery name="Enabled">
             <Layer>
-                <Section section="main" />
+                <Section section="main">
+                    <ColourProperty name="BackgroundColor" />
+                </Section>
             </Layer>
         </StateImagery>
         <StateImagery name="Disabled">




More information about the Orxonox-commit mailing list