Skip to content

Commit

Permalink
Removed image which was taking up larger size of binary & added logic…
Browse files Browse the repository at this point in the history
… to move focus back to inputbox once message is submitted.
  • Loading branch information
rtshiva committed Dec 17, 2022
1 parent 2309aab commit 09091bb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 2 additions & 0 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public MainWindow()
private void pushMe_Click(object sender, RoutedEventArgs e)
{
PushText(sender, e, false);
InputBox.Focus();
}

private void PushText(object sender, RoutedEventArgs e, bool LeftMessage)
Expand Down Expand Up @@ -89,6 +90,7 @@ private void MouseClick_handler(object sender, MouseButtonEventArgs e)
private void pushOtherMe_Click(object sender, RoutedEventArgs e)
{
PushText(sender, e, true);
InputBox.Focus();
}

private void keydown_handler(object sender, KeyEventArgs e)
Expand Down
17 changes: 15 additions & 2 deletions Monologue.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,33 @@
<TargetFramework>net7.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<PackageIcon>icon_talk80.png</PackageIcon>
<ApplicationIcon>icon_talk80.ico</ApplicationIcon>
</PropertyGroup>

<ItemGroup>
<None Remove="background.jpeg" />
<None Remove="brickwall.jpeg" />
<None Remove="icon_talk80.png" />
<None Remove="icon_talk80.ico" />
<None Remove="red_velvet_background.jpeg" />
</ItemGroup>

<ItemGroup>
<Content Include="icon_talk80.ico" />
</ItemGroup>

<ItemGroup>
<Resource Include="background.jpeg" />
<Resource Include="brickwall.jpeg" />
<Resource Include="icon_talk80.ico" />
<Resource Include="icon_talk80.png" />
<Resource Include="red_velvet_background.jpeg" />
</ItemGroup>

<ItemGroup>
<None Update="icon_talk80.png">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

</Project>
Binary file removed brickwall.jpeg
Binary file not shown.
Binary file added icon_talk80.ico
Binary file not shown.

0 comments on commit 09091bb

Please sign in to comment.