Hi,
I have had a look and see what the issue is. Basically it's due to applying the standard button skin to the system button. There are a couple of alternative solutions. You could make a new skin section specifically for the SystemButton and map that in your scheme, or alternatively make the standard button skin a bit more smart. Since I like showing off Falagard abilities, the patch does just that
First some info about what we're doing here:
First we define a new property to control whether to draw the 'standard imagery' of the frame.
Next we split out the rendering of the assigned images into their own imagery sections.
Now we use the newly defined property as a control boolean that states whether to draw certain parts of the imagery in the StateImagery sections.
We also add section specifications for the newly defined *_image sections we defined above.
Finally, we add a property setter to the System button definition in FrameWindow to disable drawing of the standard imagery.
You might need to extent it slightly to conditionally draw the label too, but since no label is defined for those it does not really matter.
Just need to reiterate that this looks awesome - even better when it's possible to play around with it
Code: Select all
--- AquaLook.looknfeel.org 2008-03-16 18:44:36.000000000 +0000
+++ AquaLook.looknfeel 2008-03-17 17:28:53.000000000 +0000
@@ -6,6 +6,7 @@
***************************************************
-->
<WidgetLook name="AquaLook/Button">
+ <PropertyDefinition name="DrawStandardImagery" initialValue="True" redrawOnWrite="true" />
<PropertyDefinition name="NormalTextColour" initialValue="FF000000" redrawOnWrite="true" />
<PropertyDefinition name="HoverTextColour" initialValue="FF000000" redrawOnWrite="true" />
<PropertyDefinition name="PushedTextColour" initialValue="FF000000" redrawOnWrite="true" />
@@ -42,6 +43,8 @@
<Image type="RightEdge" imageset="AquaLook" image="ButtonRightNormal" />
<Image type="Background" imageset="AquaLook" image="ButtonMiddleNormal" />
</FrameComponent>
+ </ImagerySection>
+ <ImagerySection name="normal_image">
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
@@ -66,6 +69,8 @@
<Image type="RightEdge" imageset="AquaLook" image="ButtonRightHighlight" />
<Image type="Background" imageset="AquaLook" image="ButtonMiddleHighlight" />
</FrameComponent>
+ </ImagerySection>
+ <ImagerySection name="hover_image">
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
@@ -90,6 +95,8 @@
<Image type="RightEdge" imageset="AquaLook" image="ButtonRightPushed" />
<Image type="Background" imageset="AquaLook" image="ButtonMiddlePushed" />
</FrameComponent>
+ </ImagerySection>
+ <ImagerySection name="pushed_image">
<ImageryComponent>
<Area>
<Dim type="LeftEdge" ><AbsoluteDim value="0" /></Dim>
@@ -104,7 +111,8 @@
</ImagerySection>
<StateImagery name="Normal">
<Layer>
- <Section section="normal" />
+ <Section section="normal" controlProperty="DrawStandardImagery" />
+ <Section section="normal_image" />
<Section section="label">
<ColourProperty name="NormalTextColour" />
</Section>
@@ -112,7 +120,8 @@
</StateImagery>
<StateImagery name="Hover">
<Layer>
- <Section section="hover" />
+ <Section section="hover" controlProperty="DrawStandardImagery" />
+ <Section section="hover_image" />
<Section section="label">
<ColourProperty name="HoverTextColour" />
</Section>
@@ -120,7 +129,8 @@
</StateImagery>
<StateImagery name="Pushed">
<Layer>
- <Section section="pushed" />
+ <Section section="pushed" controlProperty="DrawStandardImagery" />
+ <Section section="pushed_image" />
<Section section="label">
<ColourProperty name="PushedTextColour" />
</Section>
@@ -128,7 +138,8 @@
</StateImagery>
<StateImagery name="PushedOff">
<Layer>
- <Section section="hover" />
+ <Section section="hover" controlProperty="DrawStandardImagery" />
+ <Section section="hover_image" />
<Section section="label">
<ColourProperty name="HoverTextColour" />
</Section>
@@ -136,7 +147,10 @@
</StateImagery>
<StateImagery name="Disabled">
<Layer>
- <Section section="normal">
+ <Section section="normal" controlProperty="DrawStandardImagery" >
+ <Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
+ </Section>
+ <Section section="normal_image" >
<Colours topLeft="FF7F7F7F" topRight="FF7F7F7F" bottomLeft="FF7F7F7F" bottomRight="FF7F7F7F" />
</Section>
<Section section="label">
@@ -705,7 +719,7 @@
<Dim type="Width" ><ImageDim imageset="AquaLook" image="CloseNormal" dimension="Width" /></Dim>
<Dim type="Height" ><ImageDim imageset="AquaLook" image="CloseNormal" dimension="Height" /></Dim>
</Area>
-
+ <Property name="DrawStandardImagery" value="False" />
<Property name="AlwaysOnTop" value="True" />
<Property name="NormalImage" value="set:AquaLook image:CloseNormal" />
<Property name="HoverImage" value="set:AquaLook image:CloseHover" />