Style the clear button better, add border to button constructor options

This commit is contained in:
Kirill Bulatov
2023-08-31 18:31:21 +03:00
parent 7b5974e8e9
commit fe2300fdaa
4 changed files with 25 additions and 5 deletions
+15 -2
View File
@@ -37,8 +37,21 @@ export const toolbar = () => {
}),
toggleable_text_tool: toggleable({
state: {
inactive: text_button({ variant: "ghost", layer: theme.highest, disabled: true, margin: { right: 4 }, text_properties: { size: "sm" } }),
active: text_button({ variant: "ghost", layer: theme.highest, margin: { right: 4 }, text_properties: { size: "sm" } })
inactive: text_button({
disabled: true,
variant: "ghost",
layer: theme.highest,
margin: { left: 4 },
text_properties: { size: "sm" },
border: border(theme.middle),
}),
active: text_button({
variant: "ghost",
layer: theme.highest,
margin: { left: 4 },
text_properties: { size: "sm" },
border: border(theme.middle),
}),
}
}),
}
-2
View File
@@ -19,8 +19,6 @@ export default function workspace(): any {
const { is_light } = theme
const TOOLBAR_ITEM_SPACING = 8;
return {
background: background(theme.lowest),
blank_pane: {