File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -1404,7 +1404,8 @@ public void Show()
14041404
14051405                    // 📌 창을 먼저 보이게 설정 
14061406                    ShowWindow ( hWnd ,  SW_SHOW ) ; 
1407- 
1407+                     mainWindow . ClockPanel . Visibility  =  Visibility . Visible ; 
1408+                     mainWindow . SearchIcon . Visibility  =  Visibility . Visible ; 
14081409                    // 📌 DWM Cloak 해제 (즉시 표시) 
14091410                    int  cloak  =  0 ; 
14101411                    DwmSetWindowAttribute ( hWnd ,  DWMWA_CLOAK ,  ref  cloak ,  sizeof ( int ) ) ; 
@@ -1465,6 +1466,21 @@ public async void Hide()
14651466            // 📌 DWM Cloak을 사용하여 창 숨김 
14661467            if  ( Application . Current . MainWindow  is  MainWindow  mainWindow ) 
14671468            { 
1469+                 // 📌 아이콘과 시계 Opacity를 0으로 강제 설정하고 Visibility.Hidden 적용 
1470+                 Application . Current . Dispatcher . Invoke ( ( )  => 
1471+                 { 
1472+                     mainWindow . ClockPanel . Opacity  =  0 ; 
1473+                     mainWindow . SearchIcon . Opacity  =  0 ; 
1474+                     mainWindow . ClockPanel . Visibility  =  Visibility . Hidden ; 
1475+                     mainWindow . SearchIcon . Visibility  =  Visibility . Hidden ; 
1476+ 
1477+                     // 강제 UI 업데이트 
1478+                     mainWindow . ClockPanel . UpdateLayout ( ) ; 
1479+                     mainWindow . SearchIcon . UpdateLayout ( ) ; 
1480+                 } ,  DispatcherPriority . Render ) ; 
1481+ 
1482+                 await  Task . Delay ( 10 ) ;  // UI 반영 대기 
1483+ 
14681484                IntPtr  hWnd  =  new  WindowInteropHelper ( mainWindow ) . Handle ; 
14691485
14701486                // 📌 DWM Cloak 활성화 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments