mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revert: set proper editor color scheme when installing a theme
This commit is contained in:
@@ -142,9 +142,6 @@ class SchemeManagerImpl<T : Any, MUTABLE_SCHEME : T>(val fileSpec: String,
|
||||
LOG.warn("Duplicated scheme ${schemeKey} - old: $oldScheme, new $scheme")
|
||||
}
|
||||
schemes.add(scheme)
|
||||
if (requestor is UITheme) {
|
||||
requestor.editorSchemeName = schemeKey
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e: ProcessCanceledException) {
|
||||
|
||||
@@ -4,8 +4,6 @@ package com.intellij.ide.ui.laf;
|
||||
import com.intellij.ide.ui.UITheme;
|
||||
import com.intellij.ide.ui.laf.darcula.DarculaLaf;
|
||||
import com.intellij.ide.util.PropertiesComponent;
|
||||
import com.intellij.openapi.editor.colors.EditorColorsManager;
|
||||
import com.intellij.openapi.editor.colors.EditorColorsScheme;
|
||||
import com.intellij.openapi.util.IconLoader;
|
||||
import com.intellij.openapi.util.IconPathPatcher;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
@@ -38,17 +36,6 @@ public class UIThemeBasedLookAndFeelInfo extends UIManager.LookAndFeelInfo {
|
||||
}
|
||||
|
||||
installBackgroundImage();
|
||||
installEditorScheme();
|
||||
}
|
||||
|
||||
private void installEditorScheme() {
|
||||
String name = myTheme.getEditorSchemeName();
|
||||
if (name != null) {
|
||||
EditorColorsScheme scheme = EditorColorsManager.getInstance().getScheme(name);
|
||||
if (scheme != null) {
|
||||
EditorColorsManager.getInstance().setGlobalScheme(scheme);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void installBackgroundImage() {
|
||||
|
||||
Reference in New Issue
Block a user