[Xerte] Re: hover colour on status bar menus

Julian Tenney Julian.Tenney at nottingham.ac.uk
Wed Aug 17 15:24:25 BST 2011


Look in the help for FStyleFormat object for the combo box, then use setStyleProperty

Try highlight? hightlight3D? focusRectInner? focusRectOuter? They look like the most obvious ones.



From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 17 August 2011 15:18
To: 'Xerte discussion list'
Subject: [Xerte] Re: hover colour on status bar menus

Thanks although  I think it's textSelected e.g. the text above the hover colour. I had that set in styles.css but what was confusing was that
cbo.setStyleProperty("textSelected", STYLES.textSelected); didn't seem to be working so had to set cbo.setStyleProperty("textSelected", 0xffffff);
Got it working now but just trying to find what I need to change to turn the border of the combo boxes off so that the status bar doesn't have the box lines?
Cheers
Ron

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 17 August 2011 13:50
To: Xerte discussion list
Subject: [Xerte] Re: hover colour on status bar menus

STYLES.textUnselected

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 17 August 2011 13:46
To: 'Xerte discussion list'
Subject: [Xerte] Re: hover colour on status bar menus

Cheers inbetween message had already got that bit working e.g.
Changed
STYLES.titleBarColour = titleBarColour=0x84A2C6;
to
STYLES.titleBarColour = 0x000000;
Now I need to get the text above that to be white instead of black.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 17 August 2011 13:23
To: Xerte discussion list
Subject: [Xerte] Re: hover colour on status bar menus

Try setting STYLES.titleBarColour

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 17 August 2011 13:21
To: 'Xerte discussion list'
Subject: [Xerte] Re: hover colour on status bar menus

I've actually got titleBarColour set to black which is why all is fine when the LO first loads. I'm drawing a white box over the top of the titlebar area to keep that white. The problem only happens when selecting default from the menu but I can't find where that's going wrong. :-(

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 17 August 2011 13:12
To: Xerte discussion list
Subject: [Xerte] Re: hover colour on status bar menus

Sorry, it's because the colour used for the selection property is the one for titleBarColour, so you must have that set to white.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ron Mitchell
Sent: 17 August 2011 12:48
To: 'Xerte discussion list'
Subject: [Xerte] hover colour on status bar menus

Hi
I think I asked this once before but a long time ago and can't find it on the archives...

I'm creating a custom theme which by default is mostly white. All is fine when the LO loads and when using the status bar menus the hover effect shows a black background with white text e.g.
[cid:image001.jpg at 01CC5CF1.BF40A3E0]

If I select one of the other named colour schemes the hover effect works ok too e.g.
[cid:image002.jpg at 01CC5CF1.BF40A3E0]

However If I select default via the colour scheme menu then the hover colour is white background and so doesn't show e.g.
[cid:image003.jpg at 01CC5CF1.BF40A3E0]

I can't find a way to fix this either in XMLFramework or by script in the RLT. Any suggestions?
Cheers
Ron


This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110817/79d9e053/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 5448 bytes
Desc: image001.jpg
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110817/79d9e053/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 4376 bytes
Desc: image002.jpg
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110817/79d9e053/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 4570 bytes
Desc: image003.jpg
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110817/79d9e053/attachment-0005.jpg>


More information about the Xerte mailing list