2022-05-17 14:08:14 +00:00
|
|
|
import Theme from "../themes/common/theme";
|
2022-05-11 13:13:37 +00:00
|
|
|
import { backgroundColor, iconColor, text } from "./components";
|
|
|
|
|
2022-05-11 21:20:05 +00:00
|
|
|
const avatarSize = 12;
|
|
|
|
const headerPadding = 8;
|
|
|
|
|
2022-05-11 18:39:01 +00:00
|
|
|
export default function contactNotification(theme: Theme): Object {
|
2022-05-11 13:13:37 +00:00
|
|
|
return {
|
|
|
|
headerAvatar: {
|
2022-05-11 21:20:05 +00:00
|
|
|
height: avatarSize,
|
|
|
|
width: avatarSize,
|
2022-05-11 13:13:37 +00:00
|
|
|
cornerRadius: 6,
|
|
|
|
},
|
|
|
|
headerMessage: {
|
|
|
|
...text(theme, "sans", "primary", { size: "xs" }),
|
2022-05-11 21:20:05 +00:00
|
|
|
margin: { left: headerPadding, right: headerPadding }
|
2022-05-11 13:13:37 +00:00
|
|
|
},
|
|
|
|
headerHeight: 18,
|
|
|
|
bodyMessage: {
|
|
|
|
...text(theme, "sans", "secondary", { size: "xs" }),
|
2022-05-11 21:20:05 +00:00
|
|
|
margin: { left: avatarSize + headerPadding, top: 6, bottom: 6 },
|
2022-05-11 13:13:37 +00:00
|
|
|
},
|
|
|
|
button: {
|
|
|
|
...text(theme, "sans", "primary", { size: "xs" }),
|
|
|
|
background: backgroundColor(theme, "on300"),
|
|
|
|
padding: 4,
|
|
|
|
cornerRadius: 6,
|
|
|
|
margin: { left: 6 },
|
2022-05-11 21:20:05 +00:00
|
|
|
hover: {
|
|
|
|
background: backgroundColor(theme, "on300", "hovered")
|
|
|
|
}
|
2022-05-11 13:13:37 +00:00
|
|
|
},
|
|
|
|
dismissButton: {
|
|
|
|
color: iconColor(theme, "secondary"),
|
|
|
|
iconWidth: 8,
|
|
|
|
iconHeight: 8,
|
|
|
|
buttonWidth: 8,
|
|
|
|
buttonHeight: 8,
|
2022-05-11 21:20:05 +00:00
|
|
|
hover: {
|
|
|
|
color: iconColor(theme, "primary")
|
|
|
|
}
|
2022-05-11 13:13:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|