|
Re: TreeViewer and CUSTOM_VARIANT [message #88577 is a reply to message #88372] |
Mon, 19 May 2008 16:37 |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Hi Markus,
thanks for the hint. I opened bug 232825 and try to fix it asap.
Best regards, Ralf
Markus Krüger wrote:
> Hi,
> I can not set the treeviewers font color with custom variant.
>
> I tried:
> viewer.getTree().setData(WidgetUtil.CUSTOM_VARIANT, "myStyle");
>
> List.myStyle {
> color: #ff0000;
> }
> and Tree.myStyle {
> color: #ff0000;
> }
>
> This does not work.
> Just using:
>
> List {
> color: #ff0000;
> }
>
> Works perfectly.
>
> Regards,
> Markus
>
>
|
|
|
|
|
Re: TreeViewer and CUSTOM_VARIANT [message #89953 is a reply to message #88577] |
Mon, 26 May 2008 10:35 |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Ralf Sternberg wrote:
> thanks for the hint. I opened bug 232825 and try to fix it asap.
Fixed in CVS head. It is now possible to theme tree background and
foreground with a custom variant e.g. "mytree" using either using either
..mytree {
...
}
or
List.mytree {
...
}
This is because the Tree does not have back-/foreground colors of its
own yet and uses the List colors instead.
Cheers, Ralf
|
|
|
|
Re: TreeViewer and CUSTOM_VARIANT [message #89999 is a reply to message #89983] |
Mon, 26 May 2008 13:57 |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Hi Markus,
Markus Krüger wrote:
> Just tested it, but still does not take any effect...
>
> I user:
> List.navigation, *.navigation {
>
> color: #ff0000;
>
> background-color: #ffff00;
>
> }
>
> And
>
> viewer.getTree().setData(WidgetUtil.CUSTOM_VARIANT, "navigation");
This should work now. Can you please checkout again, my commit was
somewhat delayed (13:21)?
Regards, Ralf
|
|
|
|
|
Re: TreeViewer and CUSTOM_VARIANT AND IColorProvider [message #90683 is a reply to message #90489] |
Thu, 29 May 2008 08:34 |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Hi Markus,
Markus Krüger wrote:
> when do you think will this be fixed? I need this really bad.
I'm sorry, but this issue is related to a problem with the underlying
tree implementation and cannot easily be fixed in 1.1. The problem is
that TreeItem colors would override selection and disabled colors. After
the 1.1 release we'll be going to make a fresh start with the tree which
will make this problem obsolete.
Regards, Ralf
>> Hi Markus,
>>
>> Markus Krüger wrote:
>>> I also experience problems with the IColorProvider. Implementing this in
>>> TreeProvider does also not work setting the foreground color.
>>> Maybe this is the same problem?
>> this is very likely caused by bug 218420: [TreeItem] setForeground(Color),
>> setForeground(int, Color), setBackground(int, Color) does not work
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=218420
>>
>> I will have a look into these problems soon.
>>
>> Best regards,
>> Ralf
|
|
|
|
Powered by
FUDForum. Page generated in 0.02394 seconds