mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
implement shims
This commit is contained in:
24
shims/electron/remote/system-preferences.js
Normal file
24
shims/electron/remote/system-preferences.js
Normal file
@@ -0,0 +1,24 @@
|
||||
// Shim for remote.systemPreferences
|
||||
// No-op with safe defaults
|
||||
|
||||
export const systemPreferencesShim = {
|
||||
getAccentColor() {
|
||||
return '0078d4'; // Default Windows accent blue
|
||||
},
|
||||
|
||||
isAeroGlassEnabled() {
|
||||
return false;
|
||||
},
|
||||
|
||||
getMediaAccessStatus(mediaType) {
|
||||
return 'granted';
|
||||
},
|
||||
|
||||
askForMediaAccess(mediaType) {
|
||||
return Promise.resolve(true);
|
||||
},
|
||||
|
||||
on() {},
|
||||
once() {},
|
||||
removeListener() {},
|
||||
};
|
||||
Reference in New Issue
Block a user