NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 41 42 43 44 45 … 93 Next »
Community Skin 3.0 Open development thread.

 
  • 0 Vote(s) - 0 Average
Community Skin 3.0 Open development thread.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#21
2007-07-16, 12:09 PM
Graham Wrote:Is it right that the task image is the task.png that sits in the \skin\blue\MyPlugin folder and is displayed in the initial main menu as I scroll to MyPlugin in the menu?
Correct.

Graham Wrote:What handling of task images is done by individual plugins?
The image is drawn by the main menu but each plugin has a getTaskImage method which returns to GB-PVR an image object to display. All plugins tend to simply look for a task.png/task.jpg in their skin folder and return that.
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
#22
2007-07-16, 12:18 PM (This post was last modified: 2007-07-16, 12:25 PM by McBainUK.)
Graham Wrote:Any of the twenty skins/themes could be altered to...using the skinplugin program to alter the content of the skin xml files. No copying of png files would be required.
I think your suggestions are well thought out but I'm having trouble understanding the overal goal here. Is it this?

Graham Wrote:I could create twenty skins/themes.
By this do you mean 20 sets of XML files, with each set having a XML file for every screen/plugin?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#23
2007-07-16, 12:31 PM
McBainUK Wrote:All plugins tend to simply look for a task.png/task.jpg in their skin folder and return that.

We only have about two or three new 1.0 plugins so it may not be too late to modify stuff. The legacy plugins will stay as they are -- finding their task images in the \skin\Plugin folder.

I don't have strong views about any of this. I like that the new blue skin is straightforward and I can understand what it is doing. I like what the Community skin and SkinPlugin did. I would like to see a re-implementation of the fuctionality of the SkinPlugin with an absolute minimum of complexity so that I can see how stuff works and fiddle with skins if I want to.

Thanks

Graham
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#24
2007-07-16, 12:52 PM
Graham Wrote:re-implementation of the fuctionality of the SkinPlugin with an absolute minimum of complexity
I'm all for that Big Grin Although I think the legacy plugins still need to be catered for.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#25
2007-07-16, 12:55 PM (This post was last modified: 2007-07-16, 01:05 PM by Graham.)
McBainUK Wrote:I'm having trouble understanding the overal goal here.

I suspect that you have hit on one of the things that I haven't thought through. I have been thinking about how to keep stuff simple and not about how stuff would actually work.

I can see why it might be not good to have twenty skins with each skin having thirty or more sub-folders to cater for all the plugins.

Watch this space.

Thanks

Graham

Edit: I know that this debate happened at the start of the Community skin project and I am not try to re-invent the wheel. I just hope that the the wheel can have as few spokes as possible.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#26
2007-07-16, 01:11 PM (This post was last modified: 2007-07-16, 02:57 PM by McBainUK.)
How the Community Skin and SkinPlugin works (and why it does things this way)
- it doesnt have as many spokes as you think Smile
[Image: HowItWorks.png]

Quote:I can see why it might be not good to have twenty skins with each skin having thirty or more sub-folders to cater for all the plugins.
This was the reason behind the CommunitySkin (and Mixman's and Old Dog's skin systems). XMLs need to be kept up to date when versions of plugins and GB-PVR itself are created.

What we did was to have the XML files define the layout of each screen and then move the apperance out into the baseskin and a set of common images. You can see the list here. We also did the same for textstyles as there is no point being able to change, for example, a button to white if the text stays the default white.

Once all the XMLs where made I worked on the SkinPlugin which allowed you to swap and change images and baseskin.xmls (which define fonts and colours). Later themes where added (pre-defined sets of images which look nice and work well together). Later still SkinMods where added which allow you to swap out certain screen's XMLS - for example the main menu and TV Guide.

The goal of this was to reduce XML maintaince and allow users to change the look of GB-PVR with knowing about XMLs and baseskins and whatnot. The proof of this is that since Fatmand_do, MixMan, myself and serveral others created the original XMLs they havnt been touched apart from new and updated plugins.

----------------------------------------
In the future one thing I would like is for the SkinPlugin to be able to save themes and to have some killer images to work with. Some hi-res/WS ones would be nice.
Fatman_do and myself have also talked about about having an army of skinners to maintain XMLs (for a quick turnaround on new and updated plugins & GBPVR screens) and to create (borrow) themes and images to expand the skin.

Mark

ps. I'm not saying "this is the best and only way" I just wanted to explain how it works and why. This is another thing we have discussed - at the moment its quite hidden and we want it to be more of the community's. The guidelines and lists linked to above goes some way to help achive that.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#27
2007-07-16, 01:27 PM
McBainUK Wrote:Correct.


The image is drawn by the main menu but each plugin has a getTaskImage method which returns to GB-PVR an image object to display. All plugins tend to simply look for a task.png/task.jpg in their skin folder and return that.

The weather plug-in also has an option to return the current forecast icon as its task icon. If this option is checked, each time GBPVR asks the weather plug-in to return its task icon it will, potentially, return a different image.

Jeff
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#28
2007-07-16, 03:10 PM
McBainUK Wrote:- it doesnt have as many spokes as you think Smile

Thank you.

I had been groping around the Community skin folders and the picture that I had in my mind was a close match for the picture in your post. There is hope for me yet.

Our minds have different ideas about what is complex which is why you are the developer and I am merely a spectator.

I don't really care how complicated stuff is. I care about how complicated it looks. Watching TV on a computer is jolly complicated. Using GBPVR makes it easy (mostly).

You could probably shut me up by storing all of the content of the \Community\SkinPlugin folder as a sub-folder in \Plugins\SkinPlugin folder. Plus, the SkinPlugin might be able to replace the Community\baseskin.xml (and other edits) directly without the need for visible file copying. Out of sight is out of mind.

When I decide to fiddle about changing a skin, I could try the SkinPlugin. If that doesn't do what I want, I could go to the Community skin folder and edit the xml file directly. I just need to remember which manual edits will be lost if I make further changes using the SkinPlugin.

Thanks for your patience

Graham

P.S. I had assumed that because the new skins looked easier then it would be possible to come up with an easier way to do Community Skin/SkinPlugin stuff. A lot of time, effort and intellect when into the Community Skin/SkinPlugin stuff and the end result does a good job. Spending another million keystokes looking for ways to reduce the number of spokes in the wheel is umlikely to achieve any improvement. If it ain't broke don't fix it.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#29
2007-07-16, 03:21 PM
Graham Wrote:I care about how complicated it looks.....Plus, the SkinPlugin might be able to replace the Community\baseskin.xml (and other edits) directly without the need for visible file copying. Out of sight is out of mind.
I agree and want to look into in-place-editing of things like the number of rows in the TV guide for example (if this is possible...).

Loosing the ugly dos box and repleacing it with a please wait... windows form will be a good way to go. Don't have to see all the copy/delete messages then.

Graham Wrote:\Community\SkinPlugin folder as a sub-folder in \Plugins\SkinPlugin folder.
This is already planned for V3.0

Graham Wrote:I am merely a spectator.
If you want to get invloved and think your manual edits deserve a place in the CSkin installer than let us know - things always seem to need tweaking.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#30
2007-07-16, 10:35 PM
Graham, your input is greatly appreciated in these discussions because it is a fresh set of eyes looking at it from the outside.

I always will add user skin mods or requests into the Community skin distribution.

One of the reasons for the current skinmods selection was due to user requets.

I have to spend some time to re-read your posts to better grasp where you are coming from and formulate answers.

I can see some pitfalls with some of the ideas, but I need to come up with a better explanation than the one I have in my mind.

For example, a central image lookup point may not work well with 3 different skins by three different authors. Who's images would be shown?
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]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (10): « Previous 1 2 3 4 5 … 10 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Test/Development environment for npvr.db3 scJohn 10 4,568 2020-09-04, 09:14 PM
Last Post: scJohn
  Skin help (correct location?) SFX Group 4 3,952 2018-01-24, 07:42 AM
Last Post: pBS
  Web Client: Slow with separate thread and date not obscured cncb 32 16,357 2016-10-10, 02:01 PM
Last Post: mvallevand
  skin question pBS 2 3,385 2016-06-18, 07:03 PM
Last Post: pBS
  Skin - view further into the future, scale the guide Vitenka 5 3,377 2014-11-26, 07:28 PM
Last Post: Vitenka
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,996 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,863 2013-06-08, 06:14 PM
Last Post: sub
  Open Source Mheg+ Graham 0 1,487 2012-11-30, 06:32 PM
Last Post: Graham
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,856 2012-10-18, 08:35 PM
Last Post: osx-addict
  Skin element Details in NowNext Jaggy 2 1,845 2011-09-19, 11:50 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