about: Fix background image

This commit is contained in:
Hylke Bons 2016-03-06 14:12:01 +00:00
parent 0c0d440a34
commit 7369405dd9

View file

@ -86,14 +86,14 @@ namespace SparkleShare {
font.Size = 9 * 1024;
CssProvider css_provider = new CssProvider ();
string image_path = new string [] { SparkleUI.AssetsPath, "pixmaps", "about.png" }.Combine ();
Image image = SparkleUIHelpers.GetImage("about.png");
css_provider.LoadFromData ("GtkWindow {" +
"background-image: url('" + image_path + "');" +
"background-image: url('" + image.File + "');" +
"background-repeat: no-repeat;" +
"background-position: left bottom;" +
"}");
StyleContext.AddProvider (css_provider, 800);
VBox layout_vertical = new VBox (false, 0);