Home » Eclipse Projects » Remote Application Platform (RAP) » Selected ViewPart Tab Color
Selected ViewPart Tab Color [message #89698] |
Fri, 23 May 2008 13:09  |
Eclipse User |
|
|
|
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 14:18   |
Eclipse User |
|
|
|
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 #89896 is a reply to message #89861] |
Mon, 26 May 2008 04:31   |
Eclipse User |
|
|
|
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 05:22   |
Eclipse User |
|
|
|
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 #91484 is a reply to message #90475] |
Tue, 03 June 2008 09:37  |
Eclipse User |
|
|
|
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
>>>
>>>
|
|
|
Goto Forum:
Current Time: Mon Mar 31 07:47:15 EDT 2025
Powered by FUDForum. Page generated in 0.03587 seconds
|