NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) Community Skin v
« Previous 1 2 3 4 5 6 … 10 Next »
[DEV] Plugin: Text Options

 
  • 0 Vote(s) - 0 Average
[DEV] Plugin: Text Options
Hairy
Offline

Senior Member

Posts: 703
Threads: 39
Joined: Nov 2007
#1
2009-02-21, 10:47 AM
I thought I'd start a new thread to put forward a suggestion for text handling by the plugin.

How about if we identify and group the text to be altered under a heading and allow the user to increase or decrease the text size proportionately. For example with the baseskin.xml, group the 3 text sizings (small, standard and large) and let the plugin increase or decrease these by the same amount, like:
  • -4
  • -3
  • -2
  • -1
  • 0
  • +1
  • +2
  • +3
  • +4

* I don't think the layout would support much more than +/- 4pt change

That way the text increases or decrease uniformly rather than the user altering individual settings i.e a +1 increase would go from 11/13/15pt to 12/14/16pt etc.

We could also apply this to TVGuide listings and (after a little tweaking) the OSD.
The Hairy Man

HTPC: Core Duo E4300 - 2GB DDR2 - HD 3650 - 500GB storage
Capture: 1 Nova-T 500 - 1 PVR 500
TV: S-Video to 32" Philips CRT

Support the Community Skin
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#2
2009-02-21, 08:43 PM
think this might be good. Will have a play and see how to implement it. Will need to finish off the xml edit stuff first.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#3
2009-02-23, 01:43 PM
Just commited some changes to the SVN:

Added support for XmlTextSizeEdit and XmlEdit EditableSkinItem file types - see Text.DefaultTextSize for an example.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#4
2009-02-23, 01:43 PM
Hairy Wrote:How about if we identify and group the text to be altered under a heading and allow the user to increase or decrease the text size proportionately.
Any suggestions for the groups/headings?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Hairy
Offline

Senior Member

Posts: 703
Threads: 39
Joined: Nov 2007
#5
2009-02-24, 08:21 AM
For the headings I think:
  • Layout
  • TVGuide + LiveGuide Listings
  • OSD

covers virtually all the main text areas of the skin.

For layout it would be really handy if we could group the text sizing like we do the colours, but I don't think that's possible. So (I think) from the text styles section of the base skin the groupings would be, smaller text (Green), standard text (Blue) and Larger text (Red).


Code:
    <TextStyles>
        <!-- special case text style providing defaults -->
        [color=Blue]<TextStyle name="DefaultTextStyle" color="General" typeFace="Arial" dropShadow="DropShadow" size="13" style="bold"/> [/color]
        <!--In the Above line  possibly Size, Typeface, and Style as modifiable with SkinPlugin-->

        <!--Used by sub in blue-->
        
        <!-- other commonly used text styles -->
        <TextStyle name="ScreenNameStyle" color="ScreenName" size="28"/>
        <TextStyle name="ButtonTextStyle" dropShadow="DropShadow" color="Normal"/> <!--Size, Typeface and Style pulled from DefaultTextStyle-->
        [COLOR="Red"]<TextStyle name="GeneralTextHeaderStyle" dropShadow="DropShadow" color="Header" typeFace="Verdana" size="15" style="bold"/>
        <TextStyle name="GeneralTextHeaderStyleSelected" dropShadow="DropShadow" color="Header" typeFace="Verdana" size="15" style="bold"/>
        <TextStyle name="GeneralTextHeaderStyleSelectedInactive" dropShadow="DropShadow" color="Header" typeFace="Verdana" size="15" style="bold"/>
        <TextStyle name="GeneralTextStyle" dropShadow="DropShadow" color="General"/>[/COLOR]

        <!-- details view -->
        <TextStyle name="DetailsViewItemsTitle" dropShadow="DropShadow" color="Normal"/> <!-- I think these are redundant with ListViewItems-->
        <TextStyle name="DetailsViewFolders" dropShadow="DropShadow" color="Header"/>
        <!-- list view -->
        <TextStyle name="ListViewItems" dropShadow="DropShadow" color="Normal"/>
        <TextStyle name="ListViewFolders" dropShadow="DropShadow" color="Header"/>
        <!-- icon view -->
        [COLOR="Green"]<TextStyle name="IconViewItems" dropShadow="DropShadow" color="Normal" size="11"/>
        <TextStyle name="IconViewFolders" dropShadow="DropShadow" color="Header" size="11"/>[/COLOR]
        
        
        <!--CommunitySkin Addons-->        
        <!-- Button text styles --> <!--I prefer these names (Fatman_do)-->
        [COLOR="Blue"]<TextStyle name="ButtonTextNormal" dropShadow="DropShadow" color="Normal" size="13" />
        <TextStyle name="ButtonTextSelected" dropShadow="DropShadow" color="Selected" size="13" />
        <TextStyle name="ButtonTextSelectedInactive" dropShadow="DropShadow" color="SelectedInactive" size="13" />
        <TextStyle name="MiniHeaderStyle" dropShadow="DropShadow" color="Header" typeFace="Verdana" size="13" style="bold"/>
        <TextStyle name="MiniHeaderStyleSelected" dropShadow="DropShadow" color="Header" typeFace="Verdana" size="13" style="bold"/>
        <TextStyle name="MiniHeaderStyleSelectedInactive" dropShadow="DropShadow" color="Header" typeFace="Verdana" size="13" style="bold"/>[/COLOR]
        [color=Green]<TextStyle name="DefaultTextStyleSmall" color="General" typeFace="Arial" dropShadow="DropShadow" size="11" style="bold"/> [/color]
        [color=Blue]<TextStyle name="GeneralTextStyleItalic" dropShadow="DropShadow" color="General" size="13" style="Italic"/> [/color]
        [color=Red]<TextStyle name="GeneralTextTitleStyle" dropShadow="DropShadow" color="Header" typeFace="Verdana" size="15" style="bold"/> <!--Used like GeneralTextHeaderStyle, but with a larger font-->[/color]
        
        <!-- List text styles-->
            <!--Icon Selectable text-->
        [COLOR="Green"]<TextStyle name="IconNormal" dropShadow="DropShadow" color="Normal" size="11" /> <!--Text under icons usually need to be smaller-->
        <TextStyle name="IconSelected" dropShadow="DropShadow" color="Selected" size="11" />
        <TextStyle name="IconSelectedInactive" dropShadow="DropShadow" color="SelectedInactive" size="11" />[/COLOR]
            <!--List Selectable text-->
        <TextStyle name="ListNormal" dropShadow="DropShadow" color="Normal"/>
        <TextStyle name="ListSelected" dropShadow="DropShadow" color="Selected"/>
        <TextStyle name="ListSelectedInactive" dropShadow="DropShadow" color="SelectedInactive"/>
    </TextStyles>

For the TVGuide + liveguide listings:

Code:
    <TextStyles>
        <TextStyle name="ListingStyle" color="#f0f0f0" size="13"/>
        <TextStyle name="TimelineStyle" color="#f0f0f0" size="11"/>
    </TextStyles>

For the OSD, if we add a "DefaultTextStyle" reference to the OSD skin.xml, then:

Code:
    <TextStyles>
        <TextStyle name="DefaultTextStyle" color="#f0f0f0" size="13"/>
        <TextStyle name="OsdTextLargeStyle" color="#f0f0f0" size="16"/>
        <TextStyle name="OsdTextVeryLargeStyle" color="#f0f0f0" size="18"/>
    </TextStyles>

I think fatman_do probably knows these xml's better than I do Big Grin, so you can see what he thinks. But the idea would be that each group in each separate heading increases/decreases uniformly, on the assumption that the default text sizing balance is pretty good and the user would just want overall text to get bigger or smaller
The Hairy Man

HTPC: Core Duo E4300 - 2GB DDR2 - HD 3650 - 500GB storage
Capture: 1 Nova-T 500 - 1 PVR 500
TV: S-Video to 32" Philips CRT

Support the Community Skin
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#6
2009-02-24, 11:59 AM
Hairy Wrote:I think fatman_do probably knows these xml's better than I do Big Grin, so you can see what he thinks. But the idea would be that each group in each separate heading increases/decreases uniformly, on the assumption that the default text sizing balance is pretty good and the user would just want overall text to get bigger or smaller

You pretty much nailed it.
Fatman_do
[SIZE="1"]
HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
Storage: 30GB OS & Recording, 160GB Post Processing & Archive
Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver[/SIZE]

[SIZE="2"]
Moderator | Tutorials | Community Skin | CommunitySkin-SVN[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#7
2009-02-24, 12:13 PM
Looks good. I'll create a SkinPluginConfig.xml file to include these headings and groups and then we can see how it plays.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#8
2009-02-24, 01:35 PM
McBainUK Wrote:Looks good. I'll create a SkinPluginConfig.xml file to include these headings and groups and then we can see how it plays.
See SVN for SkinPluginConfig.xml and Resources\Text folder update.

I'm open to suggestions regarding descriptions for these Text EditableSkinItems.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Hairy
Offline

Senior Member

Posts: 703
Threads: 39
Joined: Nov 2007
#9
2009-02-24, 02:11 PM
Wow that was quick Big Grin

I've just tried it out and it works spot on. Implementation wise, I'd group them further.

So 3/4 headings:
  • Layout
  • TVGuide Listings
  • liveguide listings (if there's a benifit to seperating this from standard tvguide ???)
  • OSD

So from how it operates now I'd combine:
  • General - Small text size
  • General - Medium text size
  • General - large text size

into the layout heading where each text size is increased/decreased by one amount in one selection.

And the same for OSD.
The Hairy Man

HTPC: Core Duo E4300 - 2GB DDR2 - HD 3650 - 500GB storage
Capture: 1 Nova-T 500 - 1 PVR 500
TV: S-Video to 32" Philips CRT

Support the Community Skin
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#10
2009-02-24, 02:16 PM
So you can set the Layout (not a fan of this name mind) to +2 and it will set all the textstyles defined in it. yes?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Skin Plugin Causing Unhandled Exception Error Firetoad 1 5,340 2010-02-14, 02:47 AM
Last Post: Firetoad
  CS4 update for the iplayer plugin gEd 1 5,254 2010-01-28, 01:42 AM
Last Post: Fatman_do
  CS 405 text clipping in main menu newyankee 29 19,097 2009-12-29, 07:11 PM
Last Post: Fatman_do
  Problem with Skin Plugin richardw456 9 8,460 2009-12-22, 10:15 PM
Last Post: kindt nick
  Skin Plugin returns to Main Menu roy 56 19,699 2009-11-15, 04:48 AM
Last Post: JavaWiz
  Error running Skin Plugin JavaWiz 3 2,941 2009-09-04, 03:05 PM
Last Post: McBainUK
  TV Recordings plugin allignment blip using CS WS glow gEd 0 2,135 2009-08-25, 08:15 PM
Last Post: gEd
  New button required for latest BBC Iplayer (v) plugin gEd 3 2,728 2009-08-25, 03:22 AM
Last Post: Fatman_do
  Skin plugin not working DrSoftware 12 5,540 2009-07-17, 08:32 PM
Last Post: DrSoftware
  [DEV] available text elements johnsonx42 7 3,956 2009-06-11, 10:31 PM
Last Post: Jaggy

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

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

Linear Mode
Threaded Mode