Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Theme problem
Theme problem [message #56499] Tue, 30 October 2007 20:00 Go to next message
Christian is currently offline ChristianFriend
Messages: 31
Registered: July 2009
Member
Hi,
i've set in my theme properties file the field

shell.title.background = #000000

in order to change the background in the shell title; anyway nothing
happens and the color remains the default one (blue). changing another
prop in the file, it works fine.

I've put also in the code the following sys.out

System.out.println(PlatformUI.getWorkbench().getDisplay().ge tSystemColor(SWT.COLOR_TITLE_BACKGROUND));

and it prints

Color {0, 0, 0}

So the color black is set but the shell title background is not refreshed.

Any suggestion?

Thanks
Christian
Re: Theme problem [message #56529 is a reply to message #56499] Wed, 31 October 2007 07:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: benedikt.arnold.beyondsoft.de

Hi!

I got the same problem some days ago. Try to unset the title background
image like this
shell.title.active.bgimage: none

and then set the title background color.

Greetings,

Ben

"Christian" <zerostress@libero.it> schrieb im Newsbeitrag
news:fg82h6$4a3$1@build.eclipse.org...
> Hi,
> i've set in my theme properties file the field
>
> shell.title.background = #000000
>
> in order to change the background in the shell title; anyway nothing
> happens and the color remains the default one (blue). changing another
> prop in the file, it works fine.
>
> I've put also in the code the following sys.out
>
> System.out.println(PlatformUI.getWorkbench().getDisplay().ge tSystemColor(SWT.COLOR_TITLE_BACKGROUND));
>
> and it prints
>
> Color {0, 0, 0}
>
> So the color black is set but the shell title background is not refreshed.
>
> Any suggestion?
>
> Thanks
> Christian
Re: Theme problem [message #56556 is a reply to message #56529] Wed, 31 October 2007 08:52 Go to previous messageGo to next message
Christian is currently offline ChristianFriend
Messages: 31
Registered: July 2009
Member
Hi Ben,

with the bgimage=none it doesn't work...but if i use an image, the bg
color is set.
Thanks a lot

Christian



Benedikt Arnold ha scritto:
> Hi!
>
> I got the same problem some days ago. Try to unset the title background
> image like this
> shell.title.active.bgimage: none
>
> and then set the title background color.
>
> Greetings,
>
> Ben
>
> "Christian" <zerostress@libero.it> schrieb im Newsbeitrag
> news:fg82h6$4a3$1@build.eclipse.org...
>> Hi,
>> i've set in my theme properties file the field
>>
>> shell.title.background = #000000
>>
>> in order to change the background in the shell title; anyway nothing
>> happens and the color remains the default one (blue). changing another
>> prop in the file, it works fine.
>>
>> I've put also in the code the following sys.out
>>
>> System.out.println(PlatformUI.getWorkbench().getDisplay().ge tSystemColor(SWT.COLOR_TITLE_BACKGROUND));
>>
>> and it prints
>>
>> Color {0, 0, 0}
>>
>> So the color black is set but the shell title background is not refreshed.
>>
>> Any suggestion?
>>
>> Thanks
>> Christian
>
>
Re: Theme problem [message #56583 is a reply to message #56556] Wed, 31 October 2007 09:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: benedikt.arnold.beyondsoft.de

Hi!
Here is my complete Theme file. Try to set the background gradient too.

# Background color for the title bar of active Shells

# default: #0080c0

shell.title.background: #678187


# Second background color for the title bar of active Shells (used for
gradient)

# default: #0080c0

shell.title.background.gradient: #678187


# Background image for title bar of active Shells

# default:

shell.title.active.bgimage: none


# Border for shells without BORDER and TITLE style

# default: 1px solid black

shell.border: 1px solid #678187


# Border for shells with BORDER or TITLE style

# default: 2px outset

shell.BORDER.border: 2px outset #678187


list.selection.background: #a0bf7d



"Christian" <zerostress@libero.it> schrieb im Newsbeitrag
news:fg9fnr$fk7$1@build.eclipse.org...
> Hi Ben,
>
> with the bgimage=none it doesn't work...but if i use an image, the bg
> color is set.
> Thanks a lot
>
> Christian
>
>
>
> Benedikt Arnold ha scritto:
>> Hi!
>>
>> I got the same problem some days ago. Try to unset the title background
>> image like this
>> shell.title.active.bgimage: none
>>
>> and then set the title background color.
>>
>> Greetings,
>>
>> Ben
>>
>> "Christian" <zerostress@libero.it> schrieb im Newsbeitrag
>> news:fg82h6$4a3$1@build.eclipse.org...
>>> Hi,
>>> i've set in my theme properties file the field
>>>
>>> shell.title.background = #000000
>>>
>>> in order to change the background in the shell title; anyway nothing
>>> happens and the color remains the default one (blue). changing another
>>> prop in the file, it works fine.
>>>
>>> I've put also in the code the following sys.out
>>>
>>> System.out.println(PlatformUI.getWorkbench().getDisplay().ge tSystemColor(SWT.COLOR_TITLE_BACKGROUND));
>>>
>>> and it prints
>>>
>>> Color {0, 0, 0}
>>>
>>> So the color black is set but the shell title background is not
>>> refreshed.
>>>
>>> Any suggestion?
>>>
>>> Thanks
>>> Christian
>>
>>
Re: Theme problem [message #56606 is a reply to message #56583] Wed, 31 October 2007 11:34 Go to previous messageGo to next message
Christian is currently offline ChristianFriend
Messages: 31
Registered: July 2009
Member
Hi,
the bg gradient doesn't work. Any suggestions?

Christian



Benedikt Arnold ha scritto:
> Hi!
> Here is my complete Theme file. Try to set the background gradient too.
>
> # Background color for the title bar of active Shells
>
> # default: #0080c0
>
> shell.title.background: #678187
>
>
> # Second background color for the title bar of active Shells (used for
> gradient)
>
> # default: #0080c0
>
> shell.title.background.gradient: #678187
>
>
> # Background image for title bar of active Shells
>
> # default:
>
> shell.title.active.bgimage: none
>
>
> # Border for shells without BORDER and TITLE style
>
> # default: 1px solid black
>
> shell.border: 1px solid #678187
>
>
> # Border for shells with BORDER or TITLE style
>
> # default: 2px outset
>
> shell.BORDER.border: 2px outset #678187
>
>
> list.selection.background: #a0bf7d
>
>
>
> "Christian" <zerostress@libero.it> schrieb im Newsbeitrag
> news:fg9fnr$fk7$1@build.eclipse.org...
>> Hi Ben,
>>
>> with the bgimage=none it doesn't work...but if i use an image, the bg
>> color is set.
>> Thanks a lot
>>
>> Christian
>>
>>
>>
>> Benedikt Arnold ha scritto:
>>> Hi!
>>>
>>> I got the same problem some days ago. Try to unset the title background
>>> image like this
>>> shell.title.active.bgimage: none
>>>
>>> and then set the title background color.
>>>
>>> Greetings,
>>>
>>> Ben
>>>
>>> "Christian" <zerostress@libero.it> schrieb im Newsbeitrag
>>> news:fg82h6$4a3$1@build.eclipse.org...
>>>> Hi,
>>>> i've set in my theme properties file the field
>>>>
>>>> shell.title.background = #000000
>>>>
>>>> in order to change the background in the shell title; anyway nothing
>>>> happens and the color remains the default one (blue). changing another
>>>> prop in the file, it works fine.
>>>>
>>>> I've put also in the code the following sys.out
>>>>
>>>> System.out.println(PlatformUI.getWorkbench().getDisplay().ge tSystemColor(SWT.COLOR_TITLE_BACKGROUND));
>>>>
>>>> and it prints
>>>>
>>>> Color {0, 0, 0}
>>>>
>>>> So the color black is set but the shell title background is not
>>>> refreshed.
>>>>
>>>> Any suggestion?
>>>>
>>>> Thanks
>>>> Christian
>>>
>
>
Re: Theme problem [message #56661 is a reply to message #56606] Wed, 31 October 2007 16:08 Go to previous message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Christian,

A background image covers the widget background and thus hides the
background color. Setting the background image to "none" should work.

Background gradients are not yet supported. The only effect of setting
the bg gradient color is that the corresponding SWT System Color changes.

Best Regards,
Ralf

Christian schrieb:
> Hi,
> the bg gradient doesn't work. Any suggestions?
>
> Christian
>
>
>
> Benedikt Arnold ha scritto:
>> Hi!
>> Here is my complete Theme file. Try to set the background gradient too.
>>
>> # Background color for the title bar of active Shells
>>
>> # default: #0080c0
>>
>> shell.title.background: #678187
>>
>>
>> # Second background color for the title bar of active Shells (used for
>> gradient)
>>
>> # default: #0080c0
>>
>> shell.title.background.gradient: #678187
>>
>>
>> # Background image for title bar of active Shells
>>
>> # default:
>>
>> shell.title.active.bgimage: none
>>
>>
>> # Border for shells without BORDER and TITLE style
>>
>> # default: 1px solid black
>>
>> shell.border: 1px solid #678187
>>
>>
>> # Border for shells with BORDER or TITLE style
>>
>> # default: 2px outset
>>
>> shell.BORDER.border: 2px outset #678187
>>
>>
>> list.selection.background: #a0bf7d
>>
>>
>>
>> "Christian" <zerostress@libero.it> schrieb im Newsbeitrag
>> news:fg9fnr$fk7$1@build.eclipse.org...
>>> Hi Ben,
>>>
>>> with the bgimage=none it doesn't work...but if i use an image, the bg
>>> color is set.
>>> Thanks a lot
>>>
>>> Christian
>>>
>>>
>>>
>>> Benedikt Arnold ha scritto:
>>>> Hi!
>>>>
>>>> I got the same problem some days ago. Try to unset the title background
>>>> image like this
>>>> shell.title.active.bgimage: none
>>>>
>>>> and then set the title background color.
>>>>
>>>> Greetings,
>>>>
>>>> Ben
>>>>
>>>> "Christian" <zerostress@libero.it> schrieb im Newsbeitrag
>>>> news:fg82h6$4a3$1@build.eclipse.org...
>>>>> Hi,
>>>>> i've set in my theme properties file the field
>>>>>
>>>>> shell.title.background = #000000
>>>>>
>>>>> in order to change the background in the shell title; anyway nothing
>>>>> happens and the color remains the default one (blue). changing another
>>>>> prop in the file, it works fine.
>>>>>
>>>>> I've put also in the code the following sys.out
>>>>>
>>>>> System.out.println(PlatformUI.getWorkbench().getDisplay().ge tSystemColor(SWT.COLOR_TITLE_BACKGROUND));
>>>>>
>>>>> and it prints
>>>>>
>>>>> Color {0, 0, 0}
>>>>>
>>>>> So the color black is set but the shell title background is not
>>>>> refreshed.
>>>>>
>>>>> Any suggestion?
>>>>>
>>>>> Thanks
>>>>> Christian
>>
Previous Topic:Preference dialog question
Next Topic:Implementing RAP from RCP - best practice?
Goto Forum:
  


Current Time: Fri Apr 26 00:50:23 GMT 2024

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

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

Back to the top