收口 Makelore 客户端变更
This commit is contained in:
17
tests/unit/window-material.test.ts
Normal file
17
tests/unit/window-material.test.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { getNativeWindowMaterialOptions } from '../../electron/main/window-material';
|
||||
|
||||
describe('native window material', () => {
|
||||
it('enables transparent under-window vibrancy on macOS', () => {
|
||||
expect(getNativeWindowMaterialOptions('darwin')).toEqual({
|
||||
backgroundColor: '#00000000',
|
||||
transparent: true,
|
||||
vibrancy: 'under-window',
|
||||
visualEffectState: 'active',
|
||||
});
|
||||
});
|
||||
|
||||
it.each(['win32', 'linux', 'freebsd'] as const)('keeps %s on the opaque fallback', (platform) => {
|
||||
expect(getNativeWindowMaterialOptions(platform)).toEqual({});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user