Commit 43b57e9f authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa
Browse files

get color from theming engine before rendering background.

need to make sure that it does not introduce regressions in other applications.
CCBUG: 264213
parent 99da2cf5
......@@ -308,7 +308,14 @@ namespace Oxygen
} else {
Style::instance().renderWindowBackground( context, window, x, y, w, h );
// get background color
GdkRGBA background_gtk;
gtk_theming_engine_get_background_color( engine, state, &background_gtk );
StyleOptions options;
options._customColors.insert( Palette::Window, Gtk::gdk_get_color( background_gtk ) );
// render background
Style::instance().renderWindowBackground( context, window, x, y, w, h, options );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment