Home » Eclipse Projects » Remote Application Platform (RAP) » Set Custom Style of Group-Frame
Set Custom Style of Group-Frame [message #550956] |
Wed, 04 August 2010 16:17 |
Benjamin Wolff Messages: 137 Registered: July 2009 |
Senior Member |
|
|
Hi,
the Group Widget has a themeable poperty, namely Group-Frame, to style the frame of a Group widget. It seems, that is is not possible to use custom style variants for this in the application.
In the theme.css i'm doing something like this:
Group-Frame.bla {
....
}
In the application i set the custom style variant on the Group widget:
group.setData(WidgetUtil.CUSTOM_VARIANT, "bla");
Unfortunately, the custom Group-Frame style is not respected in this case. The Group itself has the style property "border", but this styles a border around the widget and not the rounded Group-Frame.
Intuitively, i would expect, that the Group widget would also respect the custom variants of Group-Label and Group-Frame if there are variants with the same name. Is there a possibility to customly style the Group-Frames?
Thanks!
Greetings,
-Ben
|
|
|
Re: Set Custom Style of Group-Frame [message #551204 is a reply to message #550956] |
Thu, 05 August 2010 14:54 |
|
Hi Benjamin,
I agree that custom variants set on a control should be inherited by
sub-widgets like Group-Frame. We do that in a couple of places but
obviously missed it here. Would you mind opening a bug for this problem?
Best regards, Ralf
Benjamin Wolff wrote:
> Hi,
>
> the Group Widget has a themeable poperty, namely Group-Frame, to style
> the frame of a Group widget. It seems, that is is not possible to use
> custom style variants for this in the application.
> In the theme.css i'm doing something like this:
>
> Group-Frame.bla {
> ...
> }
>
> In the application i set the custom style variant on the Group widget:
>
> group.setData(WidgetUtil.CUSTOM_VARIANT, "bla");
>
> Unfortunately, the custom Group-Frame style is not respected in this
> case. The Group itself has the style property "border", but this styles
> a border around the widget and not the rounded Group-Frame.
> Intuitively, i would expect, that the Group widget would also respect
> the custom variants of Group-Label and Group-Frame if there are variants
> with the same name. Is there a possibility to customly style the
> Group-Frames?
>
> Thanks!
>
> Greetings,
> -Ben
--
Ralf Sternberg
Need professional support for RAP and RCP?
http://www.eclipsesource.com/support/
Twitter: http://twitter.com/eclipsesource
Blog: http://www.eclipsesource.com/blogs/
|
|
|
Re: Set Custom Style of Group-Frame [message #551210 is a reply to message #551204] |
Thu, 05 August 2010 15:39 |
Benjamin Wolff Messages: 137 Registered: July 2009 |
Senior Member |
|
|
No, i wouldn't mind at all ;))
https://bugs.eclipse.org/bugs/show_bug.cgi?id=321895
Greetings,
-Ben
Am 05.08.2010 16:54, schrieb Ralf Sternberg:
> Hi Benjamin,
>
> I agree that custom variants set on a control should be inherited by
> sub-widgets like Group-Frame. We do that in a couple of places but
> obviously missed it here. Would you mind opening a bug for this problem?
>
> Best regards, Ralf
>
> Benjamin Wolff wrote:
>> Hi,
>>
>> the Group Widget has a themeable poperty, namely Group-Frame, to style
>> the frame of a Group widget. It seems, that is is not possible to use
>> custom style variants for this in the application.
>> In the theme.css i'm doing something like this:
>>
>> Group-Frame.bla {
>> ...
>> }
>>
>> In the application i set the custom style variant on the Group widget:
>>
>> group.setData(WidgetUtil.CUSTOM_VARIANT, "bla");
>>
>> Unfortunately, the custom Group-Frame style is not respected in this
>> case. The Group itself has the style property "border", but this styles
>> a border around the widget and not the rounded Group-Frame.
>> Intuitively, i would expect, that the Group widget would also respect
>> the custom variants of Group-Label and Group-Frame if there are variants
>> with the same name. Is there a possibility to customly style the
>> Group-Frames?
>>
>> Thanks!
>>
>> Greetings,
>> -Ben
>
>
|
|
|
Re: Set Custom Style of Group-Frame [message #551247 is a reply to message #551210] |
Thu, 05 August 2010 17:32 |
Benjamin Wolff Messages: 137 Registered: July 2009 |
Senior Member |
|
|
Works perfect! Thank you for the very fast bugix!!!
Am 05.08.2010 17:39, schrieb Benjamin Wolff:
> No, i wouldn't mind at all ;))
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=321895
>
> Greetings,
> -Ben
>
>
> Am 05.08.2010 16:54, schrieb Ralf Sternberg:
>> Hi Benjamin,
>>
>> I agree that custom variants set on a control should be inherited by
>> sub-widgets like Group-Frame. We do that in a couple of places but
>> obviously missed it here. Would you mind opening a bug for this problem?
>>
>> Best regards, Ralf
>>
>> Benjamin Wolff wrote:
>>> Hi,
>>>
>>> the Group Widget has a themeable poperty, namely Group-Frame, to style
>>> the frame of a Group widget. It seems, that is is not possible to use
>>> custom style variants for this in the application.
>>> In the theme.css i'm doing something like this:
>>>
>>> Group-Frame.bla {
>>> ...
>>> }
>>>
>>> In the application i set the custom style variant on the Group widget:
>>>
>>> group.setData(WidgetUtil.CUSTOM_VARIANT, "bla");
>>>
>>> Unfortunately, the custom Group-Frame style is not respected in this
>>> case. The Group itself has the style property "border", but this styles
>>> a border around the widget and not the rounded Group-Frame.
>>> Intuitively, i would expect, that the Group widget would also respect
>>> the custom variants of Group-Label and Group-Frame if there are variants
>>> with the same name. Is there a possibility to customly style the
>>> Group-Frames?
>>>
>>> Thanks!
>>>
>>> Greetings,
>>> -Ben
>>
>>
|
|
| | |
Goto Forum:
Current Time: Tue Dec 03 03:41:42 GMT 2024
Powered by FUDForum. Page generated in 0.03023 seconds
|