bsaleil/gtg-gnome-shell-extension — pull request #7 by meden (2012-12-28 12:16:34+00:00)
Title: Better appearance integration, allowing easy themeability

Hi,
I just merged your last changes (basically identical to mine, of course) so you should not get conflicts anymore if you will accept this pull request.

What I tried to do in this code is basically make the appearance of new GTG columns just like the `Calendar.EventsList`. To achieve the goal, now the items in GTG columns rely on CSS classes used in `Calendar.EventsList` rather than the ones set in `stylesheet.css`. The latter are still used if the option `Use system theme` is turned off, so that the user can override the system theme. That way, the appearance will be consistent even if the user changes the shell theme (using the [User Themes](https://extensions.gnome.org/extension/19/user-themes/) extension).
I had to use some vodoo (`xyz.actor.remove_style_class_name("foo")` because the GTG menu is built in a completely different way than the `Calendar.EventsList` (using `PopupMenuItem` for headers too).
So, in short:
* If `Use system theme` is `On`, the `Calendar.EventsList` CSS classes are used (plus some tweak in `stylesheet.css`.
* If `Use system theme` is `Off`, the `*-custom` CSS classes in `stylesheet.css` are used, completely overriding the system theme.

As a plus:
* added a title for the todo column
* added localization support in `gtgtodomenus.js`

I hope the changes will be considered useful. Of course, we can discuss anything, if you want. Thanks for your work, anyway. And happy holidays!