[Kotlin UI DSL] Use non-opaque checkboxes by default

GitOrigin-RevId: 9ddfe321470d87a305190e2a328fc5f471eea2ba
This commit is contained in:
Pavel Porvatov
2025-06-26 20:06:27 +00:00
committed by intellij-monorepo-bot
parent 79561628d0
commit 1e6c20c0b9
2 changed files with 6 additions and 1 deletions
@@ -13,6 +13,7 @@ internal class StickyLinesProviderConfigurable(
) : SearchableConfigurable {
override fun createComponent(): JCheckBox = JCheckBox(language.displayName)
.apply { isOpaque = false }
override fun isModified(): Boolean = false
@@ -121,7 +121,11 @@ abstract class BeanConfigurable<T : Any> protected constructor(protected val ins
return myAccessor.getBeanValue(settingsInstance)
}
val component: JCheckBox by lazy { JCheckBox(title) }
val component: JCheckBox by lazy {
JCheckBox(title).apply {
isOpaque = false
}
}
fun isModified(instance: Any): Boolean {
val beanValue = myAccessor.getBeanValue(instance)