windows setup: bring last tutorial page in line with previous commits
This commit is contained in:
parent
9c177c4e9a
commit
8c1fc90908
|
@ -119,8 +119,8 @@ namespace SparkleShare {
|
||||||
Canvas.SetLeft (email_box, 340);
|
Canvas.SetLeft (email_box, 340);
|
||||||
Canvas.SetTop (email_box, 230);
|
Canvas.SetTop (email_box, 230);
|
||||||
|
|
||||||
Buttons.Add (continue_button);
|
|
||||||
Buttons.Add (cancel_button);
|
Buttons.Add (cancel_button);
|
||||||
|
Buttons.Add (continue_button);
|
||||||
|
|
||||||
name_box.Focus ();
|
name_box.Focus ();
|
||||||
name_box.Select (name_box.Text.Length, 0);
|
name_box.Select (name_box.Text.Length, 0);
|
||||||
|
@ -801,7 +801,6 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
case PageType.Tutorial: {
|
case PageType.Tutorial: {
|
||||||
|
|
||||||
switch (Controller.TutorialPageNumber) {
|
switch (Controller.TutorialPageNumber) {
|
||||||
case 1: {
|
case 1: {
|
||||||
Header = "What's happening next?";
|
Header = "What's happening next?";
|
||||||
|
@ -829,8 +828,8 @@ namespace SparkleShare {
|
||||||
Canvas.SetLeft (slide_image, 215);
|
Canvas.SetLeft (slide_image, 215);
|
||||||
Canvas.SetTop (slide_image, 130);
|
Canvas.SetTop (slide_image, 130);
|
||||||
|
|
||||||
Buttons.Add (continue_button);
|
|
||||||
Buttons.Add (skip_tutorial_button);
|
Buttons.Add (skip_tutorial_button);
|
||||||
|
Buttons.Add (continue_button);
|
||||||
|
|
||||||
|
|
||||||
skip_tutorial_button.Click += delegate {
|
skip_tutorial_button.Click += delegate {
|
||||||
|
@ -881,7 +880,6 @@ namespace SparkleShare {
|
||||||
Description = "It shows the syncing progress, provides easy access to " +
|
Description = "It shows the syncing progress, provides easy access to " +
|
||||||
"your projects and lets you view recent changes.";
|
"your projects and lets you view recent changes.";
|
||||||
|
|
||||||
|
|
||||||
Button continue_button = new Button () {
|
Button continue_button = new Button () {
|
||||||
Content = "Continue"
|
Content = "Continue"
|
||||||
};
|
};
|
||||||
|
@ -913,10 +911,23 @@ namespace SparkleShare {
|
||||||
Description = "You'll need it whenever you want to link this computer to a host" +
|
Description = "You'll need it whenever you want to link this computer to a host" +
|
||||||
" (we keep a copy in your SparkleShare folder).";
|
" (we keep a copy in your SparkleShare folder).";
|
||||||
|
|
||||||
Button finish_button = new Button () {
|
|
||||||
Content = "Finish"
|
TextBox link_code_text_box = new TextBox () {
|
||||||
|
Text = Program.Controller.CurrentUser.PublicKey,
|
||||||
|
Width = 250,
|
||||||
|
MaxLines = 1,
|
||||||
|
TextWrapping = TextWrapping.NoWrap,
|
||||||
|
IsEnabled = false
|
||||||
|
};
|
||||||
|
|
||||||
|
Button copy_button = new Button () {
|
||||||
|
Content = "Copy",
|
||||||
|
Width = 60
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Button finish_button = new Button () {
|
||||||
|
Content = "Finish"
|
||||||
|
};
|
||||||
|
|
||||||
CheckBox check_box = new CheckBox () {
|
CheckBox check_box = new CheckBox () {
|
||||||
Content = "Add SparkleShare to startup items",
|
Content = "Add SparkleShare to startup items",
|
||||||
|
@ -924,6 +935,14 @@ namespace SparkleShare {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ContentCanvas.Children.Add (link_code_text_box);
|
||||||
|
Canvas.SetLeft (link_code_text_box, 235);
|
||||||
|
Canvas.SetTop (link_code_text_box, 190);
|
||||||
|
|
||||||
|
ContentCanvas.Children.Add (copy_button);
|
||||||
|
Canvas.SetLeft (copy_button, 490);
|
||||||
|
Canvas.SetTop (copy_button, 190);
|
||||||
|
|
||||||
ContentCanvas.Children.Add (check_box);
|
ContentCanvas.Children.Add (check_box);
|
||||||
Canvas.SetLeft (check_box, 185);
|
Canvas.SetLeft (check_box, 185);
|
||||||
Canvas.SetBottom (check_box, 12);
|
Canvas.SetBottom (check_box, 12);
|
||||||
|
@ -939,6 +958,10 @@ namespace SparkleShare {
|
||||||
Controller.TutorialPageCompleted ();
|
Controller.TutorialPageCompleted ();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
copy_button.Click += delegate {
|
||||||
|
Clipboard.SetData(DataFormats.Text, link_code_text_box.Text);
|
||||||
|
};
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,6 +157,11 @@ namespace SparkleShare {
|
||||||
Canvas.SetBottom (button, 9);
|
Canvas.SetBottom (button, 9);
|
||||||
|
|
||||||
right += (int) button.Width + 9;
|
right += (int) button.Width + 9;
|
||||||
|
|
||||||
|
if ((button.Content as string).Equals ("Continue")) {
|
||||||
|
Buttons [Buttons.Count - 1].IsDefault = false;
|
||||||
|
button.IsDefault = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue