Skip to content

Commit 408911d

Browse files
committed
🐛 修复 MacOS 中 挂时长游戏功能按钮显示问题
1 parent 2393229 commit 408911d

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/BD.WTTS.Client.Plugins.GameList/UI/Views/Pages/IdleAppsPage.axaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
xmlns="https://github.com/avaloniaui"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6-
xmlns:i="using:Avalonia.Xaml.Interactivity"
7-
xmlns:ia="using:Avalonia.Xaml.Interactions.Core"
86
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
97
xmlns:ms="https://steampp.net/settings"
108
xmlns:s="https://steampp.net/services"
@@ -190,7 +188,15 @@
190188
</spp:AppItem.ActionButton>-->
191189
<spp:AppItem.Image>
192190
<Panel x:Name="ItemImage">
193-
<i:Interaction.Behaviors>
191+
<Panel.Styles>
192+
<Style Selector="Panel#ItemBox">
193+
<Setter Property="Opacity" Value="0" />
194+
</Style>
195+
<Style Selector="Panel#ItemBox:pointerover">
196+
<Setter Property="Opacity" Value="0.8" />
197+
</Style>
198+
</Panel.Styles>
199+
<!--<i:Interaction.Behaviors>
194200
<ia:EventTriggerBehavior EventName="PointerEntered" SourceObject="{Binding #ItemImage}">
195201
<ia:ChangePropertyAction
196202
PropertyName="IsVisible"
@@ -203,7 +209,7 @@
203209
TargetObject="{Binding #ItemBox}"
204210
Value="False" />
205211
</ia:EventTriggerBehavior>
206-
</i:Interaction.Behaviors>
212+
</i:Interaction.Behaviors>-->
207213
<Panel MinWidth="{Binding $parent[spp:AppItem].MinWidth}" MaxWidth="{Binding $parent[spp:AppItem].MaxWidth}">
208214
<spp:Image2
209215
Name="AppImage"
@@ -247,11 +253,7 @@
247253
</DockPanel>
248254
</Border>
249255
</Panel>
250-
<Panel
251-
x:Name="ItemBox"
252-
Background="{DynamicResource SolidBackgroundFillColorBaseBrush}"
253-
IsVisible="False"
254-
Opacity="0.8">
256+
<Panel x:Name="ItemBox" Background="{DynamicResource SolidBackgroundFillColorBaseBrush}">
255257
<Button
256258
Padding="0"
257259
HorizontalAlignment="Center"

0 commit comments

Comments
 (0)