From 64c26a73bedc4733874f1b8bcdae4b96afd939a2 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 10 Sep 2021 11:23:38 -0400 Subject: [PATCH] Seperate selector.input_editor and chat_panel.input_editor * create [selector.input_editor] and style * Update selector style to match figma now that inputs are individually stylable --- zed/assets/themes/_base.toml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/zed/assets/themes/_base.toml b/zed/assets/themes/_base.toml index 90256b08555219ae941dc888ca443bca4893e0e3..dc7d91ee731c67d536104f8618f1debea9c15d8d 100644 --- a/zed/assets/themes/_base.toml +++ b/zed/assets/themes/_base.toml @@ -112,17 +112,25 @@ padding = 8 margin.top = 52 corner_radius = 6 shadow = { offset = [0, 2], blur = 16, color = "$shadow.0" } -input_editor = "$chat_panel.input_editor" +border = { width = 1, color = "$border.0" } + +[selector.input_editor] +background = "$surface.1" +corner_radius = 6 +padding = { left = 16, right = 16, top = 7, bottom = 7 } +text = "$text.0.color" +placeholder_text = "$text.2.color" +selection = "$selection.host" border = { width = 1, color = "$border.0" } [selector.empty] text = "$text.2" -padding = { left = 8, right = 8, top = 8, bottom = 4 } +padding = { left = 16, right = 16, top = 8, bottom = 4 } [selector.item] text = "$text.1" highlight_text = { extends = "$text.base", color = "$syntax.keyword.color", weight = "$syntax.keyword.weight" } -padding = { left = 8, right = 8, top = 4, bottom = 4 } +padding = { left = 16, right = 16, top = 4, bottom = 4 } corner_radius = 6 [selector.active_item]