Skip to content

Portable Tool for an Ideal Windows Setup

upd. replace dropshadoweffect with translatetransform in noty

Greedeks2e54765a65e6
diff --git a/.Source/GTweak/Windows/NotificationWindow.xaml b/.Source/GTweak/Windows/NotificationWindow.xaml
index 96f7567a..a498f388 100644
--- a/.Source/GTweak/Windows/NotificationWindow.xaml
+++ b/.Source/GTweak/Windows/NotificationWindow.xaml
@@ -48,28 +48,24 @@
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <DockPanel VerticalAlignment="Center" HorizontalAlignment="Left" LastChildFill="True">
- <TextBlock x:Name="Header" Margin="15,10,0,0" Text="Title" Foreground="{StaticResource Brush_Highlighted}" Height="auto" FontFamily="{StaticResource Jura}" FontSize="15" TextWrapping="Wrap" HorizontalAlignment="Left" TextAlignment="Left" FontStretch="Medium">
- <TextBlock.CacheMode>
- <BitmapCache RenderAtScale="2" EnableClearType="True"/>
- </TextBlock.CacheMode>
- <TextBlock.Effect>
- <DropShadowEffect Opacity="0.2"/>
- </TextBlock.Effect>
- </TextBlock>
- </DockPanel>
+ <Grid Grid.Row="0" Margin="15,10,0,0" HorizontalAlignment="Left">
+ <TextBlock Text="{Binding ElementName=Header, Path=Text}" Foreground="{StaticResource Brush_ShadowOverlay}" Opacity="0.7" Height="auto" FontFamily="{StaticResource Jura}" FontSize="14" TextWrapping="Wrap" TextAlignment="Left" FontStretch="Medium">
+ <TextBlock.RenderTransform>
+ <TranslateTransform X="3" Y="3"/>
+ </TextBlock.RenderTransform>
+ </TextBlock>
+
+ <TextBlock x:Name="Header" Text="Title" Foreground="{StaticResource Brush_Highlighted}" Height="auto" FontFamily="{StaticResource Jura}" FontSize="15" TextWrapping="Wrap" HorizontalAlignment="Left" TextAlignment="Left" FontStretch="Medium"/>
</Grid>
- <Grid Grid.Row="1">
- <TextBlock x:Name="MessageBody" Margin="15,0,0,3" Text="Text" Foreground="{StaticResource Brush_TextBlock_Inactivity}" Height="auto" FontFamily="{StaticResource Jura}" FontSize="14" TextWrapping="Wrap" HorizontalAlignment="Left" TextAlignment="Left" FontStretch="Medium" MaxWidth="285" >
- <TextBlock.CacheMode>
- <BitmapCache RenderAtScale="2" EnableClearType="True"/>
- </TextBlock.CacheMode>
- <TextBlock.Effect>
- <DropShadowEffect Opacity="0.2"/>
- </TextBlock.Effect>
+ <Grid Grid.Row="1" Margin="15,0,0,3" HorizontalAlignment="Left">
+ <TextBlock Text="{Binding ElementName=MessageBody, Path=Text}" Foreground="{StaticResource Brush_ShadowOverlay}" Opacity="0.7" Height="auto" FontFamily="{StaticResource Jura}" FontSize="14" TextWrapping="Wrap" TextAlignment="Left" FontStretch="Medium">
+ <TextBlock.RenderTransform>
+ <TranslateTransform X="3" Y="3"/>
+ </TextBlock.RenderTransform>
</TextBlock>
+
+ <TextBlock x:Name="MessageBody" Text="Text" Foreground="{StaticResource Brush_TextBlock_Inactivity}" Height="auto" FontFamily="{StaticResource Jura}" FontSize="14" TextWrapping="Wrap" HorizontalAlignment="Left" TextAlignment="Left" FontStretch="Medium" MaxWidth="285"/>
</Grid>
</Grid>