Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Theming questions (buttontext/viewtab)
Theming questions (buttontext/viewtab) [message #57934] Tue, 06 November 2007 15:04 Go to next message
Magnus Konze is currently offline Magnus KonzeFriend
Messages: 35
Registered: July 2009
Member
Hi!
I have some questions about theming:

1) Text color of buttons
The comment in the template says, button.foreground changes the color of
"PUSH and TOGGLE buttons". But in my application radio buttons are
affected too. This is a problem, because i have white text on a red
background (PUSH button), but RADIO buttons should have black text on
white background (now i have white text on white background). Is it
possible to achieve this via theming?
By the way, button.CHECK.background seems to have no effect.

2) Color of View tabs
I figured out, that i can change the backgroundcolor of the active View
tab with list.selection.background. But the next properties (foreground,
unfocused.foreground, unfocused.background) don't change anything on the
tabs. Is this intention or is this the wrong property?

Regards
Magnus
Re: Theming questions (buttontext/viewtab) [message #58055 is a reply to message #57934] Tue, 06 November 2007 22:17 Go to previous message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Magnus,

Magnus Konze schrieb:

> 1) Text color of buttons
> The comment in the template says, button.foreground changes the color of
> "PUSH and TOGGLE buttons". But in my application radio buttons are
> affected too. This is a problem, because i have white text on a red
> background (PUSH button), but RADIO buttons should have black text on
> white background (now i have white text on white background). Is it
> possible to achieve this via theming?
> By the way, button.CHECK.background seems to have no effect.

You're absolutely right in both cases. I opened a bug on this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=208958

> 2) Color of View tabs
> I figured out, that i can change the backgroundcolor of the active View
> tab with list.selection.background. But the next properties (foreground,
> unfocused.foreground, unfocused.background) don't change anything on the
> tabs. Is this intention or is this the wrong property?

The property list.selection.background manipulates the SWT system color
SWT.COLOR_LIST_BACKGROUND which is used by Lists, Tree etc.

The CTabFolder widget uses the SWT colors SWT.COLOR_LIST_FOREGROUND and
SWT.COLOR_LIST_BACKGROUND as default selection colors.

The workbench also customizes the colors of its CTabFolders using the
workbench theming which is not yet implemented in RAP.

Regards,
Ralf
Previous Topic:Code of the RAP Workbench Demo
Next Topic:Hibernate and Jetty and Plugin
Goto Forum:
  


Current Time: Thu Dec 26 13:26:56 GMT 2024

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

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

Back to the top