Re: [Vala][Styling] Dark variant question



Hello,

I'm writing an application which allows users to apply various filters to images and share them to social networks. I would like it to use the dark theme variant, like Totem or EOG. I tried looking at EOG code to figure it out, but no dice.

I figured something out, and it's mostly working, except for the window decoration.

Code:

var darkprovider = CssProvider.get_named(this.get_settings().gtk_theme_name, "dark");
var winstyle = this.get_style_context();
winstyle.add_provider_for_screen(this.screen, darkprovider,STYLE_PROVIDER_PRIORITY_APPLICATION);

My question is, how can I get proper window decoration for this theme?




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