From 484204c2a0cc3e1ab7398132d8ff15f4845bb86d Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Tue, 19 Apr 2022 02:48:35 -0400 Subject: [PATCH] Reduce key icon size to avoid extra padding on command palette item - Also remove unneeded imports --- assets/themes/dark.json | 4 ++-- assets/themes/light.json | 4 ++-- styles/src/styleTree/commandPalette.ts | 7 +++---- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/assets/themes/dark.json b/assets/themes/dark.json index 119450cd7119c26cd105652312d97917b5407857..77d3706e3b74334fbf446cb5a3f346288d7171dd 100644 --- a/assets/themes/dark.json +++ b/assets/themes/dark.json @@ -741,8 +741,8 @@ "width": 1 }, "padding": { - "top": 3, - "bottom": 3, + "top": 2, + "bottom": 2, "left": 8, "right": 8 }, diff --git a/assets/themes/light.json b/assets/themes/light.json index 192c6ebe93e1d1520b61ac1f37af241f4d77cc65..dc4381ada8b71c4da6b327f8ba8286abbebed18a 100644 --- a/assets/themes/light.json +++ b/assets/themes/light.json @@ -741,8 +741,8 @@ "width": 1 }, "padding": { - "top": 3, - "bottom": 3, + "top": 2, + "bottom": 2, "left": 8, "right": 8 }, diff --git a/styles/src/styleTree/commandPalette.ts b/styles/src/styleTree/commandPalette.ts index fd967a6d202134726631d23101a10a679a6a20e3..9242f67cbe7114e579158e889d87a87966ee4a98 100644 --- a/styles/src/styleTree/commandPalette.ts +++ b/styles/src/styleTree/commandPalette.ts @@ -1,6 +1,5 @@ import Theme from "../themes/theme"; -import { colors } from "../tokens"; -import { text, backgroundColor, border, borderColor } from "./components"; +import { text, backgroundColor, border } from "./components"; export default function commandPalette(theme: Theme) { return { @@ -11,8 +10,8 @@ export default function commandPalette(theme: Theme) { background: backgroundColor(theme, "on300"), border: border(theme, "secondary"), padding: { - top: 3, - bottom: 3, + top: 2, + bottom: 2, left: 8, right: 8, },