Re: [Vala][Styling] Dark variant question



On Fri 22 Jun 2012 12:16:34 BST, Emmanuele Bassi wrote:
hi;

On 22 June 2012 11:23, Filip Lamparski <matka poohatka gmail com> wrote:
My question is, how do I fix this, so that all widgets use the dark variant,
including window decoration?

the code is wrong. you have to let the toolkit and the window manager
know about this setting, not load the theme.

the correct code is:

   var settings = Gtk.Settings.get_default();
   settings.gtk_application_prefer_dark_theme = true;

ciao,
  Emmanuele.


Yep, thanks. It works now. Though I guess Ubuntu users won't see that...



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]