Add LSP logs clear button

This commit is contained in:
Kirill Bulatov
2023-08-31 18:31:21 +03:00
parent ddc6214216
commit 7b5974e8e9
4 changed files with 56 additions and 8 deletions
+8 -1
View File
@@ -1,7 +1,8 @@
import { useTheme } from "../common"
import { toggleable_icon_button } from "../component/icon_button"
import { interactive } from "../element"
import { interactive, toggleable } from "../element"
import { background, border, foreground, text } from "./components"
import { text_button } from "../component";
export const toolbar = () => {
const theme = useTheme()
@@ -34,5 +35,11 @@ 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" } })
}
}),
}
}
+2
View File
@@ -19,6 +19,8 @@ export default function workspace(): any {
const { is_light } = theme
const TOOLBAR_ITEM_SPACING = 8;
return {
background: background(theme.lowest),
blank_pane: {