|
Re: Button CSS font not working in dialog button bar [message #671870 is a reply to message #671804] |
Thu, 19 May 2011 08:05 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi,
the font of JFace dialog buttons is set programmatically in
org.eclipse.jface.dialogs.Dialog#createButton to
JFaceResources.getDialogFont(). In RAP, the values set by the code
override the values from CSS. In order to get the CSS font, you have to
reset dialog button's font to null.
HTH,
Ivan
On 5/19/2011 6:46 AM, forums-noreply@eclipse.org wrote:
> I have a custom theme with the following style for button:
> Button { font: bold 11px verdana, tahoma, helvetica;
> color: white;
> background-color: #3366cc;
> }
>
> The bold CSS property works for buttons displayed in a composite, but
> doesn't work for buttons in a dialog button bar. The background-color
> and color properties work.
> Is there any special class, state etc I need to use for dialog button
> bar or this is a defect?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02780 seconds