Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Selected ViewPart Tab Color
Selected ViewPart Tab Color [message #89698] Fri, 23 May 2008 17:09 Go to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Hi,
how do change the Tab Color of select ViewPart/EditorPart?
Is it also possible to not make it look so anemic?

Regards,
Markus
Re: Selected ViewPart Tab Color [message #89806 is a reply to message #89698] Sun, 25 May 2008 18:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Markus,

you could provide your own WorkbenchTheme via org.eclipse.ui.themes
the extension point.
In addition, these colors should also be configurable via
preferences, but as I am working offline and can't recall the API to
use, you would need to search around a bit.
A third approach would be to use RWT theming to change the colors of
the CTabFolder. This, of course, would also affect occurences of
CTabFolder outside the workbench parts.

Cheers,
Rüdiger

Markus Krüger wrote:
> Hi,
> how do change the Tab Color of select ViewPart/EditorPart?
> Is it also possible to not make it look so anemic?
>
> Regards,
> Markus
>
>
Re: Selected ViewPart Tab Color [message #89861 is a reply to message #89806] Mon, 26 May 2008 07:16 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Hi R
Re: Selected ViewPart Tab Color [message #89896 is a reply to message #89861] Mon, 26 May 2008 08:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Markus,

Markus Krüger wrote:
> Hi Rüdiger,
> I use a RAP theme (css) and tried to set TabItem and CTabItem background
> color, but it take no effect.
> Setting "Shell-Titlebar" does seem to take affect (although the color I used
> gets displayed anemic vin the selected view/editor part), but changing this
> will effect all shells titelbar. So is this a bug?

No. Using the RWT theming you can only set the foreground and background
of selected and unselected items in a CTabFolder. The CTabFolder is an
RWT widget and is not aware of selected parts in the workbench.
Moreover, the theme colors are overwritten by the workbench anyway. So
you have to provide your own *workbench* theme using the extension point
org.eclipse.ui.theme.

Setting the background of Shell-Titlebar changes the system color
SWT.COLOR_TITLE_BACKGROUND which the default workbench theme refers to.

Best regards, Ralf

> "Rüdiger Herrmann" <rherrmann@innoopract.com> schrieb im Newsbeitrag
> news:g1cohj$h2o$4@build.eclipse.org...
>> Markus,
>>
>> you could provide your own WorkbenchTheme via org.eclipse.ui.themes the
>> extension point.
>> In addition, these colors should also be configurable via preferences, but
>> as I am working offline and can't recall the API to use, you would need to
>> search around a bit.
>> A third approach would be to use RWT theming to change the colors of the
>> CTabFolder. This, of course, would also affect occurences of CTabFolder
>> outside the workbench parts.
>>
>> Cheers,
>> Rüdiger
>>
>> Markus Krüger wrote:
>>> Hi,
>>> how do change the Tab Color of select ViewPart/EditorPart?
>>> Is it also possible to not make it look so anemic?
>>>
>>> Regards,
>>> Markus
>
>
Re: Selected ViewPart Tab Color [message #90475 is a reply to message #89896] Wed, 28 May 2008 09:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mike.xmos.com

I'm finding that the first RAP session I open has pale blue ViewPart
tabs, then subsequent sessions have normal blue tabs until I restart the
server. Has anyone else seen this happen?


Ralf Sternberg wrote:
> Hi Markus,
>
> Markus Krüger wrote:
>> Hi Rüdiger,
>> I use a RAP theme (css) and tried to set TabItem and CTabItem
>> background color, but it take no effect.
>> Setting "Shell-Titlebar" does seem to take affect (although the color
>> I used gets displayed anemic vin the selected view/editor part), but
>> changing this will effect all shells titelbar. So is this a bug?
>
> No. Using the RWT theming you can only set the foreground and background
> of selected and unselected items in a CTabFolder. The CTabFolder is an
> RWT widget and is not aware of selected parts in the workbench.
> Moreover, the theme colors are overwritten by the workbench anyway. So
> you have to provide your own *workbench* theme using the extension point
> org.eclipse.ui.theme.
>
> Setting the background of Shell-Titlebar changes the system color
> SWT.COLOR_TITLE_BACKGROUND which the default workbench theme refers to.
>
> Best regards, Ralf
>
>> "Rüdiger Herrmann" <rherrmann@innoopract.com> schrieb im Newsbeitrag
>> news:g1cohj$h2o$4@build.eclipse.org...
>>> Markus,
>>>
>>> you could provide your own WorkbenchTheme via org.eclipse.ui.themes
>>> the extension point.
>>> In addition, these colors should also be configurable via
>>> preferences, but as I am working offline and can't recall the API to
>>> use, you would need to search around a bit.
>>> A third approach would be to use RWT theming to change the colors of
>>> the CTabFolder. This, of course, would also affect occurences of
>>> CTabFolder outside the workbench parts.
>>>
>>> Cheers,
>>> Rüdiger
>>>
>>> Markus Krüger wrote:
>>>> Hi,
>>>> how do change the Tab Color of select ViewPart/EditorPart?
>>>> Is it also possible to not make it look so anemic?
>>>>
>>>> Regards,
>>>> Markus
>>
>>
Re: Selected ViewPart Tab Color [message #90637 is a reply to message #90475] Thu, 29 May 2008 01:43 Go to previous messageGo to next message
Patrick Turcotte is currently offline Patrick TurcotteFriend
Messages: 23
Registered: July 2009
Junior Member
Mike Wrighton wrote:
> I'm finding that the first RAP session I open has pale blue ViewPart
> tabs, then subsequent sessions have normal blue tabs until I restart the
> server. Has anyone else seen this happen?
>
Yes, same here. with RC1 (I'll switch to RC2 tomorrow).

Seems to affect the whole theming.

Patrick
Re: Selected ViewPart Tab Color [message #90759 is a reply to message #90637] Thu, 29 May 2008 09:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Mike, Patrick,

Patrick wrote:
> Mike Wrighton wrote:
>> I'm finding that the first RAP session I open has pale blue ViewPart
>> tabs, then subsequent sessions have normal blue tabs until I restart
>> the server. Has anyone else seen this happen?
>>
> Yes, same here. with RC1 (I'll switch to RC2 tomorrow).
>
> Seems to affect the whole theming.

Do you mean workbench theming or RWT theming?

Can you provide more details how to reproduce this? Do you use a custom
RWT theme (org.eclipse.rap.ui.themes)? A custom workbench theme
(org.eclipse.ui.themes)?

Ralf
Re: Selected ViewPart Tab Color [message #90774 is a reply to message #90759] Thu, 29 May 2008 10:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mike.xmos.com

Ralf Sternberg wrote:
> Hi Mike, Patrick,
>
> Patrick wrote:
>> Mike Wrighton wrote:
>>> I'm finding that the first RAP session I open has pale blue ViewPart
>>> tabs, then subsequent sessions have normal blue tabs until I restart
>>> the server. Has anyone else seen this happen?
>>>
>> Yes, same here. with RC1 (I'll switch to RC2 tomorrow).
>>
>> Seems to affect the whole theming.
>
> Do you mean workbench theming or RWT theming?
>
> Can you provide more details how to reproduce this? Do you use a custom
> RWT theme (org.eclipse.rap.ui.themes)? A custom workbench theme
> (org.eclipse.ui.themes)?
>
> Ralf

I'm still getting this with the latest version of RAP and I don't use
any theming at all.

Mike
Re: Selected ViewPart Tab Color [message #90791 is a reply to message #90774] Thu, 29 May 2008 11:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Mike,

Mike Wrighton wrote:
>>> Mike Wrighton wrote:
>>>> I'm finding that the first RAP session I open has pale blue ViewPart
>>>> tabs, then subsequent sessions have normal blue tabs until I restart
>>>> the server. Has anyone else seen this happen?
>>
>> Can you provide more details how to reproduce this? Do you use a
>> custom RWT theme (org.eclipse.rap.ui.themes)? A custom workbench theme
>> (org.eclipse.ui.themes)?
>
> I'm still getting this with the latest version of RAP and I don't use
> any theming at all.

Unfortunately, I cannot reproduce this problem with the RAP Demo
application. Any idea in which respect your application differs from the
Demo or under which circumstances this problem occurs? Just a guess: do
you use the Preference store? Can you provide some code?

Ralf
Re: Selected ViewPart Tab Color [message #91484 is a reply to message #90475] Tue, 03 June 2008 13:37 Go to previous message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi,

while smoke-testing 1.1 RC3, I was able to reproduce the behavior as
described in the previous posting.

I filed a bugzilla to gather further information and track progress
on this issue:
235331: Wrong workbench colors in very first session
https://bugs.eclipse.org/bugs/show_bug.cgi?id=235331

Cheers,
Rüdiger

Mike Wrighton wrote:
> I'm finding that the first RAP session I open has pale blue ViewPart
> tabs, then subsequent sessions have normal blue tabs until I restart the
> server. Has anyone else seen this happen?
>
>
> Ralf Sternberg wrote:
>> Hi Markus,
>>
>> Markus Krüger wrote:
>>> Hi Rüdiger,
>>> I use a RAP theme (css) and tried to set TabItem and CTabItem
>>> background color, but it take no effect.
>>> Setting "Shell-Titlebar" does seem to take affect (although the color
>>> I used gets displayed anemic vin the selected view/editor part), but
>>> changing this will effect all shells titelbar. So is this a bug?
>>
>> No. Using the RWT theming you can only set the foreground and
>> background of selected and unselected items in a CTabFolder. The
>> CTabFolder is an RWT widget and is not aware of selected parts in the
>> workbench. Moreover, the theme colors are overwritten by the workbench
>> anyway. So you have to provide your own *workbench* theme using the
>> extension point org.eclipse.ui.theme.
>>
>> Setting the background of Shell-Titlebar changes the system color
>> SWT.COLOR_TITLE_BACKGROUND which the default workbench theme refers to.
>>
>> Best regards, Ralf
>>
>>> "Rüdiger Herrmann" <rherrmann@innoopract.com> schrieb im Newsbeitrag
>>> news:g1cohj$h2o$4@build.eclipse.org...
>>>> Markus,
>>>>
>>>> you could provide your own WorkbenchTheme via org.eclipse.ui.themes
>>>> the extension point.
>>>> In addition, these colors should also be configurable via
>>>> preferences, but as I am working offline and can't recall the API to
>>>> use, you would need to search around a bit.
>>>> A third approach would be to use RWT theming to change the colors of
>>>> the CTabFolder. This, of course, would also affect occurences of
>>>> CTabFolder outside the workbench parts.
>>>>
>>>> Cheers,
>>>> Rüdiger
>>>>
>>>> Markus Krüger wrote:
>>>>> Hi,
>>>>> how do change the Tab Color of select ViewPart/EditorPart?
>>>>> Is it also possible to not make it look so anemic?
>>>>>
>>>>> Regards,
>>>>> Markus
>>>
>>>
Previous Topic:Problems using swt.virtual and a lazy content provider
Next Topic:Problem with FileDialog
Goto Forum:
  


Current Time: Thu Sep 19 14:40:31 GMT 2024

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

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

Back to the top