-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "Mica-Electron work only on Windows 11." #38
Comments
Same as #31 |
Hi, yes it's true, can I see all of your code to understand where the problem is? |
Thank you for the answer. import { app } from 'electron';
const { MicaBrowserWindow, IS_WINDOWS_11 } = require('mica-electron');
...
// Create the browser window.
mainWindow = new MicaBrowserWindow({
autoHideMenuBar: true,
minHeight: 500,
minWidth: 980,
width: 1070,
height: 650,
show: false,
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
},
});
// Enable mica or acrylic
if (IS_WINDOWS_11) {
mainWindow.setMicaEffect();
} else {
mainWindow.setAcrylic();
}
// Dark or Light theme
const currTheme = store.get('theme', 'system');
if (currTheme == 'dark') {
mainWindow.setDarkTheme();
} else if (currTheme == 'light') {
mainWindow.setLightTheme();
} else {
mainWindow.setAutoTheme();
} |
Okay, after more investigation, seems related to setAutoTheme / setDarkTheme / setLightTheme who are only for Windows 11. |
Not fixed finally. Line 41 in 6c62b86
|
I got "Mica-Electron work only on Windows 11." when running on Windows 10.
But at the same time, the Github Readme say "Mica electron is now compatible with windows 10".
What is true?
I use it like so:
Thanks.
The text was updated successfully, but these errors were encountered: