NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 19 20 21 22 23 … 93 Next »
Changing skin font or colour

 
  • 0 Vote(s) - 0 Average
Changing skin font or colour
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#11
2010-07-16, 12:28 AM
Jaggy, that's what I want to do, I the code I would do

args["@Color"] = "ConflictListing"

and it would override the colour in this fairly typical row

<Text text="@Title" visible="@isFolder" location="11,0" size="60,100" font="DefaultReverse" align="Left" valign="Left"/>

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#12
2010-07-16, 01:45 AM
Isn't the title text always going to be visible? Just have all the titles <Text> elements line up and then set visible="@isFolder" on the folder <Image>.

Code:
<Image src="..\FolderImage.jpg" visible="@isFolder" location="1,0" size="9,100">
<Text text="@Title" visible="@isSports" location="11,0" size="60,100" font="DefaultReverseR" align="Left" valign="Left"/>
<Text text="@Title" visible="@isMovie" location="11,0" size="60,100" font="DefaultReverseY" align="Left" valign="Left"/>
<Text text="@Title" visible="@isShow" location="11,0" size="60,100" font="DefaultReverseG" align="Left" valign="Left"/>
<Text text="@Title" visible="@isEpi" location="11,0" size="60,100" font="DefaultReverse" align="Left" valign="Left"/>
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#13
2010-07-16, 01:59 AM
In this specif usage I want the folder and the items both to have "genre" colouring, so no.

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#14
2010-07-16, 02:24 AM
You could set the image as a variable (src="@folderImage") and then set @folderImage to the appropriate image for that item.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#15
2010-07-16, 02:48 AM
whurlston It sounds like you really don't think this a good idea or worth sub's effort and I am not still not sure why. I can certainly code and skin around this specific problem I thought a generic solution was better, but if I'm the only one who cares I can wait until sub has time. I think the icon approach means each skinners (and I) would need to come up with four specific copyright free thematic icons that look good at SD which I want to avoid. Using colours, I can have this as a configurable, since not everyone will want it.

Martin
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#16
2010-07-16, 03:08 AM (This post was last modified: 2010-07-16, 03:15 AM by whurlston.)
I'm actually over the not thinking it's a good idea and just in workaround mode for you until it's implemented. Big Grin

Admittedly, it will open up possibilities for developers, I just probably won't use it ('cause I'm lazy and want to avoid as much skin modification as possible).
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#17
2010-07-16, 03:55 AM
Thanks, I know you are trying to help, it shows how people can look at program logic differently. To me this is much easier to skin and adjust.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#18
2010-07-16, 06:58 PM
I just checked, and found I'd already implemented part of what you wanted. You can do something like this:

<Text text="@subtitle" location="0,13" size="90,10" font="@fontName" align="center"/>

And pass in the "@fontName" in the args:

Code:
args["@fontName"] = "DefaultReverseSmall"
if (failed)
  args["@fontName"] = "DefaultReverseSmallFailed"

Where @fontName is name of a <Font> defined in the skin. It used for typeface/size/color etc.

I probably wont add anything more on this front, as it should be able to do what you want. It'd also be a bit awkward for me to change the existing stuff to specify the color independently of the defined <Font>.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#19
2010-07-16, 08:13 PM
Can I ask kindof the reverse: how do I read a colour from the xml into a plugin (so I can draw something in a colour defined by the skin)?

I've found SkinHelper.GetColor() but I'll be buggered if I can get it to work. Maybe I'm not specifying the colour properly in the skin? I've tried <NamedColor> and <Color> both within <NamedColors> and <Colors> groups. The SkinHelper always returns white, even if I pass it a string that doesn't exist.

Iain
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#20
2010-07-16, 08:23 PM
sub Wrote:I just checked, and found I'd already implemented part of what you wanted. You can do something like this:

...

I probably wont add anything more on this front, as it should be able to do what you want. It'd also be a bit awkward for me to change the existing stuff to specify the color independently of the defined <Font>.

That will work really well thanks.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Skin help (correct location?) SFX Group 4 3,829 2018-01-24, 07:42 AM
Last Post: pBS
  skin question pBS 2 3,304 2016-06-18, 07:03 PM
Last Post: pBS
  Skin - view further into the future, scale the guide Vitenka 5 3,227 2014-11-26, 07:28 PM
Last Post: Vitenka
  Changing the recording priority on recurring recordings cbgifford 4 3,737 2014-08-17, 03:13 PM
Last Post: Kiwi
  Skin element Details in NowNext Jaggy 2 1,772 2011-09-19, 11:50 PM
Last Post: Jaggy
  Changing recording schedules on the fly. mvallevand 2 1,873 2011-09-06, 03:30 AM
Last Post: BrettB
  Skin Help with Line Drawing Northpole 2 1,880 2011-07-19, 05:14 PM
Last Post: Northpole
  Anyone interested in developing a Skin Plugin? Hairy 13 4,923 2011-07-10, 04:13 PM
Last Post: mvallevand
  Skin help needed for EventDetails.xml bgowland 7 3,248 2011-06-26, 11:55 PM
Last Post: Jaggy
  A list of changing images McBainUK 1 1,823 2011-06-21, 04:36 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode