WIP snake_case 1/?

through `contact_notification`
This commit is contained in:
Nate Butler 2023-06-28 22:42:57 -04:00
parent 2e162f8af7
commit b015f506da
41 changed files with 302 additions and 386 deletions

View file

@ -1,12 +1,12 @@
import { ColorScheme } from "../theme/color_scheme"
import { background, border, borderColor, text } from "./components"
import { background, border, border_color, text } from "./components"
import { interactive, toggleable } from "../element"
export default function context_menu(colorScheme: ColorScheme): any {
const layer = colorScheme.middle
return {
background: background(layer),
cornerRadius: 10,
corner_radius: 10,
padding: 4,
shadow: colorScheme.popoverShadow,
border: border(layer),
@ -15,9 +15,9 @@ export default function context_menu(colorScheme: ColorScheme): any {
base: interactive({
base: {
iconSpacing: 8,
iconWidth: 14,
icon_width: 14,
padding: { left: 6, right: 6, top: 2, bottom: 2 },
cornerRadius: 6,
corner_radius: 6,
label: text(layer, "sans", { size: "sm" }),
keystroke: {
...text(layer, "sans", "variant", {
@ -60,7 +60,7 @@ export default function context_menu(colorScheme: ColorScheme): any {
}),
separator: {
background: borderColor(layer),
background: border_color(layer),
margin: { top: 2, bottom: 2 },
},
}