Skip to content

Commit 94efb0c

Browse files
committed
keyboard shortcuts and design update
now a full minimalistic .txt editor
1 parent 93de226 commit 94efb0c

File tree

5 files changed

+38
-13
lines changed

5 files changed

+38
-13
lines changed

Coder/Coder/Coder.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
<FileAlignment>512</FileAlignment>
1818
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1919
<WindowsXamlEnableOverview>true</WindowsXamlEnableOverview>
20-
<PackageCertificateKeyFile>Coder_TemporaryKey.pfx</PackageCertificateKeyFile>
20+
<PackageCertificateKeyFile>Coder_StoreKey.pfx</PackageCertificateKeyFile>
21+
<PackageCertificateThumbprint>9EE81E5A62930F6380B22439C7341DF0AD48F362</PackageCertificateThumbprint>
22+
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
23+
<AppxBundle>Always</AppxBundle>
24+
<AppxBundlePlatforms>x86|x64|arm</AppxBundlePlatforms>
2125
</PropertyGroup>
2226
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
2327
<DebugSymbols>true</DebugSymbols>
@@ -105,6 +109,7 @@
105109
<AppxManifest Include="Package.appxmanifest">
106110
<SubType>Designer</SubType>
107111
</AppxManifest>
112+
<None Include="Coder_StoreKey.pfx" />
108113
<None Include="Coder_TemporaryKey.pfx" />
109114
</ItemGroup>
110115
<ItemGroup>
@@ -153,6 +158,7 @@
153158
<Content Include="Assets\Wide310x150Logo.scale-125.png" />
154159
<Content Include="Assets\Wide310x150Logo.scale-150.png" />
155160
<Content Include="Assets\Wide310x150Logo.scale-400.png" />
161+
<None Include="Package.StoreAssociation.xml" />
156162
<Content Include="Properties\Default.rd.xml" />
157163
<Content Include="Assets\LockScreenLogo.scale-200.png" />
158164
<Content Include="Assets\SplashScreen.scale-200.png" />

Coder/Coder/Library.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public async Task<bool> Confirm(string content, string title, string ok, string
2121

2222
public async void New(TextBox display)
2323
{
24-
if (await Confirm("Create New Document?", "Text Editor", "Yes", "No"))
24+
if (await Confirm("Create New Document?", "Codetext", "Yes", "No"))
2525
{
2626
display.Text = string.Empty;
2727
}

Coder/Coder/MainPage.xaml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,33 @@
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
88
mc:Ignorable="d">
99
<Page.BottomAppBar>
10-
<AppBar IsOpen="True" IsSticky="True">
10+
<AppBar IsOpen="True" IsSticky="True" Background="Transparent">
1111
<StackPanel Orientation="Horizontal">
12-
<AppBarButton Name="New" Icon="Page" Label="New" Click="New_Click"/>
13-
<AppBarButton Name="Open" Icon="Folder" Label="Open" Click="Open_Click"/>
14-
<AppBarButton Name="Save" Icon="Save" Label="Save" Click="Save_Click"/>
12+
<AppBarButton Name="New" Icon="Page" Label="New" Click="New_Click">
13+
<AppBarButton.KeyboardAccelerators>
14+
<KeyboardAccelerator
15+
Modifiers="Control"
16+
Key="N" />
17+
</AppBarButton.KeyboardAccelerators>
18+
</AppBarButton>
19+
<AppBarButton Name="Open" Icon="Folder" Label="Open" Click="Open_Click">
20+
<AppBarButton.KeyboardAccelerators>
21+
<KeyboardAccelerator
22+
Modifiers="Control"
23+
Key="O" />
24+
</AppBarButton.KeyboardAccelerators>
25+
</AppBarButton>
26+
<AppBarButton Name="Save" Icon="Save" Label="Save" Click="Save_Click">
27+
<AppBarButton.KeyboardAccelerators>
28+
<KeyboardAccelerator
29+
Modifiers="Control"
30+
Key="S" />
31+
</AppBarButton.KeyboardAccelerators>
32+
</AppBarButton>
1533
</StackPanel>
1634
</AppBar>
1735
</Page.BottomAppBar>
18-
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
19-
<TextBox Name="Display" AcceptsReturn="True" TextWrapping="Wrap" VerticalAlignment="Stretch"/>
36+
<Grid Background="White" >
37+
<TextBox Name="Display" AcceptsReturn="True" TextWrapping="Wrap" VerticalAlignment="Stretch" FontSize="20" Width="800" BorderBrush="White" BorderThickness="0"/>
2038
</Grid>
2139
</Page>

Coder/Coder/MainPage.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ namespace Coder
1818
/// <summary>
1919
/// Coder, a coding program
2020
/// </summary>
21+
///
2122
public sealed partial class MainPage : Page
2223
{
2324
public MainPage()

Coder/Coder/package.appxmanifest

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
3-
<Identity Name="5eaf7c5c-d8ca-4c21-b125-da640fc53d2f" Publisher="CN=jansc" Version="1.0.0.0" />
4-
<mp:PhoneIdentity PhoneProductId="5eaf7c5c-d8ca-4c21-b125-da640fc53d2f" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
3+
<Identity Name="21595JanPatrick.Codetext" Publisher="CN=BA624AF2-A2EC-4181-B8CC-439AB4359A21" Version="1.1.0.0" />
4+
<mp:PhoneIdentity PhoneProductId="99e9c4e9-640b-45f9-aa30-9db500fe7060" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
55
<Properties>
6-
<DisplayName>Coder</DisplayName>
7-
<PublisherDisplayName>jansc</PublisherDisplayName>
6+
<DisplayName>Codetext</DisplayName>
7+
<PublisherDisplayName>Jan Patrick</PublisherDisplayName>
88
<Logo>Assets\StoreLogo.png</Logo>
99
</Properties>
1010
<Dependencies>
@@ -15,7 +15,7 @@
1515
</Resources>
1616
<Applications>
1717
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Coder.App">
18-
<uap:VisualElements DisplayName="Coder" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Coder" BackgroundColor="transparent">
18+
<uap:VisualElements DisplayName="Codetext" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Coder" BackgroundColor="transparent">
1919
<uap:LockScreen Notification="badge" BadgeLogo="Assets\BadgeLogo.png" />
2020
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" Square310x310Logo="Assets\LargeTile.png" Square71x71Logo="Assets\SmallTile.png">
2121
</uap:DefaultTile>

0 commit comments

Comments
 (0)