Improve editor, plugin updates, and window transfers for 0.1.41
This commit is contained in:
@@ -65,13 +65,13 @@ test('Full transparency range produces valid surface opacity values', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
test('Opaque mode removes surface transparency and retains the amount for re-enabling', () => {
|
||||
test('Opaque mode retains background ownership and the amount for re-enabling', () => {
|
||||
const values = new Map<string, string>();
|
||||
const root = { dataset: {} as Record<string, string>, style: { setProperty: (key: string, value: string) => values.set(key, value) } } as unknown as HTMLElement;
|
||||
applyTransparency({ enabled: false, amount: 32 }, root);
|
||||
assert.equal(values.get('--rs-surface-opacity'), '100%');
|
||||
assert.equal(values.get('--rs-editor-surface-opacity'), '100%');
|
||||
assert.equal(values.get('--rs-transparent-plugin-bg'), 'var(--rs-bg)');
|
||||
assert.equal(values.get('--rs-transparent-plugin-bg'), 'transparent');
|
||||
assert.equal(root.dataset.transparency, 'off');
|
||||
applyTransparency({ enabled: true, amount: 18 }, root);
|
||||
assert.equal(values.get('--rs-surface-opacity'), '82%');
|
||||
|
||||
Reference in New Issue
Block a user