Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Benjamin Wolff is currently offline Benjamin WolffFriend
Messages: 136
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 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

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 Go to previous messageGo to next message
Benjamin Wolff is currently offline Benjamin WolffFriend
Messages: 136
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 Go to previous messageGo to next message
Benjamin Wolff is currently offline Benjamin WolffFriend
Messages: 136
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
>>
>>
Re: Set Custom Style of Group-Frame [message #551307 is a reply to message #551204] Thu, 05 August 2010 20:47 Go to previous messageGo to next message
Paul Kendall is currently offline Paul KendallFriend
Messages: 40
Registered: July 2009
Member
Ralf Sternberg wrote:

> 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
>
Hi Ralf,
It seems that this same problem occurs for ExpandItem-Header

Cheers,
Paul
Re: Set Custom Style of Group-Frame [message #551309 is a reply to message #551307] Thu, 05 August 2010 21:08 Go to previous message
Paul Kendall is currently offline Paul KendallFriend
Messages: 40
Registered: July 2009
Member
Paul Kendall wrote:

> Ralf Sternberg wrote:
>
>> 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
>>
> Hi Ralf,
> It seems that this same problem occurs for ExpandItem-Header
>
> Cheers,
> Paul

https://bugs.eclipse.org/bugs/show_bug.cgi?id=321924
with a patch attached.

Cheers,
Paul
Previous Topic:FormToolbar renders a separator using ControlContributions
Next Topic: Compound Custom Widget Focus
Goto Forum:
  


Current Time: Thu Apr 18 19:36:37 GMT 2024

Powered by FUDForum. Page generated in 0.02220 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top