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
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  SVN inclusion of colors stuff!
« previous next »
  • Print
Pages: [1]

Author Topic: SVN inclusion of colors stuff!  (Read 3308 times)

Offline robin0800

  • Member
  • *
  • Posts: 291
  • Freeman
SVN inclusion of colors stuff!
« on: June 18, 2007, 04:07:33 PM »
Having looked at the recent svn could I ask for a simple explanation of what this colors stuff is and how to use it in practice?

many thanks
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: SVN inclusion of colors stuff!
« Reply #1 on: June 18, 2007, 04:49:52 PM »
Essentially you write a .colors file into the themes directory with something like this in it :

folder:808080
ipod:00B0B0
mp3:00FF00
flac:00FF00
ogg:00FF00
txt:FF0000
cfg:D00000

And files matching those type (usually it's a ., but folders don't have an extension) will be displayed in that colour.
Logged

Read The Manual Please

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: SVN inclusion of colors stuff!
« Reply #2 on: June 18, 2007, 05:47:37 PM »
You also need to reference the file in a *.cfg (i.e. theme) file which you need to load.

e.g.

filetype colors: /.rockbox/themes/sample.colors

*.color files can be conveniently edited with text_editor (open with)
Logged

Offline robin0800

  • Member
  • *
  • Posts: 291
  • Freeman
Re: SVN inclusion of colors stuff!
« Reply #3 on: June 18, 2007, 06:14:03 PM »
Thanks for the quick reply.
If I've understood correctly the file in the theme folder would be sample.colors, which would  be called fom the theme configuration file as roolku states

filetype colors: /.rockbox/themes/sample.colors

Just tried this and it works!
« Last Edit: June 18, 2007, 06:35:17 PM by robin0800 »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: SVN inclusion of colors stuff!
« Reply #4 on: June 18, 2007, 06:14:36 PM »
Only filetypes supported by Rockbox, or Rockbox's viewers.config file, can be colored. All other files default to the foreground color (the color they would be before this patch).
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: SVN inclusion of colors stuff!
« Reply #5 on: June 19, 2007, 05:31:33 AM »
Is it just me, or is this feature broken for the Database?

I have successfully set up a .colours file (note UK spelling; a recent change) on my Gigabeat under latest firmware version r13672, but when browsing the Database, items shown as folders are, apparently randomly, the specified colour or black. Foreground colour is set to white.



[attachment deleted by admin for age]
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: SVN inclusion of colors stuff!
« Reply #6 on: June 19, 2007, 05:44:49 AM »
This does seem broken, please file a bug report. Database wasn't supposed to show any colors at all (beyond 'foreground')

Edit: I've fixed it, committing the fix, don't file a bug report (or tell me so I can close it).
« Last Edit: June 19, 2007, 06:05:00 AM by Llorean »
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: SVN inclusion of colors stuff!
« Reply #7 on: June 19, 2007, 03:34:18 PM »
Thanks. I'll try it tomorrow, as the build (build 2007-06-19 19:03:46 - from r13673 to r13674) does not appear to be completing at the moment (30 mins and counting and only the Archos' done...  :( )

I was just going to do the bug report when I saw your update, so there's nothing to do there :)
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: SVN inclusion of colors stuff!
« Reply #8 on: June 19, 2007, 03:49:50 PM »
It's been a very light day for commits, and the one Llorean did I managed to bugger up by forgetting to install ccache on the new build server. So it's all my fault. Sorry!!!
Logged

Read The Manual Please

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  SVN inclusion of colors stuff!
 

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

Page created in 0.093 seconds with 15 queries.