@@ -5,7 +5,6 @@ import { WINDOW_BACKGROUND_BLUR_MAX_RADIUS } from '@/shared/settings'
55
66import {
77 applyWindowBackgroundBlur ,
8- MAIN_WINDOW_BLURRED_BACKGROUND ,
98 getMainWindowBackgroundColor ,
109 MAIN_WINDOW_OPAQUE_BACKGROUND ,
1110 normalizeWindowBackgroundBlurRadius ,
@@ -53,10 +52,8 @@ describe('windowBackgroundBlur helpers', () => {
5352 expect ( getMainWindowBackgroundColor ( 0 ) ) . toBe ( MAIN_WINDOW_OPAQUE_BACKGROUND )
5453 } )
5554
56- it ( 'uses an alpha background when blur is enabled' , ( ) => {
57- expect ( getMainWindowBackgroundColor ( 12 ) ) . toBe (
58- MAIN_WINDOW_BLURRED_BACKGROUND ,
59- )
55+ it ( 'uses slider-derived alpha background when blur is enabled' , ( ) => {
56+ expect ( getMainWindowBackgroundColor ( 12 ) ) . toBe ( 'rgba(10, 15, 28, 0.92)' )
6057 } )
6158
6259 it ( 'applies opaque color and zero blur when the radius is disabled' , ( ) => {
@@ -79,10 +76,10 @@ describe('windowBackgroundBlur helpers', () => {
7976 applyWindowBackgroundBlur ( window , WINDOW_BACKGROUND_BLUR_MAX_RADIUS + 1 )
8077
8178 expect ( window . setBackgroundColor ) . toHaveBeenCalledWith (
82- MAIN_WINDOW_BLURRED_BACKGROUND ,
79+ 'rgba(10, 15, 28, 0.68)' ,
8380 )
8481 expect ( contentView . setBackgroundColor ) . toHaveBeenCalledWith (
85- MAIN_WINDOW_BLURRED_BACKGROUND ,
82+ 'rgba(10, 15, 28, 0.68)' ,
8683 )
8784 expect ( contentView . setBackgroundBlur ) . toHaveBeenCalledWith (
8885 WINDOW_BACKGROUND_BLUR_MAX_RADIUS ,
@@ -94,10 +91,10 @@ describe('windowBackgroundBlur helpers', () => {
9491
9592 expect ( ( ) => applyWindowBackgroundBlur ( window , 12 ) ) . not . toThrow ( )
9693 expect ( window . setBackgroundColor ) . toHaveBeenCalledWith (
97- MAIN_WINDOW_BLURRED_BACKGROUND ,
94+ 'rgba(10, 15, 28, 0.92)' ,
9895 )
9996 expect ( contentView . setBackgroundColor ) . toHaveBeenCalledWith (
100- MAIN_WINDOW_BLURRED_BACKGROUND ,
97+ 'rgba(10, 15, 28, 0.92)' ,
10198 )
10299 expect ( 'setBackgroundBlur' in contentView ) . toBe ( false )
103100 } )
@@ -107,7 +104,7 @@ describe('windowBackgroundBlur helpers', () => {
107104
108105 expect ( ( ) => applyWindowBackgroundBlur ( window , 12 ) ) . not . toThrow ( )
109106 expect ( window . setBackgroundColor ) . toHaveBeenCalledWith (
110- MAIN_WINDOW_BLURRED_BACKGROUND ,
107+ 'rgba(10, 15, 28, 0.92)' ,
111108 )
112109 expect ( 'setBackgroundColor' in contentView ) . toBe ( false )
113110 expect ( contentView . setBackgroundBlur ) . toHaveBeenCalledWith ( 12 )
0 commit comments