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:

Thank You for your continued support and contributions!

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

Author Topic: Custom UI Viewport  (Read 12473 times)

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Custom UI Viewport
« on: August 16, 2009, 06:46:02 PM »
So, I just committed FS#8799 which adds the UI viewport. With this, you can make nice themes like this:


I.e.: Put a (invisible) viewport border around lists and stuff.

We possible want to use that feature not only for pretty themes, but also to have some sort of background wps updating (but later, if at all).

How to use?

You add the lines to your themes.cfg, there's no setting for it in any menu.
ui viewport: X, Y, [width], [height], [font], [foreground pattern], [background pattern] (the patterns are dependant on the depth of your display.
The same for the remote, just that it's "remote ui viewport: ..."

width through background pattern might be omitted, X and Y not. Omit them by inserting a "-".

As you can see, nearly the same syntax as for WPS viewports, the way the optional values is also the same. In fact, it's the same except for the comma separator!

An example: "ui viewport: 15,15,100,150,1,-,-". That will give you a ui viewport starting at 15|15, 100px wide, 150px high, using the user font and using the colors from the global settings.

Happy theming!

PS: You might want to report bugs here if you find some (but our flyspray tracker is still preferred).

PS2: If you have themes that do not have the above lines in are going to look weird if you have a theme with ui viewport before (the viewport isn't reset). You then need to add "ui viewport: -" and "remote ui viewport: -" (without the quotes) to the thems to have them resetting the viewport properly.
« Last Edit: August 16, 2009, 08:21:12 PM by kugel. »
Logged
 

Offline Thecoolgman

  • Member
  • *
  • Posts: 55
    • Xylem
Re: Custom UI Viewport
« Reply #1 on: August 16, 2009, 07:44:09 PM »
 ;D Happy Day! I've been waiting for this!
Logged

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: Custom UI Viewport
« Reply #2 on: August 17, 2009, 08:23:59 AM »
manual entry for this will take some time. i'd like to get viewports in first, so i can reference them properly.
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: Custom UI Viewport
« Reply #3 on: August 18, 2009, 03:57:28 PM »
Just to show off a bit, this is what we actually would like to do with the custom ui viewport (try to ignore the anti-aliased font :p )
« Last Edit: August 18, 2009, 04:03:43 PM by kugel. »
Logged
 

Offline Thecoolgman

  • Member
  • *
  • Posts: 55
    • Xylem
Re: Custom UI Viewport
« Reply #4 on: August 19, 2009, 12:37:29 AM »
What are all the commands for custom ui?
Logged

Offline Multiplex

  • Member
  • *
  • Posts: 440
Re: Custom UI Viewport
« Reply #5 on: August 19, 2009, 09:14:54 AM »
Quote from: Thecoolgman on August 19, 2009, 12:37:29 AM
What are all the commands for custom ui?
http://forums.rockbox.org/index.php?topic=22495.msg154730#msg154730
Logged

Offline happybear

  • Member
  • *
  • Posts: 16
Re: Custom UI Viewport
« Reply #6 on: August 20, 2009, 11:03:35 PM »
I've tried it out ...looks great together with the ability to adjust scrollbar width (r22416)  ;D

Noticed that after I copy files from internal memory to microSD card on my sansa e270, the screen refreshes only the specifed viewport area

eg: ui viewport: 4,22,167,183,1,-,-

so parts of the copying progress bar etc still remains on screen. Does it have anything to do with my settings?
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: Custom UI Viewport
« Reply #7 on: August 21, 2009, 06:53:05 AM »
Quote from: happybear on August 20, 2009, 11:03:35 PM
I've tried it out ...looks great together with the ability to adjust scrollbar width (r22416)  ;D

Noticed that after I copy files from internal memory to microSD card on my sansa e270, the screen refreshes only the specifed viewport area

eg: ui viewport: 4,22,167,183,1,-,-

so parts of the copying progress bar etc still remains on screen. Does it have anything to do with my settings?
That's a bug, there are probably a few more places where this happens. I'll have a look.
Logged
 

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: Custom UI Viewport
« Reply #8 on: August 22, 2009, 04:54:21 AM »
Viewports for the manual are ready(FS#10553). Think i'll be done with this part for the manual in a week at worst.
« Last Edit: August 22, 2009, 07:37:10 AM by BdN3504 »
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: Custom UI Viewport
« Reply #9 on: August 23, 2009, 11:07:33 AM »
Quote from: happybear on August 20, 2009, 11:03:35 PM

so parts of the copying progress bar etc still remains on screen. Does it have anything to do with my settings?

Fixed in SVN.
Logged
 

Offline epithetless

  • Member
  • *
  • Posts: 195
    • Dour Times
Re: Custom UI Viewport
« Reply #10 on: August 23, 2009, 01:14:37 PM »
kugel, similar behavior happens when you change the Status Bar between the "Off", "Top", and "Bottom" settings -- status bars remain on both the top and bottom of the screen (regardless of which option you finished with) until you enter the WPS.
« Last Edit: August 23, 2009, 01:17:34 PM by epithetless »
Logged
Rockboxed: Apple iPod 3G â€¢ Apple iPod nano 2G • iriver H120 • Sansa c250 v1 • Sansa Clip v1 • Sansa Clip v2 • Sansa Clip+ • Sansa e280 v1 • Sansa e280v2 • Sansa Fuze v1  |  non-Rockboxed: HTC Incredible [Android 2.2] • Sansa Fuze v2

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: Custom UI Viewport
« Reply #11 on: August 23, 2009, 05:22:30 PM »
Quote from: epithetless on August 23, 2009, 01:14:37 PM
kugel, similar behavior happens when you change the Status Bar between the "Off", "Top", and "Bottom" settings -- status bars remain on both the top and bottom of the screen (regardless of which option you finished with) until you enter the WPS.

Heh, I'm not really using that statusbar anymore :P I'm working on this:


But I'll definitely have a look.
Logged
 

Offline epithetless

  • Member
  • *
  • Posts: 195
    • Dour Times
Re: Custom UI Viewport
« Reply #12 on: August 23, 2009, 06:00:43 PM »
Well, best of luck with the status bar updates! Your version certainly looks more appealing!

By the way, what font are you using in the version of "Slick - Let It Blue" you pictured above?
Logged
Rockboxed: Apple iPod 3G â€¢ Apple iPod nano 2G • iriver H120 • Sansa c250 v1 • Sansa Clip v1 • Sansa Clip v2 • Sansa Clip+ • Sansa e280 v1 • Sansa e280v2 • Sansa Fuze v1  |  non-Rockboxed: HTC Incredible [Android 2.2] • Sansa Fuze v2

Offline ZincAlloy

  • Member
  • *
  • Posts: 488
Re: Custom UI Viewport
« Reply #13 on: August 23, 2009, 06:44:24 PM »
12-Adobe-Helvetica. It comes with this one since Kugel updated it to use a Custom UI Viewport.
Logged

Offline epithetless

  • Member
  • *
  • Posts: 195
    • Dour Times
Re: Custom UI Viewport
« Reply #14 on: August 23, 2009, 07:27:06 PM »
Quote from: ZincAlloy on August 23, 2009, 06:44:24 PM
12-Adobe-Helvetica. It comes with this one since Kugel updated it to use a Custom UI Viewport.
Thanks, ZincAlloy.
Logged
Rockboxed: Apple iPod 3G â€¢ Apple iPod nano 2G • iriver H120 • Sansa c250 v1 • Sansa Clip v1 • Sansa Clip v2 • Sansa Clip+ • Sansa e280 v1 • Sansa e280v2 • Sansa Fuze v1  |  non-Rockboxed: HTC Incredible [Android 2.2] • Sansa Fuze v2

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

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

Page created in 0.117 seconds with 15 queries.