mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-10 12:19:28 +00:00
10a30cf330
In the system color PR I updated the prettier config to match what we use on zed.dev. I didn't want to format all of styles as it would add a lot of unrelated line changes to that PR. Doing that format now.
29 lines
896 B
TypeScript
29 lines
896 B
TypeScript
import { ColorScheme } from "../themes/common/colorScheme"
|
|
import { background, border, text } from "./components"
|
|
|
|
export default function contactsPopover(colorScheme: ColorScheme) {
|
|
let layer = colorScheme.middle
|
|
const sidePadding = 12
|
|
return {
|
|
background: background(layer),
|
|
cornerRadius: 6,
|
|
padding: { top: 6 },
|
|
margin: { top: -6 },
|
|
shadow: colorScheme.popoverShadow,
|
|
border: border(layer),
|
|
width: 300,
|
|
height: 400,
|
|
inviteRowHeight: 28,
|
|
inviteRow: {
|
|
padding: {
|
|
left: sidePadding,
|
|
right: sidePadding,
|
|
},
|
|
border: border(layer, { top: true }),
|
|
text: text(layer, "sans", "variant", { size: "sm" }),
|
|
hover: {
|
|
text: text(layer, "sans", "hovered", { size: "sm" }),
|
|
},
|
|
},
|
|
}
|
|
}
|