Windows: Update project file location
This commit is contained in:
parent
b88c11a7f3
commit
1dc2a2fcf3
|
@ -101,42 +101,30 @@
|
||||||
<Reference Include="System.Xaml" />
|
<Reference Include="System.Xaml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="..\Common\BubblesController.cs">
|
|
||||||
<Link>BubblesController.cs</Link>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="..\Common\BaseController.cs">
|
|
||||||
<Link>BaseController.cs</Link>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="..\Common\NoteController.cs">
|
|
||||||
<Link>NoteController.cs</Link>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="..\Common\StatusIconController.cs">
|
|
||||||
<Link>StatusIconController.cs</Link>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="..\Common\SetupController.cs" />
|
|
||||||
<Compile Include="EventLog.cs" />
|
|
||||||
<Compile Include="Note.xaml.cs">
|
|
||||||
<DependentUpon>Note.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="Shortcut.cs" />
|
|
||||||
<Compile Include="UserInterface.cs" />
|
|
||||||
<Compile Include="..\Common\AboutController.cs" />
|
<Compile Include="..\Common\AboutController.cs" />
|
||||||
<Compile Include="..\Common\Avatars.cs" />
|
<Compile Include="..\Common\Avatars.cs" />
|
||||||
<Compile Include="Bubbles.cs" />
|
<Compile Include="..\Common\BaseController.cs" />
|
||||||
<Compile Include="About.cs" />
|
<Compile Include="..\Common\BubblesController.cs" />
|
||||||
<Compile Include="Controller.cs" />
|
<Compile Include="..\Common\EventLogController.cs" />
|
||||||
<Compile Include="Setup.cs" />
|
<Compile Include="..\Common\NoteController.cs" />
|
||||||
<Compile Include="StatusIcon.cs" />
|
<Compile Include="..\Common\SetupController.cs" />
|
||||||
<Compile Include="SparkleUIHelpers.cs" />
|
<Compile Include="..\Common\SparkleShare.cs" />
|
||||||
<Compile Include="..\Common\EventLogController.cs">
|
<Compile Include="..\Common\StatusIconController.cs" />
|
||||||
<Link>SparkleEventLogController.cs</Link>
|
<Compile Include="UserInterface\About.cs" />
|
||||||
|
<Compile Include="UserInterface\Bubbles.cs" />
|
||||||
|
<Compile Include="UserInterface\EventLog.cs" />
|
||||||
|
<Compile Include="UserInterface\Controller.cs" />
|
||||||
|
<Compile Include="UserInterface\Note.xaml.cs">
|
||||||
|
<DependentUpon>Note.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="SetupWindow.cs" />
|
<Compile Include="UserInterface\NotifyIcon.cs" />
|
||||||
<Compile Include="..\Common\SparkleShare.cs">
|
<Compile Include="UserInterface\Setup.cs" />
|
||||||
<Link>SparkleShare.cs</Link>
|
<Compile Include="UserInterface\SetupWindow.cs" />
|
||||||
</Compile>
|
<Compile Include="UserInterface\Shortcut.cs" />
|
||||||
<Compile Include="NotifyIcon.cs" />
|
<Compile Include="UserInterface\Spinner.cs" />
|
||||||
<Compile Include="Spinner.cs" />
|
<Compile Include="UserInterface\StatusIcon.cs" />
|
||||||
|
<Compile Include="UserInterface\UserInterface.cs" />
|
||||||
|
<Compile Include="UserInterface\UserInterfaceHelpers.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ProjectExtensions>
|
<ProjectExtensions>
|
||||||
<VisualStudio />
|
<VisualStudio />
|
||||||
|
@ -295,7 +283,7 @@
|
||||||
</Content>
|
</Content>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Page Include="Note.xaml">
|
<Page Include="UserInterface\Note.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
</Page>
|
</Page>
|
||||||
|
|
|
@ -37,7 +37,7 @@ namespace SparkleShare {
|
||||||
ResizeMode = ResizeMode.NoResize;
|
ResizeMode = ResizeMode.NoResize;
|
||||||
Height = 288;
|
Height = 288;
|
||||||
Width = 720;
|
Width = 720;
|
||||||
Icon = SparkleUIHelpers.GetImageSource("sparkleshare-app", "ico");
|
Icon = UserInterfaceHelpers.GetImageSource("sparkleshare-app", "ico");
|
||||||
|
|
||||||
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
||||||
Closing += Close;
|
Closing += Close;
|
||||||
|
@ -74,7 +74,7 @@ namespace SparkleShare {
|
||||||
Height = 260
|
Height = 260
|
||||||
};
|
};
|
||||||
|
|
||||||
image.Source = SparkleUIHelpers.GetImageSource ("about");
|
image.Source = UserInterfaceHelpers.GetImageSource ("about");
|
||||||
|
|
||||||
|
|
||||||
Label version = new Label () {
|
Label version = new Label () {
|
|
@ -63,22 +63,22 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public override string EventLogHTML {
|
public override string EventLogHTML {
|
||||||
get {
|
get {
|
||||||
string html = SparkleUIHelpers.GetHTML ("event-log.html");
|
string html = UserInterfaceHelpers.GetHTML ("event-log.html");
|
||||||
return html.Replace ("<!-- $jquery -->", SparkleUIHelpers.GetHTML ("jquery.js"));
|
return html.Replace ("<!-- $jquery -->", UserInterfaceHelpers.GetHTML ("jquery.js"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public override string DayEntryHTML {
|
public override string DayEntryHTML {
|
||||||
get {
|
get {
|
||||||
return SparkleUIHelpers.GetHTML ("day-entry.html");
|
return UserInterfaceHelpers.GetHTML ("day-entry.html");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public override string EventEntryHTML {
|
public override string EventEntryHTML {
|
||||||
get {
|
get {
|
||||||
return SparkleUIHelpers.GetHTML ("event-entry.html");
|
return UserInterfaceHelpers.GetHTML ("event-entry.html");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ namespace SparkleShare
|
||||||
|
|
||||||
Background = new SolidColorBrush(Color.FromRgb(240, 240, 240));
|
Background = new SolidColorBrush(Color.FromRgb(240, 240, 240));
|
||||||
AllowsTransparency = false;
|
AllowsTransparency = false;
|
||||||
Icon = SparkleUIHelpers.GetImageSource("sparkleshare-app", "ico");
|
Icon = UserInterfaceHelpers.GetImageSource("sparkleshare-app", "ico");
|
||||||
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
||||||
|
|
||||||
WriteOutImages();
|
WriteOutImages();
|
||||||
|
@ -308,7 +308,7 @@ namespace SparkleShare
|
||||||
File.SetAttributes(tmp_path, File.GetAttributes(tmp_path) | FileAttributes.Hidden);
|
File.SetAttributes(tmp_path, File.GetAttributes(tmp_path) | FileAttributes.Hidden);
|
||||||
}
|
}
|
||||||
|
|
||||||
BitmapSource image = SparkleUIHelpers.GetImageSource("user-icon-default");
|
BitmapSource image = UserInterfaceHelpers.GetImageSource("user-icon-default");
|
||||||
string file_path = System.IO.Path.Combine(pixmaps_path, "user-icon-default.png");
|
string file_path = System.IO.Path.Combine(pixmaps_path, "user-icon-default.png");
|
||||||
|
|
||||||
using (FileStream stream = new FileStream(file_path, FileMode.Create))
|
using (FileStream stream = new FileStream(file_path, FileMode.Create))
|
||||||
|
@ -322,7 +322,7 @@ namespace SparkleShare
|
||||||
|
|
||||||
foreach (string action in actions)
|
foreach (string action in actions)
|
||||||
{
|
{
|
||||||
image = SparkleUIHelpers.GetImageSource("document-" + action + "-12");
|
image = UserInterfaceHelpers.GetImageSource("document-" + action + "-12");
|
||||||
file_path = System.IO.Path.Combine(pixmaps_path, "document-" + action + "-12.png");
|
file_path = System.IO.Path.Combine(pixmaps_path, "document-" + action + "-12.png");
|
||||||
|
|
||||||
using (FileStream stream = new FileStream(file_path, FileMode.Create))
|
using (FileStream stream = new FileStream(file_path, FileMode.Create))
|
|
@ -38,7 +38,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
Background = new SolidColorBrush(Color.FromRgb(240, 240, 240));
|
Background = new SolidColorBrush(Color.FromRgb(240, 240, 240));
|
||||||
AllowsTransparency = false;
|
AllowsTransparency = false;
|
||||||
Icon = SparkleUIHelpers.GetImageSource("sparkleshare-app", "ico");
|
Icon = UserInterfaceHelpers.GetImageSource("sparkleshare-app", "ico");
|
||||||
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
WindowStartupLocation = WindowStartupLocation.CenterScreen;
|
||||||
|
|
||||||
Closing += this.OnClosing;
|
Closing += this.OnClosing;
|
||||||
|
@ -85,10 +85,10 @@ namespace SparkleShare {
|
||||||
|
|
||||||
private void CreateNote()
|
private void CreateNote()
|
||||||
{
|
{
|
||||||
ImageSource avatar = SparkleUIHelpers.GetImageSource("user-icon-default");
|
ImageSource avatar = UserInterfaceHelpers.GetImageSource("user-icon-default");
|
||||||
|
|
||||||
if (File.Exists (Controller.AvatarFilePath)) {
|
if (File.Exists (Controller.AvatarFilePath)) {
|
||||||
avatar = SparkleUIHelpers.GetImage (Controller.AvatarFilePath);
|
avatar = UserInterfaceHelpers.GetImage (Controller.AvatarFilePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.user_image.ImageSource = avatar;
|
this.user_image.ImageSource = avatar;
|
|
@ -49,7 +49,7 @@ namespace SparkleShare {
|
||||||
Height = 440;
|
Height = 440;
|
||||||
ResizeMode = ResizeMode.NoResize;
|
ResizeMode = ResizeMode.NoResize;
|
||||||
Background = new SolidColorBrush (Colors.WhiteSmoke);
|
Background = new SolidColorBrush (Colors.WhiteSmoke);
|
||||||
Icon = SparkleUIHelpers.GetImageSource ("sparkleshare-app", "ico");
|
Icon = UserInterfaceHelpers.GetImageSource ("sparkleshare-app", "ico");
|
||||||
|
|
||||||
TaskbarItemInfo = new TaskbarItemInfo () {
|
TaskbarItemInfo = new TaskbarItemInfo () {
|
||||||
Description = "SparkleShare"
|
Description = "SparkleShare"
|
||||||
|
@ -85,7 +85,7 @@ namespace SparkleShare {
|
||||||
Height = 482
|
Height = 482
|
||||||
};
|
};
|
||||||
|
|
||||||
this.side_splash.Source = SparkleUIHelpers.GetImageSource ("side-splash");
|
this.side_splash.Source = UserInterfaceHelpers.GetImageSource ("side-splash");
|
||||||
|
|
||||||
|
|
||||||
ContentCanvas.Children.Add (this.bar);
|
ContentCanvas.Children.Add (this.bar);
|
|
@ -40,7 +40,7 @@ namespace SparkleShare {
|
||||||
Height = size;
|
Height = size;
|
||||||
|
|
||||||
int current_frame = 0;
|
int current_frame = 0;
|
||||||
BitmapSource spinner_gallery = SparkleUIHelpers.GetImageSource ("process-working-22");
|
BitmapSource spinner_gallery = UserInterfaceHelpers.GetImageSource ("process-working-22");
|
||||||
int frames_in_width = spinner_gallery.PixelWidth / size;
|
int frames_in_width = spinner_gallery.PixelWidth / size;
|
||||||
int frames_in_height = spinner_gallery.PixelHeight / size;
|
int frames_in_height = spinner_gallery.PixelHeight / size;
|
||||||
int frame_count = (frames_in_width * frames_in_height) - 1;
|
int frame_count = (frames_in_width * frames_in_height) - 1;
|
|
@ -30,11 +30,11 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public StatusIconController Controller = new StatusIconController();
|
public StatusIconController Controller = new StatusIconController();
|
||||||
|
|
||||||
private readonly Drawing.Bitmap syncing_idle_image = SparkleUIHelpers.GetBitmap("process-syncing-idle");
|
private readonly Drawing.Bitmap syncing_idle_image = UserInterfaceHelpers.GetBitmap("process-syncing-idle");
|
||||||
private readonly Drawing.Bitmap syncing_up_image = SparkleUIHelpers.GetBitmap("process-syncing-up");
|
private readonly Drawing.Bitmap syncing_up_image = UserInterfaceHelpers.GetBitmap("process-syncing-up");
|
||||||
private readonly Drawing.Bitmap syncing_down_image = SparkleUIHelpers.GetBitmap("process-syncing-down");
|
private readonly Drawing.Bitmap syncing_down_image = UserInterfaceHelpers.GetBitmap("process-syncing-down");
|
||||||
private readonly Drawing.Bitmap syncing_image = SparkleUIHelpers.GetBitmap("process-syncing");
|
private readonly Drawing.Bitmap syncing_image = UserInterfaceHelpers.GetBitmap("process-syncing");
|
||||||
private readonly Drawing.Bitmap syncing_error_image = SparkleUIHelpers.GetBitmap("process-syncing-error");
|
private readonly Drawing.Bitmap syncing_error_image = UserInterfaceHelpers.GetBitmap("process-syncing-error");
|
||||||
|
|
||||||
private ContextMenu context_menu;
|
private ContextMenu context_menu;
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ namespace SparkleShare {
|
||||||
};
|
};
|
||||||
|
|
||||||
Image folder_image = new Image {
|
Image folder_image = new Image {
|
||||||
Source = SparkleUIHelpers.GetImageSource("sparkleshare-folder"),
|
Source = UserInterfaceHelpers.GetImageSource("sparkleshare-folder"),
|
||||||
Width = 16,
|
Width = 16,
|
||||||
Height = 16
|
Height = 16
|
||||||
};
|
};
|
||||||
|
@ -215,7 +215,7 @@ namespace SparkleShare {
|
||||||
SparkleMenuItem subfolder_item = new SparkleMenuItem {
|
SparkleMenuItem subfolder_item = new SparkleMenuItem {
|
||||||
Header = project.Name.Replace("_", "__"),
|
Header = project.Name.Replace("_", "__"),
|
||||||
Icon = new Image {
|
Icon = new Image {
|
||||||
Source = SparkleUIHelpers.GetImageSource("folder"),
|
Source = UserInterfaceHelpers.GetImageSource("folder"),
|
||||||
Width = 16,
|
Width = 16,
|
||||||
Height = 16
|
Height = 16
|
||||||
}
|
}
|
||||||
|
@ -233,7 +233,7 @@ namespace SparkleShare {
|
||||||
Header = "Open folder",
|
Header = "Open folder",
|
||||||
Icon = new Image
|
Icon = new Image
|
||||||
{
|
{
|
||||||
Source = SparkleUIHelpers.GetImageSource("folder"),
|
Source = UserInterfaceHelpers.GetImageSource("folder"),
|
||||||
Width = 16,
|
Width = 16,
|
||||||
Height = 16
|
Height = 16
|
||||||
}
|
}
|
|
@ -25,7 +25,7 @@ using Drawing = System.Drawing;
|
||||||
|
|
||||||
namespace SparkleShare {
|
namespace SparkleShare {
|
||||||
|
|
||||||
public static class SparkleUIHelpers {
|
public static class UserInterfaceHelpers {
|
||||||
|
|
||||||
public static string ToHex (this Drawing.Color color)
|
public static string ToHex (this Drawing.Color color)
|
||||||
{
|
{
|
Loading…
Reference in a new issue