Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
trackiss committed Dec 12, 2019
0 parents commit 1fcf652
Show file tree
Hide file tree
Showing 11 changed files with 443 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.vs/
bin/
obj/
13 changes: 13 additions & 0 deletions App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Application x:Class="DentakuCore.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:DentakuCore"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FluentWPF;component/Styles/Controls.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace DentakuCore
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
19 changes: 19 additions & 0 deletions DentakuCore.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.0</TargetFramework>
<UseWPF>true</UseWPF>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>none</DebugType>
<DebugSymbols>false</DebugSymbols>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentWPF.Core.Alpha" Version="1.0.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="3.3.1" />
</ItemGroup>

</Project>
14 changes: 14 additions & 0 deletions DentakuCore.csproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<ItemGroup>
<ApplicationDefinition Update="App.xaml">
<SubType>Designer</SubType>
</ApplicationDefinition>
</ItemGroup>
<ItemGroup>
<Page Update="MainWindow.xaml">
<SubType>Designer</SubType>
</Page>
</ItemGroup>
</Project>
25 changes: 25 additions & 0 deletions DentakuCore.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29424.173
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DentakuCore", "DentakuCore.csproj", "{8B1BEBB3-622E-4F41-A4E8-BA27D9F09CAF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8B1BEBB3-622E-4F41-A4E8-BA27D9F09CAF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8B1BEBB3-622E-4F41-A4E8-BA27D9F09CAF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8B1BEBB3-622E-4F41-A4E8-BA27D9F09CAF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8B1BEBB3-622E-4F41-A4E8-BA27D9F09CAF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {41D2D4AA-D01A-485C-8AE6-6425EB2B7247}
EndGlobalSection
EndGlobal
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 trackiss

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
59 changes: 59 additions & 0 deletions MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<fw:AcrylicWindow x:Class="DentakuCore.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:fw="clr-namespace:SourceChord.FluentWPF;assembly=FluentWPF"
xmlns:local="clr-namespace:DentakuCore"
mc:Ignorable="d"
Title="Calculator" Height="460" Width="340" MinHeight="460" MinWidth="340"
Foreground="Transparent" Background="{DynamicResource SystemBaseLowColorBrush}"
AcrylicWindowStyle="NoIcon" TintOpacity="0.7" >
<Grid>
<Label x:Name="Display" Content="Label" FontSize="48" Margin="0,22,0,345" Foreground="{DynamicResource SystemBaseHighColorBrush}" HorizontalContentAlignment="Right" FontFamily="Verdana"/>
<Label Name="SubDisplay" Content="Label" FontSize="16" Margin="0,0,0,400" Foreground="{DynamicResource SystemBaseMediumLowColorBrush}" HorizontalContentAlignment="Right" FontFamily="Verdana"/>
<Grid fw:PointerTracker.Enabled="True" Background="#01FFFFFF" Margin="0,104,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Button Grid.Row="0" Grid.Column="0" Content="CE" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemBaseLowColorBrush}" Click="ButtonCE_Click" FontSize="22"/>
<Button Grid.Row="0" Grid.Column="1" Content="C" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemBaseLowColorBrush}" Click="ButtonC_Click" FontSize="22"/>
<Button Grid.Row="0" Grid.Column="2" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemBaseLowColorBrush}" Click="ButtonBackspace_Click" FontSize="22">
<TextBlock Text="&#xE750;" FontFamily="Segoe MDL2 Assets"></TextBlock>
</Button>
<Button Grid.Row="0" Grid.Column="3" Content="÷" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemBaseLowColorBrush}" Click="ButtonDivide_Click" FontSize="22"/>

<Button Grid.Row="1" Grid.Column="0" Content="7" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemAltHighColorBrush}" Click="ButtonNumber_Click" FontSize="22" FontFamily="Verdana"/>
<Button Grid.Row="1" Grid.Column="1" Content="8" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemAltHighColorBrush}" Click="ButtonNumber_Click" FontSize="22" FontFamily="Verdana"/>
<Button Grid.Row="1" Grid.Column="2" Content="9" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemAltHighColorBrush}" Click="ButtonNumber_Click" FontSize="22" FontFamily="Verdana"/>
<Button Grid.Row="1" Grid.Column="3" Content="×" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemBaseLowColorBrush}" Click="ButtonMulti_Click" FontSize="22"/>

<Button Grid.Row="2" Grid.Column="0" Content="4" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemAltHighColorBrush}" Click="ButtonNumber_Click" FontSize="22" FontFamily="Verdana"/>
<Button Grid.Row="2" Grid.Column="1" Content="5" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemAltHighColorBrush}" Click="ButtonNumber_Click" FontSize="22" FontFamily="Verdana"/>
<Button Grid.Row="2" Grid.Column="2" Content="6" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemAltHighColorBrush}" Click="ButtonNumber_Click" FontSize="22" FontFamily="Verdana"/>
<Button Grid.Row="2" Grid.Column="3" Content="-" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemBaseLowColorBrush}" Click="ButtonSub_Click" FontSize="22"/>

<Button Grid.Row="3" Grid.Column="0" Content="1" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemAltHighColorBrush}" Click="ButtonNumber_Click" FontSize="22" FontFamily="Verdana"/>
<Button Grid.Row="3" Grid.Column="1" Content="2" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemAltHighColorBrush}" Click="ButtonNumber_Click" FontSize="22" FontFamily="Verdana"/>
<Button Grid.Row="3" Grid.Column="2" Content="3" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemAltHighColorBrush}" Click="ButtonNumber_Click" FontSize="22" FontFamily="Verdana"/>
<Button Grid.Row="3" Grid.Column="3" Content="+" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemBaseLowColorBrush}" Click="ButtonAdd_Click" FontSize="22"/>

<Button Grid.Row="4" Grid.Column="0" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemBaseLowColorBrush}" Click="ButtonInvert_Click" FontSize="22" FontFamily="Verdana">
<TextBlock Text="+/-" Foreground="White" FontFamily="Segoe UI Symbol"></TextBlock>
</Button>
<Button Grid.Row="4" Grid.Column="1" Content="0" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemAltHighColorBrush}" Click="ButtonNumber_Click" FontSize="22" FontFamily="Verdana"/>
<Button Grid.Row="4" Grid.Column="2" Content="." Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemBaseLowColorBrush}" Click="ButtonPoint_Click" FontSize="22" FontFamily="Segoe UI Symbol"/>
<Button Grid.Row="4" Grid.Column="3" Content="=" Margin="1,1,1,1" Style="{StaticResource ButtonRevealStyle}" Foreground="{DynamicResource SystemBaseHighColorBrush}" Background="{DynamicResource SystemBaseLowColorBrush}" Click="ButtonEnter_Click" FontSize="22"/>
</Grid>
</Grid>
</fw:AcrylicWindow>
Loading

0 comments on commit 1fcf652

Please sign in to comment.