Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Theme background question
« previous next »
  • Print
Pages: 1 [2]

Author Topic: Theme background question  (Read 6496 times)

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Theme background question
« Reply #15 on: January 11, 2008, 12:50:45 PM »
Quote from: blueskip on January 11, 2008, 04:50:35 AM
I'm not an expert by any means but I just accomplished what you say isn't possible in the sim a few moments ago.  I have my buttons onscreen with the default backdrop showing underneath.  This is NOT the one applied with the theme.

I'd appreciate seeing the WPS code that achieves this, could you post it?
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: Theme background question
« Reply #16 on: January 11, 2008, 02:00:20 PM »
Quote from: yapper on January 11, 2008, 12:30:29 PM
Quote from: GodEater on January 10, 2008, 03:22:16 PM
What are you hoping to see if you make the background invisible? The insides of the iPod or something? ;)
Sounds like an idea for a theme though!
I'm thinking of buying one of those do-it-yourself battery changing kits (Though even after nearly 2 years of almost daily use, my battery is still pretty good) and if I do, I'm snapping a picture of the guts and may try to use them as a background.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline melancholydm

  • Member
  • *
  • Posts: 71
Re: Theme background question
« Reply #17 on: January 11, 2008, 05:27:23 PM »
is it really impossible? Lets say you dont set a bg.bmp in the wps code and just layout the icons with coding, wouldnt you be able to use a backdrop as a background?
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Theme background question
« Reply #18 on: January 11, 2008, 06:10:27 PM »
There are two separate backgrounds - the WPS background and the rest of rockbox.  You can set the background in the WPS by specifying it in the xxx.wps file, which is where the filename bg.bmp is commonly used, but you can call it anything.  If you do not specify a background in your xxx.wps file, you will not have background in the WPS.  The 'global' background cannot be seen on the WPS.  It isn't a question of seeing it through other icons, it just isn't drawn.

The way of using the same background for both is to specify the same image for both, once for the WPS in your xxx.WPS file, and again for the rest of rockbox.

This is why I would like to see blueskip's code, as what he is suggesting can't be done (if it can I'll buy then eat my newly acquired hat).  I suspect he has set it as the background which achieves the same effect in the end, but is different.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline blueskip

  • Member
  • *
  • Posts: 53
Re: Theme background question
« Reply #19 on: January 12, 2008, 08:17:43 AM »
I'm almost done.  I have one tiny spot of pink showing and I can't get it to show transparent.

Photoshop tells me the color is R=255,G=0,B=255 but it still is pink in Rockbox.  ??  Can anyone tell me what I'm doing wrong to get this to show transparent.  Do I need to edit it in something else ... gimp ...mspaint?  

Everything else is working.  I can see my default backdrop when the music is playing and if I change the default backdrop it changes in the player as well.  I used the blackglass theme and modified it so it looks very similar when playing.    

Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Theme background question
« Reply #20 on: January 12, 2008, 08:22:15 AM »
Quote from: blueskip on January 12, 2008, 08:17:43 AM
Everything else is working.  I can see my default backdrop when the music is playing and if I change the default backdrop it changes in the player as well.  I used the blackglass theme and modified it so it looks very similar when playing.    

You mean if you change the backdrop in the menu screen, then your WPS bakground automatically changes too?

I would really love to see the WPS code :)
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline blueskip

  • Member
  • *
  • Posts: 53
Re: Theme background question
« Reply #21 on: January 12, 2008, 08:43:20 AM »
here is the code although almost all of it was created by Chris Banes so I can't possibly take credit for anything other than figuring out how to make this work differently.

Quote
%x|a|bmp.bmp|0|179|
%P|pb.bmp|
%xl|b|volume0.bmp|230|200|
%xl|c|volume1.bmp|230|200|
%xl|d|volume2.bmp|230|200|
%xl|e|volume3.bmp|230|200|
%xl|f|volume4.bmp|230|200|
%xl|g|volume5.bmp|230|200|
%xl|h|volume6.bmp|230|200|
%xl|i|volume7.bmp|230|200|
%xl|j|volume8.bmp|230|200|
%xl|k|volume9.bmp|230|200|
%xl|l|volume10.bmp|230|200|
%xl|m|stop.bmp|65|190|
%xl|n|play.bmp|65|190|
%xl|o|pause.bmp|65|190|
%xl|p|rw.bmp|14|200|
%xl|B|ff.bmp|107|200|
%xl|C|rpt_on1.bmp|167|200|
%xl|D|rpt_on.bmp|167|206|
%xl|E|rpt_on_ab.bmp|167|200|
%xl|F|rpt_on_sh.bmp|167|200|
%xl|G|rpt_off.bmp|167|208|
%xl|H|shf_off.bmp|193|200|
%xl|I|shf_on.bmp|193|200|
%xl|J|b0.bmp|252|7|
%xl|K|b1.bmp|252|7|
%xl|L|b2.bmp|252|7|
%xl|M|b3.bmp|252|7|
%xl|N|b4.bmp|252|7|
%xl|O|b5.bmp|252|7|
%xl|P|r1.bmp|281|7|
%xl|Q|r2.bmp|281|7|
%xl|R|h.bmp|301|7|
%xl|S|stat.bmp|243|0|
%wd
%s%al  %?ia<%ia  |%?d2<%d2|(root)>>
%s%al  %?id<%id  |%?d1<%d1|(root)>>
%pb|4|6|306|
%al  %?it<%it  |%fn>
%al   Time : %pc [%pt]
%al   Track : %?in<%in|unknown> (%pp/%pe)
%al   Codec : %fc (%?fb<%fbkbps| >)

%al   %cl:%cM %cp

I added two new bitmaps and did away with the original backdrop bmp.  I cant figure out how to insert the images here.  But I moved the background of the battery, lock and disk to the top.   I cut the entire lower portion of the original backdrop and placed it on the bottom that is bmp.bmp above.  Stat.bmp is the white background from the original.  I'll see if I can open in a sim and post a screenshot soon.  

For anyone wanting to use this immediately the fast forward and rewind buttons still do not work correctly.  I need to look and see what I did wrong.  I did a couple of things wrong before I figured out how this works.  Since the mistakes don't seem to affect the way this works I left them.  I particularly wanted this for a large font such as Nimbus 19 so the lack of information onscreen is for that reason.  I would really prefer a font of about 17 or 18 but I haven't been able to find any and haven't had time to convert one yet.

Update: fastforward and rewind icons fixed.  They now highlight when used.  I included a screenshot.  It doesn't show the battery, lock and disk because it's from the sim.  The sim crashes with .dll problems repeatedly when I use it, but the battery icon..etc. show correctly on the ipod.  

* bmp.JPG (4.05 kB, 320x61 - viewed 171 times.)

* stat.JPG (0.93 kB, 77x24 - viewed 279 times.)

* Untitled-1.jpg (83.56 kB, 328x270 - viewed 153 times.)
« Last Edit: January 12, 2008, 11:02:42 AM by blueskip »
Logged

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Theme background question
« Reply #22 on: January 12, 2008, 12:21:50 PM »
Quote from: BigBambi on January 12, 2008, 08:22:15 AM
You mean if you change the backdrop in the menu screen, then your WPS bakground automatically changes too?

Just did a test on the sim and indeed, it's true.  If you don't set a new background in the .wps file it sticks with the menu backdrop.  The world is full of surprises.
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Theme background question
« Reply #23 on: January 12, 2008, 12:38:09 PM »
Looks like I need to buy a hat to eat then :)
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline MarcGuay

  • Rockbox Expert
  • Member
  • *
  • Posts: 1065
Re: Theme background question
« Reply #24 on: January 12, 2008, 12:42:52 PM »
Logged

Offline blueskip

  • Member
  • *
  • Posts: 53
Re: Theme background question
« Reply #25 on: January 12, 2008, 12:44:59 PM »
I'll eat that hat.  ;D  I just got lucky.  (making it work)

I've been playing with this theme based on this approach since my last post.  I made numerous changes such as moving the progress bar to the bottom.  I cropped the bottom panel slightly to make the progress bar look like it belongs there.  etc..

Now I just need a font that is about a 17 or 18 and I'll be done.  I can't figure out how to rezize fonts though.  That's a little tougher than I thought.
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: Theme background question
« Reply #26 on: January 12, 2008, 12:49:29 PM »
Ah, someone beat me to it. However, I found something a bit more practical:

http://www.foundationtv.co.uk/f-tips/illeatmyhat.html
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline melancholydm

  • Member
  • *
  • Posts: 71
Re: Theme background question
« Reply #27 on: January 12, 2008, 05:51:03 PM »
wow then this is great news... further customization that everybody else didnt think possible.... does this mean you simply just placed the icons by using code or did you put pink everywhere?
Logged

Offline blueskip

  • Member
  • *
  • Posts: 53
Re: Theme background question
« Reply #28 on: January 12, 2008, 08:13:37 PM »
When I first was experimenting I was using photoshop.  Bitmaps using pink with photoshop will NOT work.  I switched to MS paint and haven't had any problems using transparencies since.

HOWEVER, that is not how I did it (using pink I mean).  I used %x|a|filename|distance from left|distance from top| as the first line

The I called the image for display using %xda

This placed the background for my button icons.  

All of this may work using the pink in paintshop.  (255-0255) I don't know.  I haven't tried that.  But I have been experimenting with this color making changes to the overall theme.  It seems to work one everything else and I would think it would probably work just as well as what I did on any other background.  But I don't know without trying.  What I do know is that the less that is loaded the better off you are so loading a 320x240 image covered in pink will bog the overall performance if you are intending to look at the default background when it's not shown.

I'm working on a complete make over to this theme.  I like the media player look, but I want some changes to clear up more screen space.

Update:  Theme posted.  Listed as Clearview at the bottom. Uses Nimbus 14 font by default.

http://www.rockbox.org/twiki/bin/view/Main/WpsIpod5g
« Last Edit: January 13, 2008, 11:11:05 AM by blueskip »
Logged

  • Print
Pages: 1 [2]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Theme background question
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.369 seconds with 15 queries.