windows setup: add slide and fix startup item checkbox
This commit is contained in:
parent
ce4065bb15
commit
f0c753d4f0
|
@ -244,7 +244,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public void UIHasLoaded ()
|
public void UIHasLoaded ()
|
||||||
{
|
{
|
||||||
if (FirstRun)
|
//if (FirstRun)
|
||||||
ShowSetupWindow (PageType.Setup);
|
ShowSetupWindow (PageType.Setup);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -430,6 +430,18 @@ namespace SparkleShare {
|
||||||
"that will keep track of your projects.";
|
"that will keep track of your projects.";
|
||||||
|
|
||||||
|
|
||||||
|
WPF.Image slide_image = new WPF.Image () {
|
||||||
|
Width = 350,
|
||||||
|
Height = 200
|
||||||
|
};
|
||||||
|
|
||||||
|
slide_image.Source = SparkleUIHelpers.GetBitmap ("tutorial-slide-1-windows");
|
||||||
|
|
||||||
|
|
||||||
|
ContentCanvas.Children.Add (slide_image);
|
||||||
|
Canvas.SetLeft (slide_image, 215);
|
||||||
|
Canvas.SetTop (slide_image, 130);
|
||||||
|
|
||||||
Button skip_tutorial_button = new Button () {
|
Button skip_tutorial_button = new Button () {
|
||||||
Content = "Skip tutorial"
|
Content = "Skip tutorial"
|
||||||
};
|
};
|
||||||
|
@ -530,6 +542,10 @@ namespace SparkleShare {
|
||||||
Buttons.Add (finish_button);
|
Buttons.Add (finish_button);
|
||||||
|
|
||||||
|
|
||||||
|
check_box.Click += delegate {
|
||||||
|
Controller.StartupItemChanged (check_box.IsChecked.Value);
|
||||||
|
};
|
||||||
|
|
||||||
finish_button.Click += delegate {
|
finish_button.Click += delegate {
|
||||||
Controller.TutorialPageCompleted ();
|
Controller.TutorialPageCompleted ();
|
||||||
};
|
};
|
||||||
|
|
|
@ -223,6 +223,9 @@
|
||||||
<Link>plugins\bitbucket.png</Link>
|
<Link>plugins\bitbucket.png</Link>
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="..\..\data\icons\process-syncing-sparkleshare-mac-i.png">
|
||||||
|
<Link>Pixmaps\process-syncing-sparkleshare-mac-i.png</Link>
|
||||||
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="Icons.tt">
|
<None Include="Icons.tt">
|
||||||
|
|
|
@ -78,7 +78,6 @@ namespace SparkleShare {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
Program.Controller.FolderListChanged += delegate {
|
Program.Controller.FolderListChanged += delegate {
|
||||||
Dispatcher.Invoke ((Action) delegate {
|
Dispatcher.Invoke ((Action) delegate {
|
||||||
SetNormalState ();
|
SetNormalState ();
|
||||||
|
@ -177,7 +176,6 @@ namespace SparkleShare {
|
||||||
MenuItem folder_item = new MenuItem () {
|
MenuItem folder_item = new MenuItem () {
|
||||||
Header = " SparkleShare"//,
|
Header = " SparkleShare"//,
|
||||||
,Icon = i
|
,Icon = i
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
folder_item.Click += delegate {
|
folder_item.Click += delegate {
|
||||||
|
|
Loading…
Reference in a new issue