Skip to content

Commit

Permalink
Add transparent background to elements that have pointer events
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Apr 24, 2024
1 parent fc8a8e5 commit 64f99b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion LightBulb/Views/Components/DashboardView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@
Margin="0,50,0,0"
HorizontalAlignment="Center"
VerticalAlignment="Top"
Background="Transparent"
Cursor="Hand"
IsVisible="{Binding IsOffsetEnabled}"
Orientation="Horizontal"
PointerPressed="ConfigurationOffsetStackPanel_OnPointerPressed">
PointerReleased="ConfigurationOffsetStackPanel_OnPointerReleased">
<ToolTip.Tip>
<TextBlock>
<Run Text="Current temperature and brightness values are adjusted by an offset:" />
Expand Down
4 changes: 2 additions & 2 deletions LightBulb/Views/Components/DashboardView.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public partial class DashboardView : UserControl<DashboardViewModel>
private void UserControl_OnLoaded(object? sender, RoutedEventArgs args) =>
DataContext.InitializeCommand.Execute(null);

private void ConfigurationOffsetStackPanel_OnPointerPressed(
private void ConfigurationOffsetStackPanel_OnPointerReleased(
object? sender,
PointerPressedEventArgs args
PointerReleasedEventArgs args
) => DataContext.ResetConfigurationOffsetCommand.Execute(null);
}

0 comments on commit 64f99b8

Please sign in to comment.