mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-10 12:19:28 +00:00
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.
23 lines
805 B
TypeScript
23 lines
805 B
TypeScript
import { ColorScheme } from "../themes/common/colorScheme"
|
|
import { background, border, text } from "./components"
|
|
|
|
export default function tooltip(colorScheme: ColorScheme) {
|
|
let layer = colorScheme.middle
|
|
return {
|
|
background: background(layer),
|
|
border: border(layer),
|
|
padding: { top: 4, bottom: 4, left: 8, right: 8 },
|
|
margin: { top: 6, left: 6 },
|
|
shadow: colorScheme.popoverShadow,
|
|
cornerRadius: 6,
|
|
text: text(layer, "sans", { size: "xs" }),
|
|
keystroke: {
|
|
background: background(layer, "on"),
|
|
cornerRadius: 4,
|
|
margin: { left: 6 },
|
|
padding: { left: 4, right: 4 },
|
|
...text(layer, "mono", "on", { size: "xs", weight: "bold" }),
|
|
},
|
|
maxTextWidth: 200,
|
|
}
|
|
}
|