Send plymouth mailing list submissions to plymouth@lists.freedesktop.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.freedesktop.org/mailman/listinfo/plymouth or, via email, send a message with subject or body 'help' to plymouth-requ...@lists.freedesktop.org You can reach the person managing the list at plymouth-ow...@lists.freedesktop.org When replying, please edit your Subject line so it is more specific than "Re: Contents of plymouth digest..." Today's Topics: 1. Re: change tricolor text theme (T?th Tibor) ---------------------------------------------------------------------- Message: 1 Date: Wed, 10 Aug 2011 11:58:17 +0200 (CEST) From: T?th Tibor <ti...@ulx.hu> Subject: Re: change tricolor text theme To: Ray Strode <halfl...@gmail.com> Cc: plymouth@lists.freedesktop.org Message-ID: <1078946325.5615.1312970297244.javamail.r...@turing.ulx.hu> Content-Type: text/plain; charset=utf-8 Hi Ray, Thanks a lot for the help with the color changing. One more thing I haven't quite figured out, is the distribution name at the end of the line. How can I make it show? Thanks, Tibby ----- Original message ----- Hi, > ?ply_terminal_set_color_hex_value (terminal, > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?PLY_TERMINAL_COLOR_BLACK, > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x000000); 0x000000 is black. > ?ply_terminal_set_color_hex_value (terminal, > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?PLY_TERMINAL_COLOR_WHITE, > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0xffffff); 0xffffffff is white. > ?ply_terminal_set_color_hex_value (terminal, > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?PLY_TERMINAL_COLOR_BLUE, > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0xCC0000); 0xcc0000 is light red. > ?ply_terminal_set_color_hex_value (terminal, > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?PLY_TERMINAL_COLOR_BROWN, > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?0x700000); 0x700000 is dark red. These numbers are just like html colors but with 0x in front instead of # Don't be dissuaded by the color swatch names (PLY_TERMINAL_COLOR_BLUE or whatever). Those are just symbolic names. I used descriptive names like COLOR_BLUE, COLOR_BLACK etc instead of COLOR_1, COLOR_2, in the API because terminals historically have used specific colors in specific positions by default. > You have mentioned some kind of config file. Where can I find that? well, it's a theme file. The one you're looking at is here: /usr/share/plymouth/theme/text/text.plymouth It's not meant to be edited by administrators, though. It's used by theme authors. And it doesn't currently expose those three colors. Basically what needs to happen is: - create_plugin needs to call ply_key_file_get_value() 3 times (once for each new key in text.plymouth, and stuff those 3 values into the plugin structure. - Then those three values need to get used in the function quoted in this thread instead of the hard coded numbers. --Ray ------------------------------ _______________________________________________ plymouth mailing list plymouth@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/plymouth End of plymouth Digest, Vol 34, Issue 2 ***************************************