linux: Fix styling of about dialog

This commit is contained in:
Hylke Bons 2016-04-20 16:13:23 -07:00 committed by Hylke Bons
parent 53fd0c42ff
commit 4a296d638c
3 changed files with 10 additions and 4 deletions

View file

@ -58,7 +58,7 @@ namespace SparkleShare {
void CheckForNewVersion ()
{
UpdateLabelEvent ("Checking for updates...");
UpdateLabelEvent ("Checking for updates");
Thread.Sleep (500);
var web_client = new WebClient ();

View file

@ -38,7 +38,7 @@ namespace SparkleShare {
WindowPosition = WindowPosition.CenterAlways;
TypeHint = Gdk.WindowTypeHint.Dialog;
SetSizeRequest (600, 260);
SetSizeRequest (640, 260);
DeleteEvent += delegate (object o, DeleteEventArgs args) {
@ -127,6 +127,11 @@ namespace SparkleShare {
WrapMode = WrapMode.Word
};
var text_view_css_provider = new CssProvider ();
text_view_css_provider.LoadFromData ("GtkTextView { color: #fff; font-size: 10px; background-color: rgba(0, 0, 0, 0); }");
license.StyleContext.AddProvider (text_view_css_provider, 800);
TextBuffer license_buffer = license.Buffer;
license_buffer.Text = "SparkleShare is Open Source and youre free to use, change, " +

View file

@ -32,6 +32,7 @@ namespace SparkleShare {
{
}
public override bool CreateSparkleShareFolder ()
{
if (Directory.Exists (Configuration.DefaultConfiguration.FoldersPath))
@ -46,10 +47,10 @@ namespace SparkleShare {
public override void SetFolderIcon ()
{
var command = new Command ("gvfs-set-attribute", Configuration.DefaultConfiguration.FoldersPath + " " +
var gvfs_set_attribute = new Command ("gvfs-set-attribute", Configuration.DefaultConfiguration.FoldersPath + " " +
"metadata::custom-icon-name org.sparkleshare.SparkleShare");
command.StartAndWaitForExit ();
gvfs_set_attribute.StartAndWaitForExit ();
}