mirror of
https://github.com/tuxdotrs/highminded.git
synced 2025-08-23 08:01:03 +05:30
feat: window hide binding
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||||
Spacing="5" Margin="10 0">
|
Spacing="5" Margin="10 0">
|
||||||
<TextBlock FontSize="12" Text="Hide:" />
|
<TextBlock FontSize="12" Text="Hide:" />
|
||||||
<TextBlock FontSize="12" Text="CTRL + \" />
|
<TextBlock FontSize="12" Text="SHIFT + \" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<Button Name="ChatBtn" Background="Transparent" Click="ChatBtnClick">
|
<Button Name="ChatBtn" Background="Transparent" Click="ChatBtnClick">
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
<Button Name="SettingsBtn" Background="Transparent" Click="SettingBtnClick">
|
<Button Name="SettingsBtn" Background="Transparent" Click="SettingBtnClick">
|
||||||
<iconPacks:PackIconLucide Grid.Column="1" Kind="Settings" Height="16" Width="16" />
|
<iconPacks:PackIconLucide Grid.Column="1" Kind="Settings" Height="16" Width="16" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button Name="HideBtn" Background="Transparent">
|
<Button Name="HideBtn" Background="Transparent" Click="HideBtnClick">
|
||||||
<iconPacks:PackIconLucide Grid.Column="1" Kind="X" Height="13" Width="13"/>
|
<iconPacks:PackIconLucide Grid.Column="1" Kind="X" Height="13" Width="13"/>
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
@@ -164,4 +164,9 @@ public partial class MainWindow : Window
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void HideBtnClick(object? sender, RoutedEventArgs e)
|
||||||
|
{
|
||||||
|
Hide();
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user