This commit is contained in:
parent
29f3503d0c
commit
0c04948262
2 changed files with 5 additions and 1 deletions
|
|
@ -85,6 +85,7 @@
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="style.gtkrc">
|
<EmbeddedResource Include="style.gtkrc">
|
||||||
<LogicalName>style.gtkrc</LogicalName>
|
<LogicalName>style.gtkrc</LogicalName>
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,10 @@ namespace DMX2
|
||||||
|
|
||||||
Application.Init ();
|
Application.Init ();
|
||||||
|
|
||||||
if(System.IO.File.Exists("style.gtkrc")) Gtk.Rc.Parse("style.gtkrc");
|
System.IO.Directory.SetCurrentDirectory ( (new System.IO.FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location)).DirectoryName);
|
||||||
|
|
||||||
|
if(System.IO.File.Exists("style.gtkrc"))
|
||||||
|
Gtk.Rc.Parse("style.gtkrc");
|
||||||
else using (System.IO.Stream stream =
|
else using (System.IO.Stream stream =
|
||||||
System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("style.gtkrc"))
|
System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("style.gtkrc"))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue