Use theme store to pass color_scheme directly to components
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { ColorScheme } from "../theme/color_scheme"
|
||||
import { with_opacity } from "../theme/color"
|
||||
import { text, border, background, foreground } from "./components"
|
||||
import { interactive, toggleable } from "../element"
|
||||
import { useTheme } from "../common"
|
||||
|
||||
export default function tab_bar(): any {
|
||||
const theme = useTheme()
|
||||
|
||||
export default function tab_bar(theme: ColorScheme): any {
|
||||
const height = 32
|
||||
|
||||
const active_layer = theme.highest
|
||||
|
||||
Reference in New Issue
Block a user