mac ui: Remove dock icon and force windows on top. #30

This commit is contained in:
Hylke Bons 2014-07-04 21:36:50 +02:00
parent ad3a2919e1
commit 51aa2bf89c
5 changed files with 7 additions and 4 deletions

View file

@ -8,10 +8,10 @@
<string>org.sparkleshare.sparkleshare</string>
<key>CFBundleName</key>
<string>SparkleShare</string>
<key>CFBundleVersion</key>
<string>1.4</string>
<key>CFBundleShortVersionString</key>
<string>1.4</string>
<key>CFBundleVersion</key>
<string>1.4</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>

View file

@ -49,6 +49,7 @@ namespace SparkleShare {
MinSize = new SizeF (640, 281);
HasShadow = true;
BackingType = NSBackingStore.Buffered;
Level = NSWindowLevel.Floating;
this.hidden_close_button = new NSButton () {
Frame = new RectangleF (0, 0, 0, 0),

View file

@ -68,6 +68,7 @@ namespace SparkleShare {
HasShadow = true;
BackingType = NSBackingStore.Buffered;
TitlebarHeight = Frame.Height - ContentView.Frame.Height;
Level = NSWindowLevel.Floating;
this.web_view = new WebView (new RectangleF (0, 0, 481, 579), "", "") {

View file

@ -47,6 +47,7 @@ namespace SparkleShare {
MinSize = new SizeF (640, 420);
HasShadow = true;
BackingType = NSBackingStore.Buffered;
Level = NSWindowLevel.Floating;
Center ();

View file

@ -64,8 +64,8 @@ namespace SparkleShare {
public void UpdateDockIconVisibility ()
{
if (Setup.IsVisible || EventLog.IsVisible || About.IsVisible)
NSApplication.SharedApplication.ActivationPolicy = NSApplicationActivationPolicy.Regular;
// if (Setup.IsVisible || EventLog.IsVisible || About.IsVisible)
// NSApplication.SharedApplication.ActivationPolicy = NSApplicationActivationPolicy.Regular;
}
}