2023-02-25 16:46:33 +00:00
|
|
|
import { ColorScheme } from "../themes/common/colorScheme"
|
|
|
|
import { background, foreground, text } from "./components"
|
2022-05-11 13:13:37 +00:00
|
|
|
|
2023-02-25 16:46:33 +00:00
|
|
|
const avatarSize = 12
|
|
|
|
const headerPadding = 8
|
2022-05-11 21:20:05 +00:00
|
|
|
|
2022-09-21 19:39:59 +00:00
|
|
|
export default function contactNotification(colorScheme: ColorScheme): Object {
|
2023-02-25 16:46:33 +00:00
|
|
|
let layer = colorScheme.lowest
|
|
|
|
return {
|
|
|
|
headerAvatar: {
|
|
|
|
height: avatarSize,
|
|
|
|
width: avatarSize,
|
|
|
|
cornerRadius: 6,
|
|
|
|
},
|
|
|
|
headerMessage: {
|
|
|
|
...text(layer, "sans", { size: "xs" }),
|
|
|
|
margin: { left: headerPadding, right: headerPadding },
|
|
|
|
},
|
|
|
|
headerHeight: 18,
|
|
|
|
bodyMessage: {
|
|
|
|
...text(layer, "sans", { size: "xs" }),
|
|
|
|
margin: { left: avatarSize + headerPadding, top: 6, bottom: 6 },
|
|
|
|
},
|
|
|
|
button: {
|
|
|
|
...text(layer, "sans", "on", { size: "xs" }),
|
|
|
|
background: background(layer, "on"),
|
|
|
|
padding: 4,
|
|
|
|
cornerRadius: 6,
|
|
|
|
margin: { left: 6 },
|
|
|
|
hover: {
|
|
|
|
background: background(layer, "on", "hovered"),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
dismissButton: {
|
|
|
|
color: foreground(layer, "variant"),
|
|
|
|
iconWidth: 8,
|
|
|
|
iconHeight: 8,
|
|
|
|
buttonWidth: 8,
|
|
|
|
buttonHeight: 8,
|
|
|
|
hover: {
|
|
|
|
color: foreground(layer, "hovered"),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2022-07-16 15:53:27 +00:00
|
|
|
}
|