More cleanups
This commit is contained in:
parent
4075967199
commit
1e548aa964
|
@ -33,10 +33,10 @@ namespace SparkleShare {
|
||||||
public string Header;
|
public string Header;
|
||||||
public string Description;
|
public string Description;
|
||||||
|
|
||||||
private NSImage SideSplash;
|
private NSImage side_splash;
|
||||||
private NSImageView SideSplashView;
|
private NSImageView side_splash_view;
|
||||||
private NSTextField HeaderTextField;
|
private NSTextField header_text_field;
|
||||||
private NSTextField DescriptionTextField;
|
private NSTextField description_text_field;
|
||||||
|
|
||||||
|
|
||||||
public SparkleSetupWindow () : base ()
|
public SparkleSetupWindow () : base ()
|
||||||
|
@ -53,16 +53,16 @@ namespace SparkleShare {
|
||||||
|
|
||||||
string side_splash_path = Path.Combine (NSBundle.MainBundle.ResourcePath, "Pixmaps", "side-splash.png");
|
string side_splash_path = Path.Combine (NSBundle.MainBundle.ResourcePath, "Pixmaps", "side-splash.png");
|
||||||
|
|
||||||
SideSplash = new NSImage (side_splash_path) {
|
this.side_splash = new NSImage (side_splash_path) {
|
||||||
Size = new SizeF (150, 482)
|
Size = new SizeF (150, 482)
|
||||||
};
|
};
|
||||||
|
|
||||||
SideSplashView = new NSImageView () {
|
this.side_splash_view = new NSImageView () {
|
||||||
Image = SideSplash,
|
Image = this.side_splash,
|
||||||
Frame = new RectangleF (0, 0, 150, 482)
|
Frame = new RectangleF (0, 0, 150, 482)
|
||||||
};
|
};
|
||||||
|
|
||||||
HeaderTextField = new NSTextField () {
|
this.header_text_field = new NSTextField () {
|
||||||
Frame = new RectangleF (190, Frame.Height - 80, Frame.Width, 24),
|
Frame = new RectangleF (190, Frame.Height - 80, Frame.Width, 24),
|
||||||
BackgroundColor = NSColor.WindowBackground,
|
BackgroundColor = NSColor.WindowBackground,
|
||||||
Bordered = false,
|
Bordered = false,
|
||||||
|
@ -71,7 +71,7 @@ namespace SparkleShare {
|
||||||
"Lucida Grande", NSFontTraitMask.Bold, 0, 15)
|
"Lucida Grande", NSFontTraitMask.Bold, 0, 15)
|
||||||
};
|
};
|
||||||
|
|
||||||
DescriptionTextField = new NSTextField () {
|
this.description_text_field = new NSTextField () {
|
||||||
Frame = new RectangleF (190, Frame.Height - 130, 640 - 240, 44),
|
Frame = new RectangleF (190, Frame.Height - 130, 640 - 240, 44),
|
||||||
BackgroundColor = NSColor.WindowBackground,
|
BackgroundColor = NSColor.WindowBackground,
|
||||||
Bordered = false,
|
Bordered = false,
|
||||||
|
@ -96,15 +96,15 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public void ShowAll ()
|
public void ShowAll ()
|
||||||
{
|
{
|
||||||
HeaderTextField.StringValue = Header;
|
this.header_text_field.StringValue = Header;
|
||||||
DescriptionTextField.StringValue = Description;
|
this.description_text_field.StringValue = Description;
|
||||||
|
|
||||||
ContentView.AddSubview (HeaderTextField);
|
ContentView.AddSubview (this.header_text_field);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty (Description))
|
if (!string.IsNullOrEmpty (Description))
|
||||||
ContentView.AddSubview (DescriptionTextField);
|
ContentView.AddSubview (this.description_text_field);
|
||||||
|
|
||||||
ContentView.AddSubview (SideSplashView);
|
ContentView.AddSubview (this.side_splash_view);
|
||||||
|
|
||||||
int i = 1;
|
int i = 1;
|
||||||
int x = 0;
|
int x = 0;
|
||||||
|
|
|
@ -113,7 +113,7 @@ namespace SparkleShare {
|
||||||
Controller.UpdateMenuEvent += delegate {
|
Controller.UpdateMenuEvent += delegate {
|
||||||
using (var a = new NSAutoreleasePool ())
|
using (var a = new NSAutoreleasePool ())
|
||||||
{
|
{
|
||||||
InvokeOnMainThread (() => CreateMenu);
|
InvokeOnMainThread (() => CreateMenu ());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue