mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
工作切换到隐藏的时候半透明按钮 fix #155
This commit is contained in:
parent
45a6f33447
commit
1ac0ab8cda
@ -49,7 +49,7 @@
|
||||
pu:ButtonHelper.HoverBackground="{DynamicResource ButtonBackgroundHover}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<Button HorizontalAlignment="Left" VerticalAlignment="Top" Padding="5,5,8,7"
|
||||
<Button x:Name="btnSwitch" HorizontalAlignment="Left" VerticalAlignment="Top" Padding="5,5,8,7"
|
||||
Background="{DynamicResource BorderBrush}" pu:ButtonHelper.CornerRadius="5" Margin="10,10,0,0"
|
||||
Click="SwitchState_Click">
|
||||
<Path Fill="{DynamicResource ButtonForeground}"
|
||||
|
@ -144,10 +144,12 @@ namespace VPet_Simulator.Core
|
||||
{
|
||||
if (DisplayType == 3)
|
||||
{
|
||||
btnSwitch.Opacity = 0.5;
|
||||
DisplayBorder.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
else
|
||||
{
|
||||
btnSwitch.Opacity = 1;
|
||||
DisplayBorder.Visibility = Visibility.Visible;
|
||||
btnStop.Content = LocalizeCore.Translate("停止") + m.NowWork.NameTrans;
|
||||
switch (DisplayType)
|
||||
|
Loading…
Reference in New Issue
Block a user