Tune styles and disclosable elements

This commit is contained in:
Mikayla
2023-08-23 16:25:40 -07:00
parent bfd3e53dcd
commit 2a182b6a7b
5 changed files with 93 additions and 30 deletions
+12 -4
View File
@@ -1,18 +1,26 @@
import { toggle_label_button_style } from "../component/label_button"
import { useTheme } from "../common"
import { text_button } from "../component/text_button"
import { toggleable_icon_button } from "../component/icon_button"
import { icon_button } from "../component/icon_button"
import { text } from "./components"
import { toggleable } from "../element"
export default function contacts_panel(): any {
const theme = useTheme()
return {
button: text_button({}),
toggle: toggle_label_button_style({ active_color: "accent" }),
toggle: toggleable({
base: text_button({}),
state: {
active: {
...text_button({ color: "accent" })
}
}
}),
disclosure: {
...text(theme.lowest, "sans", "base"),
button: toggleable_icon_button(theme, {}),
button: icon_button({ variant: "ghost" }),
spacing: 4,
}
}