Some UI beauty fixes
This commit is contained in:
parent
b1d84eff53
commit
138c55ba91
|
@ -70,7 +70,7 @@ namespace SparkleShare {
|
||||||
Description = "Before we can create a SparkleShare folder on this " +
|
Description = "Before we can create a SparkleShare folder on this " +
|
||||||
"computer, we need some information from you.";
|
"computer, we need some information from you.";
|
||||||
|
|
||||||
UserInfoForm = new NSForm (new RectangleF (250, 115, 350, 64));
|
UserInfoForm = new NSForm (new RectangleF (250, Frame.Height - 280, 350, 64));
|
||||||
|
|
||||||
UserInfoForm.AddEntry ("Full Name:");
|
UserInfoForm.AddEntry ("Full Name:");
|
||||||
UserInfoForm.AddEntry ("Email Address:");
|
UserInfoForm.AddEntry ("Email Address:");
|
||||||
|
@ -80,8 +80,8 @@ namespace SparkleShare {
|
||||||
UserInfoForm.Cells [0].LineBreakMode = NSLineBreakMode.TruncatingTail;
|
UserInfoForm.Cells [0].LineBreakMode = NSLineBreakMode.TruncatingTail;
|
||||||
UserInfoForm.Cells [1].LineBreakMode = NSLineBreakMode.TruncatingTail;
|
UserInfoForm.Cells [1].LineBreakMode = NSLineBreakMode.TruncatingTail;
|
||||||
|
|
||||||
UserInfoForm.Cells [0].StringValue = Program.Controller.UserName;
|
UserInfoForm.Cells [0].StringValue = Controller.GuessedUserName;
|
||||||
UserInfoForm.Cells [1].StringValue = Program.Controller.UserEmail;
|
UserInfoForm.Cells [1].StringValue = Controller.GuessedUserEmail;
|
||||||
|
|
||||||
// TODO: Ugly hack, do properly with events
|
// TODO: Ugly hack, do properly with events
|
||||||
timer = new Timer () {
|
timer = new Timer () {
|
||||||
|
@ -124,7 +124,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
case PageType.Add: {
|
case PageType.Add: {
|
||||||
|
|
||||||
Header = "Where is your remote folder?";
|
Header = "Where is your project?";
|
||||||
Description = "";
|
Description = "";
|
||||||
|
|
||||||
ServerTypeLabel = new NSTextField () {
|
ServerTypeLabel = new NSTextField () {
|
||||||
|
@ -133,7 +133,7 @@ namespace SparkleShare {
|
||||||
Bordered = false,
|
Bordered = false,
|
||||||
Editable = false,
|
Editable = false,
|
||||||
Frame = new RectangleF (150, Frame.Height - 159 , 160, 17),
|
Frame = new RectangleF (150, Frame.Height - 159 , 160, 17),
|
||||||
StringValue = "Server Type:",
|
StringValue = "Host Type:",
|
||||||
Font = SparkleUI.Font
|
Font = SparkleUI.Font
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -263,7 +263,7 @@ namespace SparkleShare {
|
||||||
ContentView.AddSubview (FolderNameHelpLabel);
|
ContentView.AddSubview (FolderNameHelpLabel);
|
||||||
|
|
||||||
SyncButton = new NSButton () {
|
SyncButton = new NSButton () {
|
||||||
Title = "Sync",
|
Title = "Add",
|
||||||
Enabled = false
|
Enabled = false
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -189,7 +189,7 @@ namespace SparkleShare {
|
||||||
Menu.AddItem (NSMenuItem.SeparatorItem);
|
Menu.AddItem (NSMenuItem.SeparatorItem);
|
||||||
|
|
||||||
SyncMenuItem = new NSMenuItem () {
|
SyncMenuItem = new NSMenuItem () {
|
||||||
Title = "Add Remote Folder…"
|
Title = "Add Project…"
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!Program.Controller.FirstRun) {
|
if (!Program.Controller.FirstRun) {
|
||||||
|
|
|
@ -77,12 +77,12 @@ namespace SparkleShare {
|
||||||
Xalign = 0
|
Xalign = 0
|
||||||
};
|
};
|
||||||
|
|
||||||
NameEntry = new Entry (Program.Controller.UserName);
|
NameEntry = new Entry (Controller.GuessedUserName);
|
||||||
NameEntry.Changed += delegate {
|
NameEntry.Changed += delegate {
|
||||||
CheckSetupPage ();
|
CheckSetupPage ();
|
||||||
};
|
};
|
||||||
|
|
||||||
EmailEntry = new Entry ();
|
EmailEntry = new Entry (Controller.GuessedUserEmail);
|
||||||
EmailEntry.Changed += delegate {
|
EmailEntry.Changed += delegate {
|
||||||
CheckSetupPage ();
|
CheckSetupPage ();
|
||||||
};
|
};
|
||||||
|
|
|
@ -75,6 +75,21 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string GuessedUserName {
|
||||||
|
get {
|
||||||
|
return Program.Controller.UserName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string GuessedUserEmail {
|
||||||
|
get {
|
||||||
|
if (Program.Controller.UserEmail.Equals ("Unknown"))
|
||||||
|
return "";
|
||||||
|
else
|
||||||
|
return Program.Controller.UserEmail;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private string previous_server = "";
|
private string previous_server = "";
|
||||||
private string previous_folder = "";
|
private string previous_folder = "";
|
||||||
|
@ -121,17 +136,11 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public void TutorialPageCompleted ()
|
public void TutorialPageCompleted ()
|
||||||
{
|
{
|
||||||
if (this.tutorial_page_number == 4) {
|
|
||||||
if (ChangePageEvent != null)
|
|
||||||
ChangePageEvent (PageType.Add);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
this.tutorial_page_number++;
|
this.tutorial_page_number++;
|
||||||
|
|
||||||
if (ChangePageEvent != null)
|
if (ChangePageEvent != null)
|
||||||
ChangePageEvent (PageType.Tutorial);
|
ChangePageEvent (PageType.Tutorial);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public void TutorialSkipped ()
|
public void TutorialSkipped ()
|
||||||
|
|
Loading…
Reference in a new issue