mac ui: Update to San Francisco font
This commit is contained in:
parent
b312620048
commit
37769da70f
|
@ -30,18 +30,12 @@ namespace SparkleShare {
|
||||||
public Bubbles Bubbles;
|
public Bubbles Bubbles;
|
||||||
public About About;
|
public About About;
|
||||||
public Note Note;
|
public Note Note;
|
||||||
|
|
||||||
public static string FontName = "Helvetica Neue";
|
|
||||||
|
|
||||||
|
|
||||||
public UserInterface ()
|
public UserInterface ()
|
||||||
{
|
{
|
||||||
// TODO: SF Font
|
|
||||||
if (Environment.OSVersion.Version.Major < 14)
|
|
||||||
FontName = "Lucida Grande";
|
|
||||||
|
|
||||||
SparkleShare.Controller.Invoke (() => {
|
SparkleShare.Controller.Invoke (() => {
|
||||||
// NSApplication.SharedApplication.ApplicationIconImage = NSImage.ImageNamed ("Resources/sparkleshare-app.icns");
|
NSApplication.SharedApplication.ApplicationIconImage = NSImage.ImageNamed ("sparkleshare-app.icns");
|
||||||
|
|
||||||
Setup = new Setup ();
|
Setup = new Setup ();
|
||||||
EventLog = new EventLog ();
|
EventLog = new EventLog ();
|
||||||
|
@ -61,10 +55,16 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void UpdateDockIconVisibility ()
|
public static string FontName {
|
||||||
{
|
get {
|
||||||
// if (Setup.IsVisible || EventLog.IsVisible || About.IsVisible)
|
if (Environment.OSVersion.Version.Major < 14)
|
||||||
// NSApplication.SharedApplication.ActivationPolicy = NSApplicationActivationPolicy.Regular;
|
return "Lucida Grande";
|
||||||
|
|
||||||
|
if (Environment.OSVersion.Version.Major < 15)
|
||||||
|
return "Helvetica Neue";
|
||||||
|
|
||||||
|
return "SF UI Text";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue