|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Question on Text properties and color
I am storing colors in properties files so they get stored like
Code:
Property=\#cc9933 say I have Code:
ForegroundColor=GetProperty(property,"#cc9933") What am I missing? |
#2
|
|||
|
|||
I believe it is the "\" adder the setproperty call is adding to it because looking in the default themes they don't have a "\" after the color...So anyone know how to remove the "\" from getting set in the property? it appears text widgets parse it correctly but the theme setting doesn't
|
#3
|
||||
|
||||
Try
Code:
property=0xcc9933 ForegroundColor=GetProperty(property,"0xcc9933") John |
#4
|
|||
|
|||
Ya I type on the post. I gave up on this after testing fully by putting calls in the color property of a theme widget that logged I can see these are only set on occasion. It appears to be at first draw and then they aren't rechecked for instance when an area is refreshed. So it kind of threw my dynamic coloring of fonts out the window. But it's ok at least I somewhat figure out why. It appears the theme widgets are more "permanent" setting than other widgets that refresh their attributes when the area is refreshed.
|
#5
|
||||
|
||||
They way I've seen it done and done myself in the past is to check to see if the value has changed and if so reload the menu.
John |
#6
|
|||
|
|||
That might work but sounds slow. I was changing the value often based on a selection. It's ok I went a different route thanks for trying to help! That makes sense that would trigger the refresh of the value.
|
#7
|
||||
|
||||
I'm curious: are you setting the theme value via the GetProperty call or by using =SomeVariableName?
Setting it dynamically using a variable name, instead of using the API call, ought to work, as far as I recall. And, yes, it uses a format of 0xRRGGBB, as is used in the default STV's theme.properties files. Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#8
|
|||
|
|||
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I change text color? | OverClock | SageTV v7 Customizations | 8 | 11-04-2012 10:40 AM |
EPG Guide text color? | Asmordean | SageMC Custom Interface | 2 | 06-30-2009 08:41 AM |
Modify text color? | webwalker | SageMC Custom Interface | 1 | 02-09-2009 10:22 PM |
Change text Color in Cayars? | dbfresh23 | SageTV Customizations | 3 | 03-25-2005 04:13 AM |
Changing Text Color | eruji | SageTV Beta Test Software | 1 | 03-25-2004 04:15 PM |