From 2b71409a3e2b65eea5c2e2ce04fe91f2243983fc Mon Sep 17 00:00:00 2001 From: kirillk Date: Wed, 15 Apr 2026 16:39:14 -0400 Subject: [PATCH] docs(jetbrains): replace Color enum with Theme in UI DSL binding example Avoid confusion with java.awt.Color which the AGENTS.md itself says to never use. Use a Theme enum instead to keep the example unambiguous. --- packages/kilo-jetbrains/AGENTS.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/kilo-jetbrains/AGENTS.md b/packages/kilo-jetbrains/AGENTS.md index 83647035e9f..046b7512323 100644 --- a/packages/kilo-jetbrains/AGENTS.md +++ b/packages/kilo-jetbrains/AGENTS.md @@ -416,11 +416,13 @@ Bind component values to model properties. Values are applied on `DialogPanel.ap | `buttonsGroup {}.bind(model::prop)` | radio group | ```kotlin +enum class Theme { LIGHT, DARK } + data class Settings( var name: String = "", var count: Int = 0, var enabled: Boolean = false, - var color: Color = Color.GREY, + var theme: Theme = Theme.LIGHT, ) val model = Settings() @@ -435,10 +437,10 @@ val panel = panel { row { checkBox("Enabled").bindSelected(model::enabled) } - buttonsGroup("Color:") { - row { radioButton("White", Color.WHITE) } - row { radioButton("Grey", Color.GREY) } - }.bind(model::color) + buttonsGroup("Theme:") { + row { radioButton("Light", Theme.LIGHT) } + row { radioButton("Dark", Theme.DARK) } + }.bind(model::theme) } // Later: