IDEA-331405 adjusted the visibility of 'useDefaults' methods in AbstractColorsScheme to hide it from public API

GitOrigin-RevId: fa2984b97e1dd85c642d0d67b147fbba48b4d131
This commit is contained in:
Vera Petrenkova
2023-12-08 09:56:49 +00:00
committed by intellij-monorepo-bot
parent 88fc03be53
commit d31e9ef795
3 changed files with 4 additions and 7 deletions
@@ -960,8 +960,8 @@ public abstract class AbstractColorsScheme extends EditorFontCacheImpl implement
}
}
//this made to make possible compare color schemes inside EditorColorManager
//to prevent cyclic init (getDefaultAttributes uses EditorColorManager.getInstance)
// this made to make possible compare color schemes inside EditorColorManager
// to prevent cyclic init (getDefaultAttributes uses EditorColorManager.getInstance)
this.setUseDefaults(useDefaults);
otherScheme.setUseDefaults(useDefaults);
@@ -1022,12 +1022,11 @@ public abstract class AbstractColorsScheme extends EditorFontCacheImpl implement
sourceScheme.attributesMap.forEach((key, attributes) -> attributesMap.putIfAbsent(key, attributes));
}
public boolean isUseDefaults() {
boolean isUseDefaults() {
return useDefaults;
}
public void setUseDefaults(boolean useDefaults) {
private void setUseDefaults(boolean useDefaults) {
this.useDefaults = useDefaults;
if (parentScheme != null && parentScheme instanceof AbstractColorsScheme abstractColorsScheme) {
abstractColorsScheme.setUseDefaults(useDefaults);
@@ -343,7 +343,6 @@ class LafManagerImpl(private val coroutineScope: CoroutineScope) : LafManager(),
return element
}
//IDEA-331405 Hide IntelliJ Light from new UI
private fun Element.getThemeNameWithReplacingDeprecated(): String? {
val currentTheme = this.getAttributeValue(ATTRIBUTE_THEME_NAME)
if (ExperimentalUI.isNewUI() && currentTheme == "JetBrainsLightTheme") {
@@ -493,7 +493,6 @@ class EditorColorsManagerImpl @NonInjectable constructor(schemeManagerFactory: S
activity.end()
}
//IDEA-331405 Hide IntelliJ Light from new UI
private fun hideIntellijLightSchemeIfNeeded(state: State) {
if (!ExperimentalUI.isNewUI()) return
val themeName = "IntelliJ Light"