File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 <WindowChrome .WindowChrome>
4040 <WindowChrome CaptionHeight =" {StaticResource MainWindowCaptionHeight}"
4141 CornerRadius =" 0"
42- GlassFrameThickness =" 1 "
42+ GlassFrameThickness =" 0 "
4343 ResizeBorderThickness =" {StaticResource MainWindowResizeThickness}"
4444 UseAeroCaptionButtons =" False" />
4545 </WindowChrome .WindowChrome>
Original file line number Diff line number Diff line change 2525using System . Windows ;
2626using System . Windows . Input ;
2727using System . Windows . Media . Animation ;
28+ using System . Windows . Shell ;
2829using Wpf . Ui . Violeta . Controls ;
2930using Brush = System . Windows . Media . Brush ;
3031using FontFamily = System . Windows . Media . FontFamily ;
@@ -167,9 +168,14 @@ public override void OnApplyTemplate()
167168
168169 private void ApplyWindowBackgroundEffects ( )
169170 {
170- if ( SettingHelper . Get ( "UseTransparency" , true )
171+ var useTransparency = SettingHelper . Get ( "UseTransparency" , true )
171172 && SystemParameters . IsGlassEnabled
172- && ! App . IsGPUInBlacklist )
173+ && ! App . IsGPUInBlacklist ;
174+
175+ var windowChrome = WindowChrome . GetWindowChrome ( this ) ;
176+ windowChrome ? . GlassFrameThickness = useTransparency ? new Thickness ( 1 ) : new Thickness ( 0 ) ;
177+
178+ if ( useTransparency )
173179 {
174180 if ( App . IsWin11 )
175181 {
@@ -193,7 +199,6 @@ private void ApplyWindowBackgroundEffects()
193199 }
194200 else
195201 {
196- WindowHelper . DisableBlur ( this ) ;
197202 Background = ( Brush ) FindResource ( "MainWindowBackgroundNoTransparent" ) ;
198203 }
199204
You can’t perform that action at this time.
0 commit comments