mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-06-11 15:04:58 +12:00
Made window 1280x720 excluding chrome
This commit is contained in:
parent
92e8fcf77b
commit
ae1387b695
|
@ -6,7 +6,7 @@
|
|||
xmlns:local="clr-namespace:ModAssistant"
|
||||
mc:Ignorable="d"
|
||||
Icon="Resources/icon.ico"
|
||||
Title="{DynamicResource MainWindow:WindowTitle}" Width="1280" Height="720"
|
||||
Title="{DynamicResource MainWindow:WindowTitle}"
|
||||
SizeChanged="Window_SizeChanged"
|
||||
UIElement.PreviewMouseDown="Window_PreviewMouseDown">
|
||||
<Grid>
|
||||
|
|
|
@ -39,6 +39,16 @@ namespace ModAssistant
|
|||
InitializeComponent();
|
||||
Instance = this;
|
||||
|
||||
const int ContentWidth = 1280;
|
||||
const int ContentHeight = 720;
|
||||
|
||||
double ChromeWidth = SystemParameters.WindowNonClientFrameThickness.Left + SystemParameters.WindowNonClientFrameThickness.Right;
|
||||
double ChromeHeight = SystemParameters.WindowNonClientFrameThickness.Top + SystemParameters.WindowNonClientFrameThickness.Bottom;
|
||||
double ResizeBorder = SystemParameters.ResizeFrameVerticalBorderWidth;
|
||||
|
||||
Width = ChromeWidth + ContentWidth + 2 * ResizeBorder;
|
||||
Height = ChromeHeight + ContentHeight + 2 * ResizeBorder;
|
||||
|
||||
VersionText.Text = App.Version;
|
||||
|
||||
if (Utils.IsVoid())
|
||||
|
|
Loading…
Reference in a new issue