linux: Fix styling of about dialog
This commit is contained in:
parent
53fd0c42ff
commit
4a296d638c
|
@ -58,7 +58,7 @@ namespace SparkleShare {
|
|||
|
||||
void CheckForNewVersion ()
|
||||
{
|
||||
UpdateLabelEvent ("Checking for updates...");
|
||||
UpdateLabelEvent ("Checking for updates…");
|
||||
Thread.Sleep (500);
|
||||
|
||||
var web_client = new WebClient ();
|
||||
|
|
|
@ -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 you’re free to use, change, " +
|
||||
|
|
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue