Skip to content

Commit

Permalink
fix: Button sizes are inconsistent, and the LogOnly button is incorrect.
Browse files Browse the repository at this point in the history
  • Loading branch information
SakiRinn committed Feb 27, 2025
1 parent c122e74 commit 06b9cb0
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 51 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@


[assembly: AssemblyTitle("LiveCaptions Translator")]
[assembly: AssemblyVersion("1.1.1251.2620")]
[assembly: AssemblyFileVersion("1.1.1251.2620")]
[assembly: AssemblyVersion("1.2.1251.2716")]
[assembly: AssemblyFileVersion("1.2.1251.2716")]
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.tt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ using System.Reflection;
<#
var date = DateTime.Now;
int major = 1;
int minor = 1;
int minor = 2;
int build = int.Parse(date.ToString("yyMM")) / 2;
int revision = int.Parse(date.ToString("ddHH"));
#>
Expand Down
72 changes: 36 additions & 36 deletions src/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,42 +29,42 @@
<RowDefinition Height="*" />
</Grid.RowDefinitions>

<ui:TitleBar
Grid.Row="0"
Height="27"
ShowMaximize="False">
<ui:TitleBar.Header>
<ui:TextBlock Padding="15,0,0,0" VerticalAlignment="Center">LiveCaptionsTranslator</ui:TextBlock>
</ui:TitleBar.Header>
<ui:TitleBar.TrailingContent>
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
<ui:Button
x:Name="logOnly"
Margin="0,0,5,0"
Appearance="Transparent"
Click="LogOnly_OnClickButton_Click"
Icon="{ui:SymbolIcon Pause24,
Filled=False}"
ToolTip="Pause Translation" />
<ui:Button
x:Name="overlaySubtitleMode"
Margin="0,0,5,0"
Appearance="Transparent"
Click="OverlaySubtitleModeButton_Click"
Icon="{ui:SymbolIcon WindowNew16,
Filled=False}"
ToolTip="Overlay Translate Mode" />
<ui:Button
x:Name="topmost"
Margin="0,0,5,0"
Appearance="Transparent"
Click="TopmostButton_Click"
Icon="{ui:SymbolIcon Pin24,
Filled=True}"
ToolTip="Always On Top" />
</StackPanel>
</ui:TitleBar.TrailingContent>
</ui:TitleBar>
<ui:TitleBar
Grid.Row="0"
Height="27"
ShowMaximize="False">
<ui:TitleBar.Header>
<ui:TextBlock Padding="15,0,0,0" VerticalAlignment="Center">LiveCaptionsTranslator</ui:TextBlock>
</ui:TitleBar.Header>
<ui:TitleBar.TrailingContent>
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
<ui:Button
x:Name="logOnly"
Margin="0,0,5,0"
Appearance="Transparent"
Click="LogOnly_OnClickButton_Click"
Icon="{ui:SymbolIcon Pause16,
Filled=False}"
ToolTip="Pause Translation" />
<ui:Button
x:Name="overlaySubtitleMode"
Margin="0,0,5,0"
Appearance="Transparent"
Click="OverlaySubtitleModeButton_Click"
Icon="{ui:SymbolIcon WindowNew16,
Filled=False}"
ToolTip="Overlay Translate Mode" />
<ui:Button
x:Name="topmost"
Margin="0,0,5,0"
Appearance="Transparent"
Click="TopmostButton_Click"
Icon="{ui:SymbolIcon Pin16,
Filled=True}"
ToolTip="Always On Top" />
</StackPanel>
</ui:TitleBar.TrailingContent>
</ui:TitleBar>

<ui:NavigationView
x:Name="RootNavigation"
Expand Down
19 changes: 7 additions & 12 deletions src/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,13 @@ private void LogOnly_OnClickButton_Click(object sender, RoutedEventArgs e)

if (isLogOnlyEnabled)
{
if (isLogonlyEnabled)
{
icon.Symbol = SymbolRegular.TextGrammarWand24;
App.Captions.LogonlyFlag = false;
}
else
{
icon.Symbol = SymbolRegular.TextGrammarArrowLeft24;
App.Captions.LogonlyFlag = true;
}

isLogonlyEnabled = !isLogonlyEnabled;
App.Captions.LogOnlyFlag = false;
symbolIcon.Filled = false;
}
else
{
App.Captions.LogOnlyFlag = true;
symbolIcon.Filled = true;
}
isLogOnlyEnabled = !isLogOnlyEnabled;
}
Expand Down

0 comments on commit 06b9cb0

Please sign in to comment.