improve action menu l&f
This commit is contained in:
parent
9293ff0b33
commit
c0caa7016b
2 changed files with 11 additions and 3 deletions
|
|
@ -227,6 +227,7 @@ function ui_build() {
|
||||||
h.div([
|
h.div([
|
||||||
// create and bind file loading elements
|
// create and bind file loading elements
|
||||||
h.div({ _: "file", class: "head" }),
|
h.div({ _: "file", class: "head" }),
|
||||||
|
h.div({ class: "vsep" }),
|
||||||
h.button({ _: 'import', onclick: file.import }, [
|
h.button({ _: 'import', onclick: file.import }, [
|
||||||
h.input({
|
h.input({
|
||||||
id: "import", type: "file", class: ["hide"], multiple: true,
|
id: "import", type: "file", class: ["hide"], multiple: true,
|
||||||
|
|
@ -234,20 +235,26 @@ function ui_build() {
|
||||||
})
|
})
|
||||||
]),
|
]),
|
||||||
h.button({ _: 'export', onclick: file.export }),
|
h.button({ _: 'export', onclick: file.export }),
|
||||||
// h.div({ class: "vsep" }),
|
]),
|
||||||
|
h.div([
|
||||||
h.div({ _: "view", class: "head" }),
|
h.div({ _: "view", class: "head" }),
|
||||||
|
h.div({ class: "vsep" }),
|
||||||
h.button({ _: 'visible', onclick() { selection.visible({ toggle: true }) } }),
|
h.button({ _: 'visible', onclick() { selection.visible({ toggle: true }) } }),
|
||||||
h.button({ _: 'bounds', onclick() { selection.boundsBox({ toggle: true }) } }),
|
h.button({ _: 'bounds', onclick() { selection.boundsBox({ toggle: true }) } }),
|
||||||
h.button({ _: 'gridlines', onclick() { api.grid() } }),
|
h.button({ _: 'gridlines', onclick() { api.grid() } }),
|
||||||
h.button({ _: 'wireframe', onclick() { api.wireframe() } }),
|
h.button({ _: 'wireframe', onclick() { api.wireframe() } }),
|
||||||
h.button({ _: 'normals', onclick() { api.normals() } }),
|
h.button({ _: 'normals', onclick() { api.normals() } }),
|
||||||
// h.div({ class: "vsep" }),
|
]),
|
||||||
|
h.div([
|
||||||
h.div({ _: "edit", class: "head" }),
|
h.div({ _: "edit", class: "head" }),
|
||||||
|
h.div({ class: "vsep" }),
|
||||||
h.button({ _: 'duplicate', onclick: tool.duplicate }),
|
h.button({ _: 'duplicate', onclick: tool.duplicate }),
|
||||||
h.button({ _: 'merge', onclick: tool.merge }),
|
h.button({ _: 'merge', onclick: tool.merge }),
|
||||||
h.button({ _: 'invert', onclick: tool.invert }),
|
h.button({ _: 'invert', onclick: tool.invert }),
|
||||||
// h.div({ class: "vsep" }),
|
]),
|
||||||
|
h.div([
|
||||||
h.div({ _: "fix", class: "head" }),
|
h.div({ _: "fix", class: "head" }),
|
||||||
|
h.div({ class: "vsep" }),
|
||||||
h.button({ _: 'analyze', onclick: tool.analyze }),
|
h.button({ _: 'analyze', onclick: tool.analyze }),
|
||||||
h.button({ _: 'repair', onclick: tool.repair }),
|
h.button({ _: 'repair', onclick: tool.repair }),
|
||||||
h.button({ _: 'clean', onclick: tool.clean }),
|
h.button({ _: 'clean', onclick: tool.clean }),
|
||||||
|
|
|
||||||
|
|
@ -353,6 +353,7 @@ button:hover {
|
||||||
margin: 3px 0 0 3px;
|
margin: 3px 0 0 3px;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
gap: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#actions > div {
|
#actions > div {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue