Skip to content

Commit b2f70e1

Browse files
committed
Preparation for release. Many done. I'm too lazy to describe xD
1 parent 34091c3 commit b2f70e1

20 files changed

+689
-23
lines changed

LightDE.SidePanel/App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
5+
</startup>
6+
</configuration>

LightDE.SidePanel/App.xaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<Application x:Class="LightDE.SidePanel.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:LightDE.SidePanel"
5+
StartupUri="MainWindow.xaml">
6+
<Application.Resources>
7+
<ResourceDictionary>
8+
9+
<ResourceDictionary.MergedDictionaries>
10+
11+
12+
<!-- Material Design -->
13+
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
14+
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
15+
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Lime.xaml" />
16+
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" />
17+
18+
</ResourceDictionary.MergedDictionaries>
19+
20+
21+
<!-- MahApps Brushes -->
22+
<SolidColorBrush x:Key="HighlightBrush" Color="{DynamicResource Primary700}"/>
23+
<SolidColorBrush x:Key="AccentColorBrush" Color="{DynamicResource Primary500}"/>
24+
<SolidColorBrush x:Key="AccentColorBrush2" Color="{DynamicResource Primary400}"/>
25+
<SolidColorBrush x:Key="AccentColorBrush3" Color="{DynamicResource Primary300}"/>
26+
<SolidColorBrush x:Key="AccentColorBrush4" Color="{DynamicResource Primary200}"/>
27+
<SolidColorBrush x:Key="WindowTitleColorBrush" Color="{DynamicResource Primary700}"/>
28+
<SolidColorBrush x:Key="AccentSelectedColorBrush" Color="{DynamicResource Primary500Foreground}"/>
29+
<LinearGradientBrush x:Key="ProgressBrush" EndPoint="0.001,0.5" StartPoint="1.002,0.5">
30+
<GradientStop Color="{DynamicResource Primary700}" Offset="0"/>
31+
<GradientStop Color="{DynamicResource Primary300}" Offset="1"/>
32+
</LinearGradientBrush>
33+
<SolidColorBrush x:Key="CheckmarkFill" Color="{DynamicResource Primary500}"/>
34+
<SolidColorBrush x:Key="RightArrowFill" Color="{DynamicResource Primary500}"/>
35+
<SolidColorBrush x:Key="IdealForegroundColorBrush" Color="{DynamicResource Primary500Foreground}"/>
36+
<SolidColorBrush x:Key="IdealForegroundDisabledBrush" Color="{DynamicResource Primary500}" Opacity="0.4"/>
37+
38+
</ResourceDictionary>
39+
</Application.Resources>
40+
</Application>

LightDE.SidePanel/App.xaml.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Threading.Tasks;
7+
using System.Windows;
8+
9+
namespace LightDE.SidePanel
10+
{
11+
/// <summary>
12+
/// Interaction logic for App.xaml
13+
/// </summary>
14+
public partial class App : Application
15+
{
16+
}
17+
}
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{0CD18339-0149-4E1C-8175-92247F3812D5}</ProjectGuid>
8+
<OutputType>WinExe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>LightDE.SidePanel</RootNamespace>
11+
<AssemblyName>LightDE.SidePanel</AssemblyName>
12+
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
15+
<WarningLevel>4</WarningLevel>
16+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
17+
</PropertyGroup>
18+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19+
<PlatformTarget>AnyCPU</PlatformTarget>
20+
<DebugSymbols>true</DebugSymbols>
21+
<DebugType>full</DebugType>
22+
<Optimize>false</Optimize>
23+
<OutputPath>bin\Debug\</OutputPath>
24+
<DefineConstants>DEBUG;TRACE</DefineConstants>
25+
<ErrorReport>prompt</ErrorReport>
26+
<WarningLevel>4</WarningLevel>
27+
</PropertyGroup>
28+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
29+
<PlatformTarget>AnyCPU</PlatformTarget>
30+
<DebugType>pdbonly</DebugType>
31+
<Optimize>true</Optimize>
32+
<OutputPath>bin\Release\</OutputPath>
33+
<DefineConstants>TRACE</DefineConstants>
34+
<ErrorReport>prompt</ErrorReport>
35+
<WarningLevel>4</WarningLevel>
36+
</PropertyGroup>
37+
<ItemGroup>
38+
<Reference Include="MaterialDesignColors, Version=1.1.2.0, Culture=neutral, processorArchitecture=MSIL">
39+
<HintPath>..\packages\MaterialDesignColors.1.1.2\lib\net45\MaterialDesignColors.dll</HintPath>
40+
<Private>True</Private>
41+
</Reference>
42+
<Reference Include="MaterialDesignThemes.Wpf, Version=2.3.0.823, Culture=neutral, processorArchitecture=MSIL">
43+
<HintPath>..\packages\MaterialDesignThemes.2.3.0.823\lib\net45\MaterialDesignThemes.Wpf.dll</HintPath>
44+
<Private>True</Private>
45+
</Reference>
46+
<Reference Include="System" />
47+
<Reference Include="System.Data" />
48+
<Reference Include="System.Xml" />
49+
<Reference Include="Microsoft.CSharp" />
50+
<Reference Include="System.Core" />
51+
<Reference Include="System.Xml.Linq" />
52+
<Reference Include="System.Data.DataSetExtensions" />
53+
<Reference Include="System.Net.Http" />
54+
<Reference Include="System.Xaml">
55+
<RequiredTargetFramework>4.0</RequiredTargetFramework>
56+
</Reference>
57+
<Reference Include="WindowsBase" />
58+
<Reference Include="PresentationCore" />
59+
<Reference Include="PresentationFramework" />
60+
</ItemGroup>
61+
<ItemGroup>
62+
<ApplicationDefinition Include="App.xaml">
63+
<Generator>MSBuild:Compile</Generator>
64+
<SubType>Designer</SubType>
65+
</ApplicationDefinition>
66+
<Page Include="MainWindow.xaml">
67+
<Generator>MSBuild:Compile</Generator>
68+
<SubType>Designer</SubType>
69+
</Page>
70+
<Compile Include="App.xaml.cs">
71+
<DependentUpon>App.xaml</DependentUpon>
72+
<SubType>Code</SubType>
73+
</Compile>
74+
<Compile Include="MainWindow.xaml.cs">
75+
<DependentUpon>MainWindow.xaml</DependentUpon>
76+
<SubType>Code</SubType>
77+
</Compile>
78+
</ItemGroup>
79+
<ItemGroup>
80+
<Compile Include="Properties\AssemblyInfo.cs">
81+
<SubType>Code</SubType>
82+
</Compile>
83+
<Compile Include="Properties\Resources.Designer.cs">
84+
<AutoGen>True</AutoGen>
85+
<DesignTime>True</DesignTime>
86+
<DependentUpon>Resources.resx</DependentUpon>
87+
</Compile>
88+
<Compile Include="Properties\Settings.Designer.cs">
89+
<AutoGen>True</AutoGen>
90+
<DependentUpon>Settings.settings</DependentUpon>
91+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
92+
</Compile>
93+
<EmbeddedResource Include="Properties\Resources.resx">
94+
<Generator>ResXFileCodeGenerator</Generator>
95+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
96+
</EmbeddedResource>
97+
<None Include="packages.config" />
98+
<None Include="Properties\Settings.settings">
99+
<Generator>SettingsSingleFileGenerator</Generator>
100+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
101+
</None>
102+
<AppDesigner Include="Properties\" />
103+
</ItemGroup>
104+
<ItemGroup>
105+
<None Include="App.config" />
106+
</ItemGroup>
107+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
108+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
109+
Other similar extension points exist, see Microsoft.Common.targets.
110+
<Target Name="BeforeBuild">
111+
</Target>
112+
<Target Name="AfterBuild">
113+
</Target>
114+
-->
115+
</Project>

LightDE.SidePanel/MainWindow.xaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<Window x:Class="LightDE.SidePanel.MainWindow"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6+
xmlns:local="clr-namespace:LightDE.SidePanel"
7+
xmlns:material="http://materialdesigninxaml.net/winfx/xaml/themes"
8+
Title="MainWindow" Width="500" WindowStyle="None"
9+
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
10+
TextElement.FontWeight="Regular"
11+
TextElement.FontSize="13"
12+
TextOptions.TextFormattingMode="Ideal"
13+
TextOptions.TextRenderingMode="Auto"
14+
Background="{DynamicResource MaterialDesignPaper}"
15+
BorderBrush="Transparent" ShowInTaskbar="False" MouseLeave="Window_MouseLeave" KeyDown="Window_KeyDown" Deactivated="Window_Deactivated">
16+
<Window.Resources>
17+
<ResourceDictionary>
18+
<ResourceDictionary.MergedDictionaries>
19+
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBox.xaml" />
20+
21+
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Button.xaml" />
22+
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Shadows.xaml" />
23+
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ToggleButton.xaml" />
24+
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.ListBox.xaml" />
25+
26+
</ResourceDictionary.MergedDictionaries>
27+
<Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource MaterialDesignTextBox}">
28+
<Setter Property="Margin" Value="0 8 0 8" />
29+
</Style>
30+
31+
</ResourceDictionary>
32+
</Window.Resources>
33+
<Window.Triggers>
34+
<EventTrigger RoutedEvent="Window.Loaded">
35+
<BeginStoryboard>
36+
<Storyboard >
37+
<DoubleAnimation x:Name="animationshow" Duration="0:0:.8" Storyboard.TargetProperty="Left" From="500" To="0" AccelerationRatio=".1"/>
38+
</Storyboard>
39+
</BeginStoryboard>
40+
</EventTrigger>
41+
<EventTrigger RoutedEvent="Window.MouseLeave">
42+
<BeginStoryboard>
43+
<Storyboard >
44+
<DoubleAnimation x:Name="animationclose" Duration="0:0:.4" Storyboard.TargetProperty="Top" From="500" To="0" AccelerationRatio=".1"/>
45+
</Storyboard>
46+
</BeginStoryboard>
47+
</EventTrigger>
48+
</Window.Triggers>
49+
<StackPanel Orientation="Vertical">
50+
<StackPanel Orientation="Horizontal">
51+
<material:MaterialDateDisplay/>
52+
</StackPanel>
53+
<material:Clock Margin="106,0" Width="Auto"/>
54+
55+
</StackPanel>
56+
</Window>

LightDE.SidePanel/MainWindow.xaml.cs

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
using System.Windows;
7+
using System.Windows.Controls;
8+
using System.Windows.Data;
9+
using System.Windows.Documents;
10+
using System.Windows.Input;
11+
using System.Windows.Media;
12+
using System.Windows.Media.Imaging;
13+
using System.Windows.Navigation;
14+
using System.Windows.Shapes;
15+
16+
namespace LightDE.SidePanel
17+
{
18+
/// <summary>
19+
/// Interaction logic for MainWindow.xaml
20+
/// </summary>
21+
public partial class MainWindow : Window
22+
{
23+
public MainWindow()
24+
{
25+
InitializeComponent();
26+
animationshow.From = System.Windows.SystemParameters.FullPrimaryScreenWidth;
27+
animationshow.To = System.Windows.SystemParameters.FullPrimaryScreenWidth -495;
28+
29+
Left = System.Windows.SystemParameters.FullPrimaryScreenWidth - 495;
30+
Height = System.Windows.SystemParameters.FullPrimaryScreenHeight - 30;
31+
Top = 30;
32+
}
33+
34+
private void Window_Deactivated(object sender, EventArgs e)
35+
{
36+
Hide();
37+
}
38+
39+
private void Window_KeyDown(object sender, KeyEventArgs e)
40+
{
41+
42+
}
43+
44+
private void Window_MouseLeave(object sender, MouseEventArgs e)
45+
{
46+
47+
}
48+
}
49+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
using System.Reflection;
2+
using System.Resources;
3+
using System.Runtime.CompilerServices;
4+
using System.Runtime.InteropServices;
5+
using System.Windows;
6+
7+
// General Information about an assembly is controlled through the following
8+
// set of attributes. Change these attribute values to modify the information
9+
// associated with an assembly.
10+
[assembly: AssemblyTitle("LightDE.SidePanel")]
11+
[assembly: AssemblyDescription("")]
12+
[assembly: AssemblyConfiguration("")]
13+
[assembly: AssemblyCompany("")]
14+
[assembly: AssemblyProduct("LightDE.SidePanel")]
15+
[assembly: AssemblyCopyright("Copyright © 2017")]
16+
[assembly: AssemblyTrademark("")]
17+
[assembly: AssemblyCulture("")]
18+
19+
// Setting ComVisible to false makes the types in this assembly not visible
20+
// to COM components. If you need to access a type in this assembly from
21+
// COM, set the ComVisible attribute to true on that type.
22+
[assembly: ComVisible(false)]
23+
24+
//In order to begin building localizable applications, set
25+
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
26+
//inside a <PropertyGroup>. For example, if you are using US english
27+
//in your source files, set the <UICulture> to en-US. Then uncomment
28+
//the NeutralResourceLanguage attribute below. Update the "en-US" in
29+
//the line below to match the UICulture setting in the project file.
30+
31+
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32+
33+
34+
[assembly: ThemeInfo(
35+
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36+
//(used if a resource is not found in the page,
37+
// or application resource dictionaries)
38+
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39+
//(used if a resource is not found in the page,
40+
// app, or any theme specific resource dictionaries)
41+
)]
42+
43+
44+
// Version information for an assembly consists of the following four values:
45+
//
46+
// Major Version
47+
// Minor Version
48+
// Build Number
49+
// Revision
50+
//
51+
// You can specify all the values or you can default the Build and Revision Numbers
52+
// by using the '*' as shown below:
53+
// [assembly: AssemblyVersion("1.0.*")]
54+
[assembly: AssemblyVersion("1.0.0.0")]
55+
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)