Skip to content

Commit d59786b

Browse files
feat: remove titlebar
This isn't needed anymore. I'm guessing that it's a windows 10 issue that the titlebar didn't have a dark mode variant that caused us to add this to begin with.
1 parent 85b0edb commit d59786b

File tree

6 files changed

+2
-288
lines changed

6 files changed

+2
-288
lines changed

src/TwitchStreamingTools/TwitchStreamingTools.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@
7878
<DependentUpon>MainWindow.axaml</DependentUpon>
7979
<SubType>Code</SubType>
8080
</Compile>
81-
<Compile Update="Views\WindowsTitleBar.axaml.cs">
82-
<DependentUpon>WindowsTitleBar.axaml</DependentUpon>
83-
<SubType>Code</SubType>
84-
</Compile>
8581
<Compile Update="Views\Pages\PageViewBase.axaml.cs">
8682
<DependentUpon>PageViewBase.axaml</DependentUpon>
8783
<SubType>Code</SubType>

src/TwitchStreamingTools/Views/MainWindow.axaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
55
xmlns:viewModels="clr-namespace:TwitchStreamingTools.ViewModels"
66
xmlns:m="clr-namespace:TwitchStreamingTools.Models"
7-
xmlns:views="clr-namespace:TwitchStreamingTools.Views"
87
xmlns:controls="clr-namespace:TwitchStreamingTools.Controls"
98
mc:Ignorable="d"
109
d:DesignWidth="475"
@@ -15,9 +14,6 @@
1514
Height="650"
1615
CanResize="True"
1716
WindowStartupLocation="CenterScreen"
18-
ExtendClientAreaToDecorationsHint="True"
19-
ExtendClientAreaChromeHints="NoChrome"
20-
ExtendClientAreaTitleBarHeightHint="-1"
2117
x:Class="TwitchStreamingTools.Views.MainWindow"
2218
x:DataType="viewModels:MainWindowViewModel"
2319
Icon="/Assets/logo.ico"
@@ -59,7 +55,6 @@
5955
<DockPanel HorizontalAlignment="Stretch"
6056
VerticalAlignment="Stretch"
6157
Name="ContentWrapper">
62-
<views:WindowsTitleBar IsSeamless="True" />
6358
<!-- The Application is Currently Updating and Not Usable!: This must come first because the final item always fills. -->
6459
<DockPanel Background="Transparent" DockPanel.Dock="Top" IsVisible="{Binding IsUpdating}">
6560
<StackPanel>

src/TwitchStreamingTools/Views/NewVersionWindow.axaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@
33
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
55
xmlns:viewModels="clr-namespace:TwitchStreamingTools.ViewModels"
6-
xmlns:views="clr-namespace:TwitchStreamingTools.Views"
76
xmlns:controls="clr-namespace:TwitchStreamingTools.Controls"
87
x:Name="Window"
98
mc:Ignorable="d" d:DesignWidth="500" d:DesignHeight="450"
109
x:Class="TwitchStreamingTools.Views.NewVersionWindow"
1110
x:DataType="viewModels:NewVersionWindowViewModel"
1211
WindowStartupLocation="CenterOwner"
13-
ExtendClientAreaToDecorationsHint="True"
14-
ExtendClientAreaChromeHints="NoChrome"
15-
ExtendClientAreaTitleBarHeightHint="-1"
1612
SizeToContent="WidthAndHeight"
1713
Icon="/Assets/update.png"
1814
Title="New Version Available"
@@ -24,7 +20,6 @@
2420
<DockPanel HorizontalAlignment="Stretch"
2521
VerticalAlignment="Stretch"
2622
Name="ContentWrapper">
27-
<views:WindowsTitleBar IsSeamless="True" />
2823
<StackPanel>
2924
<!-- The normal panel -->
3025
<StackPanel Margin="10" IsVisible="{Binding !IsUpdating}">

src/TwitchStreamingTools/Views/Pages/AccountView.axaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
</Button>
3636
<StackPanel IsVisible="{Binding HasValidOAuthToken}" Spacing="5">
3737
<controls:Loading IsVisible="{Binding DownloadingProfileImage}" Width="75" Height="75" />
38-
<Border CornerRadius="75" Width="150" ClipToBounds="True" IsVisible="{Binding !DownloadingProfileImage}">
38+
<Border CornerRadius="75" Width="150" ClipToBounds="True"
39+
IsVisible="{Binding !DownloadingProfileImage}">
3940
<Image Source="{Binding ProfileImage}" />
4041
</Border>
4142
<Grid>

src/TwitchStreamingTools/Views/WindowsTitleBar.axaml

Lines changed: 0 additions & 128 deletions
This file was deleted.

src/TwitchStreamingTools/Views/WindowsTitleBar.axaml.cs

Lines changed: 0 additions & 145 deletions
This file was deleted.

0 commit comments

Comments
 (0)