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
Upgrade to Electron 7 #1543
Upgrade to Electron 7 #1543
Conversation
@Jocs Edit: Fixed. |
@fxha I can no longer change the theme by theme menu now, I change the theme to |
I think we don't really need these APIs because all
The issue should be fixed now but I'll open an Electron issue about the API design. |
@Jocs Please run |
@fxha I have removed the |
Maybe some issues with Electron 7 and macOS on main process that not all Mark Text modules are loaded such as the menu due to an exception? Please try to debug this (e.g. attach to main process via Chromium debug tools). There also some known issues like all developement tools extensions doesn't work and there are strange warnings about deprecated APIs on Windows that we didn't use. There should be at least the following warning:
|
Actually, I didn't understand the code logic here, but I felt that there was some problem, because we modified the value of And I modified some codes to avoid the infinity loop, and it works(the added codes maybe not good) |
@Jocs I understand the code logic neither, neither upstream nor the event code really. I think we should drop support for automatically theme detection at runtime and only adjust it at application start. It's also not possible on macOS >=10.15 to detect the OS theme color when manually setting theme mode to either light or dark according Electron answer. I'll write another comment that the method has very bad behavior across different OSs but I'll not spend more time to fix the bullshit function because it behaves different on Linux, macOS and Windows. Are you fine to drop support for it? Edit: Fixing one issue will cause more issues on different OSs and maybe it will depend on the OS and Chromium version too - who knows. |
I am Ok, maybe we need to open an issue to Electron a description of what we encountered? |
A feature request is also needed to open in our issues, I think, to track this problem. |
I already ask for a function to get the OS theme mode but that's not possible due to changes in macOS 10.15. I also recommended some documentation changes but maybe the observed behavior is just a bug. |
e7301c6
to
2cb29d3
Compare
@Jocs I have removed runtime native theme detection and it should work now. |
@Jocs Please create a PR for this or post the adjusted CSS because I already fixed this for Linux and Windows but macOS seems to use another window bounds. |
@Jocs There are strange errors in |
Ok, I'll submit a PR after this PR merged.
Can you paste the error message or show me a screenshot, Where can I find the strange errors? |
I already found the source. It was an issue with keytar that we cannot decrypt the GitHub token. |
Description
autoSwitchTheme
is1
to not confuse the user that the theme is always changed when a different OS and Mark Text is used (dark vs light).resolved #749
resolved #1225