From 7d0492dbcd52d09f3400731176715805f9fc46ed Mon Sep 17 00:00:00 2001 From: Pavel Porvatov Date: Tue, 18 Feb 2025 13:05:33 +0100 Subject: [PATCH] Removed unnecessary space after the Accessibility group in Appearance settings GitOrigin-RevId: b6d446f2e38d15289e650341498b3331ceb4be4f --- .../com/intellij/ide/ui/AppearanceConfigurable.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/ide/ui/AppearanceConfigurable.kt b/platform/platform-impl/src/com/intellij/ide/ui/AppearanceConfigurable.kt index 6d302124bfec..8ff8252f28b1 100644 --- a/platform/platform-impl/src/com/intellij/ide/ui/AppearanceConfigurable.kt +++ b/platform/platform-impl/src/com/intellij/ide/ui/AppearanceConfigurable.kt @@ -232,7 +232,7 @@ internal class AppearanceConfigurable : BoundSearchableConfigurable(message("tit group(message("title.accessibility")) { row(message("combobox.ide.scale.percent")) { val defaultScale = UISettingsUtils.defaultScale(false) - var resetZoom: Cell? = null + lateinit var resetZoom: Cell val model = IdeScaleTransformer.Settings.createIdeScaleComboboxModel() comboBox(model) @@ -242,7 +242,7 @@ internal class AppearanceConfigurable : BoundSearchableConfigurable(message("tit IdeScaleTransformer.Settings.scaleFromPercentStringValue(it.item, false)?.let { scale -> logIdeZoomChanged(scale, false) - resetZoom?.visible(scale.percentValue != defaultScale.percentValue) + resetZoom.visible(scale.percentValue != defaultScale.percentValue) settings.ideScale = scale invokeLater { // Invoke later to avoid NPE in JComboBox.repaint() @@ -269,10 +269,10 @@ internal class AppearanceConfigurable : BoundSearchableConfigurable(message("tit resetZoom = link(message("ide.scale.reset.link")) { model.selectedItem = defaultScale.percentStringValue }.apply { visible(settings.ideScale.percentValue != defaultScale.percentValue) } - }.topGap(TopGap.SMALL) + } row { - var resetCustomFont: (() -> Unit)? = null + lateinit var resetCustomFont: (() -> Unit) val useCustomCheckbox = checkBox(message("checkbox.override.default.laf.fonts")) .gap(RightGap.SMALL) @@ -286,7 +286,7 @@ internal class AppearanceConfigurable : BoundSearchableConfigurable(message("tit } } .onChanged { checkbox -> - if (!checkbox.isSelected) resetCustomFont?.invoke() + if (!checkbox.isSelected) resetCustomFont.invoke() } val fontFace = cell(FontComboBox()) @@ -459,7 +459,7 @@ internal class AppearanceConfigurable : BoundSearchableConfigurable(message("tit if (!SystemInfo.isMac && ExperimentalUI.isNewUI()) { row { - comboBox(model = CollectionComboBoxModel(MainMenuDisplayMode.entries)/* SimpleListCellRenderer.create { label, value, _ -> label.text = value.description }*/ ) + comboBox(model = CollectionComboBoxModel(MainMenuDisplayMode.entries)) .label(message("main.menu.combobox.label")) .bindItem(settings::mainMenuDisplayMode.toNullableProperty()) .apply {