[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Setting button face colo(u)r  XML
Forum Index -> Development
Author Message
gjones

Power User

Joined: 30/06/2009 16:52:33
Messages: 38
Offline

I can see this must be something to do with the styles, but setting "background" and "foreground" does something different to what I had hoped for. I can also see it probably has something to do with "contentareafilled", because "background" sets the area.. uh.. behind the button.. to the desired colour, so I guess I somehow have to specify the contentarea colour. Somehow.
gjones

Power User

Joined: 30/06/2009 16:52:33
Messages: 38
Offline

Okay, I got it. Something like
Code:
    <tag name="button" variant="highlighted">
         <set attribute="foreground" value="#000000"/>
         <set attribute="contentareafilled" value="false"/>
         <set attribute="bgpaint" value="roundedrectangle(0,0,100%,100%,20,20,#00FF0066)"/>
     </tag>
seems to work.
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5523
Offline

...yes, foreground and background coloring with a button only takes effect if contentareafilled="false" is set...

Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team