Right. There are some widgets that use CWT as base.

Looking at the code I see that VControl constructor determines the initial 
foreground.

If background is not set explicitly it gets it from vpanel  and vpanel parents 
otherwise from its composite.

Can you post a screenshot? CDateTime has many faces.

Cheers,

Wim

From: nebula-dev-boun...@eclipse.org [mailto:nebula-dev-boun...@eclipse.org] On 
Behalf Of Matthias Paul Scholz
Sent: Friday, 21 December 2018 10:53
To: Nebula Dev
Subject: Re: [nebula-dev] CSS styling of CDateTime?

Hi Wim,

Not sure about the reason.
The whole seems to boil down to some org.eclipse.nebula.cwt.v.VControlPainter 
used to paint  org.eclipse.nebula.cwt.v.VLabel instances; that's a part of the 
code base I am not familiar with, though.
Configuring colors for VLabel in the css file does have no effect.

Best,
  MP

Am Fr., 21. Dez. 2018 um 10:42 Uhr schrieb Wim Jongman 
<wim.jong...@remainsoftware.com<mailto:wim.jong...@remainsoftware.com>>:
Hi Matthias,

Why is the label not styleable?

Cheers,

Wim


From: nebula-dev-boun...@eclipse.org<mailto:nebula-dev-boun...@eclipse.org> 
[mailto:nebula-dev-boun...@eclipse.org<mailto:nebula-dev-boun...@eclipse.org>] 
On Behalf Of Matthias Paul Scholz
Sent: Friday, 21 December 2018 10:03
To: Nebula Dev
Subject: Re: [nebula-dev] CSS styling of CDateTime?

Hi Wim,

Thanks for the answer.

After using CSS spy and looking into the code, I was able to style at least the 
backgound of the parts of CDateTime where the labels appear by configuring

VCanvas {
            background-color: <some color>;
}

That way, I could choose some light background color that makes the (presently 
unmodifiable) foreground color of the labels involved readable again; however, 
that is just an unsatisfying workaround for now.

However, I think for user acceptance it is mandatory to make CDateTime and all 
the other Nebula widgets satisfyingly themable in the long run.

Best,
  MP





Am Mi., 19. Dez. 2018 um 18:50 Uhr schrieb Wim Jongman 
<wim.jong...@remainsoftware.com<mailto:wim.jong...@remainsoftware.com>>:
Hi Matthias,

CDateTime is not CSS aware. I know of one widget that is which is the pshelf 
widget. You might want to take a look at that.

Cheers,

Wim

From: nebula-dev-boun...@eclipse.org<mailto:nebula-dev-boun...@eclipse.org> 
[mailto:nebula-dev-boun...@eclipse.org<mailto:nebula-dev-boun...@eclipse.org>] 
On Behalf Of Matthias Paul Scholz
Sent: Wednesday, 19 December 2018 15:50
To: Nebula Dev
Subject: [nebula-dev] CSS styling of CDateTime?

Hi,

I am presently in the process of (Dark) theming our RCP application with CSS 
properties.
The application also uses the CDateTime widget from Nebula.

Works well for the other widgets in our application and for the background of 
the CDateTime widget; however,  the color of the  Labels in the different areas 
of the CDateTime widget stays gray and the background of the day picker stays 
white regardless  what properties I do set in the application's .css file.

Is CDateTime meant to be stylable by CSS properties?
Do I need to register a particular IElementProvider or property handler?
Does anyone have an example which properties need to be set?

Thanks and best,
  MP
_______________________________________________
nebula-dev mailing list
nebula-dev@eclipse.org<mailto:nebula-dev@eclipse.org>
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/nebula-dev
_______________________________________________
nebula-dev mailing list
nebula-dev@eclipse.org<mailto:nebula-dev@eclipse.org>
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/nebula-dev
_______________________________________________
nebula-dev mailing list
nebula-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/nebula-dev

Reply via email to