-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
set default value of colorTheme and iconTheme preference #7174
Conversation
It does not work for end products, since they can change default values dynamically and values cannot be hard coded. The real default values can be retrieved from cc @spoenemann @jbicker How do you change the default theme for Arduino Pro IDE? |
@akosyakov
|
ok, then we have to:
@tom-shan Let me know if you need more hints. |
0ad5454
to
cecea49
Compare
7d28e47
to
96ed1c7
Compare
It does not work, I've tried to change to in package.json and rebuild:
but on the start icon theme was none, and color theme was dark :( |
1 vscode python plugin will read workbench.colorTheme, if not find it will use the default value of Default Light+ (https://github.com/microsoft/vscode-python/blob/2008c14f4ca7305ad6aaee436174fe24a5a6c283/src/client/datascience/webViewHost.ts#L175) which will cause the mismatch of jupyter notebook and current theia theme colors. 2 set the default value of workbench.iconTheme Signed-off-by: tom-shan <swt0008411@163.com>
96ed1c7
to
5876cbe
Compare
Sorry, got the reason, theme colors and icon colors provided by plugins have not been registered when reading https://github.com/eclipse-theia/theia/blob/master/packages/core/src/browser/theming.ts#L42 and https://github.com/eclipse-theia/theia/blob/master/packages/core/src/browser/icon-theme-service.ts#L80. |
@tom-shan it would explain icon theme, but color theme is not registered by plugins. I'm worrying that delaying reading from preferences will lead to flickering. Need to think how to test different cases. |
I tested again with the previous version (without delaying reading from preferences) and can not repoduce the color theme problem now. |
the flicker really exists, have tested two cases: 2 default color theme: |
@tom-shan ok, could you revert it to previous version, I will try to test it more. I don't think current version is good it delays theming load too much, especially for restored themes from browser caches it should happen even before preload screen. |
…nces) Signed-off-by: tom-shan <swt0008411@163.com>
@akosyakov please try again |
I've tried it but it's still blinking between dark and default theme on refresh, i.e. try to change to red and then refresh. I will have a look tomorrow what can be done. |
vscode python plugin will read workbench.colorTheme,
if not find it will use the default value of Default Light+
(https://github.com/microsoft/vscode-python/blob/2008c14f4ca7305ad6aaee436174fe24a5a6c283/src/client/datascience/webViewHost.ts#L175)
which will cause the mismatch of jupyter notebook and current theia theme colors.
BTW set the default value of workbench.iconTheme
Signed-off-by: tom-shan swt0008411@163.com
What it does
How to test
Review checklist
Reminder for reviewers