Skip to content

Commit

Permalink
update widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jun 28, 2024
1 parent 7861c7b commit 68b3bc9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,18 @@ func testLayoutCpu() {
// VGrab: true,
//})

path := "hyperdbg-cli.exe"
cpu := LayoutCpu(path)
fileName := "hyperdbg-cli.exe"
asm := LayoutDisassemblyTable(fileName)
TopHSplit := widget.NewHSplit(
widget.NewTab("cpu with fast call", "todo fast call layout", true, asm),
widget.NewTab("reg", "todo reg", true, widget.NewButton("todo reg")),
0.3)
content.AddChild(asm)
return
content.AddChild(TopHSplit) // todo bug

return
cpu := LayoutCpu(fileName)
content.AddChild(cpu)
})
}
Expand Down
2 changes: 1 addition & 1 deletion ux.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (p *TagPage) Layout() unison.Paneler {

func NewTabPage() *TagPage {
t := newToolbar()
widget.NewToolBar(t.Elems()...) //todo return canvas ?
widget.NewToolBar(t.Elems()...) // todo return canvas ?
dock := unison.NewDock()
dock.AsPanel().SetLayoutData(&unison.FlexLayoutData{
HSpan: 1,
Expand Down

0 comments on commit 68b3bc9

Please sign in to comment.