linux ui: Fix icon lookup for statusicon

This commit is contained in:
Hylke Bons 2018-02-11 14:01:54 +00:00
parent fc447cbdfd
commit 140db317a7
2 changed files with 5 additions and 1 deletions

View file

@ -16,6 +16,8 @@
using System;
using System.IO;
using System.Reflection;
using Gtk;
using Sparkles;
@ -48,6 +50,8 @@ namespace SparkleShare
application.Register (null);
application.Activated += ApplicationActivatedDelegate;
IconTheme.Default.AppendSearchPath (Path.Combine (UserInterface.AssetsPath, "icons"));
var label = new Label ();
Gdk.Color color = UserInterfaceHelpers.RGBAToColor (label.StyleContext.GetColor (StateFlags.Insensitive));
SecondaryTextColor = UserInterfaceHelpers.ColorToHex (color);