mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
fix: reorder mac transparent window check in useNavBackgroundColor hook
- Moved the check for macTransparentWindow to ensure it is evaluated after minappShow, maintaining the intended logic for background color selection.
This commit is contained in:
parent
806664646d
commit
202894ab20
@ -11,14 +11,14 @@ function useNavBackgroundColor() {
|
||||
|
||||
const macTransparentWindow = isMac && windowStyle === 'transparent'
|
||||
|
||||
if (macTransparentWindow) {
|
||||
return 'transparent'
|
||||
}
|
||||
|
||||
if (minappShow) {
|
||||
return theme === 'dark' ? 'var(--navbar-background)' : 'var(--color-white)'
|
||||
}
|
||||
|
||||
if (macTransparentWindow) {
|
||||
return 'transparent'
|
||||
}
|
||||
|
||||
return 'var(--navbar-background)'
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user