WIP snake_case 5/?
This commit is contained in:
parent
0627c198fd
commit
97dc7b77f4
23 changed files with 250 additions and 256 deletions
|
@ -2,37 +2,37 @@ import { ColorScheme } from "../theme/color_scheme"
|
|||
import { foreground, text } from "./components"
|
||||
import { interactive } from "../element"
|
||||
|
||||
const headerPadding = 8
|
||||
|
||||
export default function update_notification(colorScheme: ColorScheme): any {
|
||||
const layer = colorScheme.middle
|
||||
export default function update_notification(theme: ColorScheme): any {
|
||||
const header_padding = 8
|
||||
|
||||
return {
|
||||
message: {
|
||||
...text(layer, "sans", { size: "xs" }),
|
||||
margin: { left: headerPadding, right: headerPadding },
|
||||
...text(theme.middle, "sans", { size: "xs" }),
|
||||
margin: { left: header_padding, right: header_padding },
|
||||
},
|
||||
actionMessage: interactive({
|
||||
action_message: interactive({
|
||||
base: {
|
||||
...text(layer, "sans", { size: "xs" }),
|
||||
margin: { left: headerPadding, top: 6, bottom: 6 },
|
||||
...text(theme.middle, "sans", { size: "xs" }),
|
||||
margin: { left: header_padding, top: 6, bottom: 6 },
|
||||
},
|
||||
state: {
|
||||
hovered: {
|
||||
color: foreground(layer, "hovered"),
|
||||
color: foreground(theme.middle, "hovered"),
|
||||
},
|
||||
},
|
||||
}),
|
||||
dismissButton: interactive({
|
||||
dismiss_button: interactive({
|
||||
base: {
|
||||
color: foreground(layer),
|
||||
color: foreground(theme.middle),
|
||||
icon_width: 8,
|
||||
iconHeight: 8,
|
||||
icon_height: 8,
|
||||
button_width: 8,
|
||||
buttonHeight: 8,
|
||||
button_height: 8,
|
||||
},
|
||||
state: {
|
||||
hovered: {
|
||||
color: foreground(layer, "hovered"),
|
||||
color: foreground(theme.middle, "hovered"),
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue