mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-175936 fix combobox rendering
GitOrigin-RevId: de745e98fab7f196598de53db32995361e64896e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
94a6ae9357
commit
f34e4f6158
@@ -16,4 +16,6 @@ enum class MainMenuDisplayMode(@NlsActions.ActionText val description: String) {
|
||||
companion object {
|
||||
fun valueOf(name: String?): MainMenuDisplayMode = MainMenuDisplayMode.entries.find { it.name.equals(name, true)} ?: UNDER_HAMBURGER_BUTTON
|
||||
}
|
||||
|
||||
override fun toString(): String = description
|
||||
}
|
||||
@@ -459,7 +459,7 @@ internal class AppearanceConfigurable : BoundSearchableConfigurable(message("tit
|
||||
|
||||
if (!SystemInfo.isMac && ExperimentalUI.isNewUI()) {
|
||||
row {
|
||||
comboBox(model = CollectionComboBoxModel<MainMenuDisplayMode>(MainMenuDisplayMode.entries), SimpleListCellRenderer<MainMenuDisplayMode>.create { label, value, _ -> label.text = value.description } )
|
||||
comboBox(model = CollectionComboBoxModel<MainMenuDisplayMode>(MainMenuDisplayMode.entries)/* SimpleListCellRenderer<MainMenuDisplayMode>.create { label, value, _ -> label.text = value.description }*/ )
|
||||
.label(message("main.menu.combobox.label"))
|
||||
.bindItem(settings::mainMenuDisplayMode.toNullableProperty())
|
||||
.apply {
|
||||
|
||||
Reference in New Issue
Block a user