[vlc-devel] [PATCHES]CSS styles in the Lua http interface

Geoffroy Couprie geo.couprie at gmail.com
Wed Dec 16 19:15:53 CET 2009


Hello,

I messed a bit with the Lua interface, and I have patches for a fun
idea: let users write themselves the style for this interface.

I modified the HTML files (mostly to remove hardcoded styles and
pictures) and the default CSS style, for both the http control plugin
and the Lua http interface, to make customization easier.

Then, I changed the plugin to make it look for alternative styles in
the user configuration dir (the script already allowed that, thanks
dionoea!), and to add a <select> and a bit of javascript to change the
CSS while seeing the page.

To add another style, create the lua/http directory in the user
configuration directory (c:\Users\username\AppData\Roaming\vlc on
Windows 7), and (for an hypothetical "geal" css style) create in there
geal/ and geal/geal.css
You can access this folder from /styles/geal in the css file.

I am not a graphist, so I did not really change the old look. The
default theme needs some love from a skilled web developer. Anyone
interested? Should we start a contest for users, like the skins one?

I'm waiting for your comments.

Best regards,

Geoffroy Couprie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0387-make-the-http-interface-more-CSS-friendly.patch
Type: application/octet-stream
Size: 15495 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091216/62c4e60e/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0388-more-css-fixups.patch
Type: application/octet-stream
Size: 937 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091216/62c4e60e/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0389-Lua-http-make-the-interface-more-css-friendly.patch
Type: application/octet-stream
Size: 15273 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091216/62c4e60e/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0390-Lua-http-fix-user-directory-listing.patch
Type: application/octet-stream
Size: 2466 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091216/62c4e60e/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0391-Lua-http-give-a-choice-between-possible-styles.patch
Type: application/octet-stream
Size: 6572 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091216/62c4e60e/attachment-0004.obj>


More information about the vlc-devel mailing list