mac ui: Remove dock icon and force windows on top. #30
This commit is contained in:
parent
ad3a2919e1
commit
51aa2bf89c
|
@ -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>
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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), "", "") {
|
||||
|
|
|
@ -47,6 +47,7 @@ namespace SparkleShare {
|
|||
MinSize = new SizeF (640, 420);
|
||||
HasShadow = true;
|
||||
BackingType = NSBackingStore.Buffered;
|
||||
Level = NSWindowLevel.Floating;
|
||||
|
||||
Center ();
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue