Add basic styling to keystrokes in command palette

This commit is contained in:
Max Brunsfeld
2022-04-18 17:11:37 -07:00
parent 3901d9d544
commit bde52d5c93
7 changed files with 96 additions and 15 deletions
+2
View File
@@ -2,6 +2,7 @@ import Theme from "../themes/theme";
import chatPanel from "./chatPanel";
import { text } from "./components";
import contactsPanel from "./contactsPanel";
import commandPalette from "./commandPalette";
import editor from "./editor";
import projectPanel from "./projectPanel";
import search from "./search";
@@ -29,6 +30,7 @@ export default function app(theme: Theme): Object {
},
},
},
commandPalette: commandPalette(theme),
projectPanel: projectPanel(theme),
chatPanel: chatPanel(theme),
contactsPanel: contactsPanel(theme),
+21
View File
@@ -0,0 +1,21 @@
import Theme from "../themes/theme";
import { text, backgroundColor, border } from "./components";
export default function commandPalette(theme: Theme) {
return {
keystrokeSpacing: 8,
key: {
text: text(theme, "mono", "secondary", { size: "xs" }),
cornerRadius: 3,
background: backgroundColor(theme, "info", "base"),
border: border(theme, "info"),
padding: {
left: 3,
right: 3,
},
margin: {
left: 3
},
}
}
}
+1 -1
View File
@@ -38,7 +38,7 @@ export default function selectorModal(theme: Theme): Object {
},
inputEditor: {
background: backgroundColor(theme, 500),
corner_radius: 6,
cornerRadius: 6,
placeholderText: text(theme, "sans", "placeholder"),
selection: player(theme, 1).selection,
text: text(theme, "mono", "primary"),