NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 70 71 72 73 74 … 93 Next »
An Idea to improve skinning

 
  • 0 Vote(s) - 0 Average
An Idea to improve skinning
mthornton
Offline

Junior Member

Posts: 18
Threads: 9
Joined: May 2005
#1
2005-06-08, 09:26 PM
Each plugin for GBPVR has a skin file. Each skin file defines the colors, fonts, etc.

I would like to see a root skin file that has at least the basic colors and fonts that should be used by all the plugins. Instead of each plugin's skin file defining things like ButtonText, ButtonColor and Button Font this can get pulled from the root skin file. To draw an anology to typical windows development, instead of defining specific colors in applications, most developers just use "System Colors". This way an applications we write will look mostly like the rest of the programs.

Idealy, these standard skin setting would be in the root skin file and used. If a skin developer would want to override the defaults they could. This could be done by defining an additional type of skin varable. Like maybe @@ before the name.

For example:

Root skin.xml
Code:
<settings>
    
  <TextStyle>
    <TextStyle name="ScreenTitleText" color="LightGray" typeFace="Tahoma" size="17" style="bold"/>
  </TextStyle>
</settings>


A plugins skin.xml

Code:
<settings>
  <CompositeImage name="Background" size="720,480">
    <DrawImage filename="..\background.jpg" loc="0,0" size="720,480"/>
    <DrawText text="My Plugin" [b]textStyle="@@ScreenTitleText"[/b] loc="5,5" size="200,120" align="Left"/>
  </CompositeImage>
</settings>


In the above example, when the plugin pulled the Background, the @@ScreenTitleText would cause the Title to render using the textStyle defined as "ScreenTitleText" from the root skin.xml.

If a skin creator want to override this, they just change @@ScreenTitleText to a local TextSytle name.

This would make skinning much easier and the overall look of plugins a little more consistant. Also, existing plugins would be backwards compatible since this switch would happen within GBPVR (well, the CommonGBPVRUtilities would need updated also).

Or have I missed something that can already be done another way?

What does everybody think? More importantly, what do you think Sub?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,705
Threads: 767
Joined: Nov 2003
#2
2005-06-08, 09:31 PM
Yes, I've been thinking about doing something like this for a while. I was primarily thinking about the composite images (button definitions etc), but yes text styles etc also make sense.

I will add it in one of the upcoming release.
smeghead
Offline

Senior Member

Posts: 300
Threads: 23
Joined: Jan 2005
#3
2005-06-10, 09:43 PM
Bump.

Sounds good to me but not many comments from the regular skinners...........
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#4
2005-06-10, 10:28 PM
We're all for it...just waiting patiently for sub's next bit of wizardry Smile
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  ios app to control npvr ui idea jnbooker15 4 3,601 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,477 2015-09-21, 06:39 PM
Last Post: jnbooker15
  Absolute newbie trying to realize an idea - where to start? Oopsjoppe 13 5,587 2013-11-11, 05:33 PM
Last Post: Oopsjoppe
  Skinning & Rendering mvallevand 31 8,056 2011-05-29, 09:43 PM
Last Post: Jaggy
  Installer setting folder permissions..bad idea? Fatman_do 3 1,879 2009-11-30, 04:07 PM
Last Post: zehd
  New plugin Idea - Foul Language Filter skate15e 14 5,028 2009-01-30, 09:27 PM
Last Post: reven
  Suggested Addition to Skinning KingArgyle 5 2,633 2008-09-09, 04:32 PM
Last Post: PartialGestalt
  Idea for a plugin developer out there. lumpy 4 1,957 2008-02-01, 10:28 AM
Last Post: K.S.
  Skin Idea Hairy 5 2,210 2007-12-11, 07:10 PM
Last Post: pBS
  Skinning the main menu alibert 2 1,702 2007-11-18, 03:53 PM
Last Post: alibert

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

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

Linear Mode
Threaded Mode