Use theme store to pass color_scheme directly to components
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { ColorScheme } from "../theme/color_scheme"
|
||||
import { background, border, border_color, text } from "./components"
|
||||
import { interactive, toggleable } from "../element"
|
||||
import { useTheme } from "../theme"
|
||||
|
||||
export default function context_menu(): any {
|
||||
const theme = useTheme()
|
||||
|
||||
export default function context_menu(theme: ColorScheme): any {
|
||||
return {
|
||||
background: background(theme.middle),
|
||||
corner_radius: 10,
|
||||
|
||||
Reference in New Issue
Block a user