MCPcopy Create free account
hub / github.com/DEROFDN/Engram / layoutXSWDAppManager

Function layoutXSWDAppManager

layouts.go:7651–8012  ·  view source on GitHub ↗

Layout details of an app connected through web socket

(ad *xswd.ApplicationData)

Source from the content-addressed store, hash-verified

7649
7650// Layout details of an app connected through web socket
7651func layoutXSWDAppManager(ad *xswd.ApplicationData) fyne.CanvasObject {
7652 session.Domain = "app.cyberdeck.manager"
7653
7654 frame := &iframe{}
7655
7656 rectBox := canvas.NewRectangle(color.Transparent)
7657 rectBox.SetMinSize(fyne.NewSize(ui.MaxWidth*0.99, ui.MaxHeight*0.58))
7658
7659 rectWidth90 := canvas.NewRectangle(color.Transparent)
7660 rectWidth90.SetMinSize(fyne.NewSize(ui.Width, 10))
7661
7662 rectSpacer := canvas.NewRectangle(color.Transparent)
7663 rectSpacer.SetMinSize(fyne.NewSize(6, 5))
7664
7665 labelName := widget.NewRichText(&widget.TextSegment{
7666 Text: ad.Name,
7667 Style: widget.RichTextStyle{
7668 Alignment: fyne.TextAlignCenter,
7669 ColorName: theme.ColorNameForeground,
7670 SizeName: theme.SizeNameHeadingText,
7671 TextStyle: fyne.TextStyle{Bold: true},
7672 }})
7673 labelName.Wrapping = fyne.TextWrapWord
7674
7675 labelDesc := widget.NewRichText(&widget.TextSegment{
7676 Text: ad.Description,
7677 Style: widget.RichTextStyle{
7678 Alignment: fyne.TextAlignCenter,
7679 ColorName: theme.ColorNameForeground,
7680 TextStyle: fyne.TextStyle{Bold: false},
7681 }})
7682 labelDesc.Wrapping = fyne.TextWrapWord
7683
7684 labelID := canvas.NewText(" APP ID", colors.Gray)
7685 labelID.TextSize = 14
7686 labelID.Alignment = fyne.TextAlignLeading
7687 labelID.TextStyle = fyne.TextStyle{Bold: true}
7688
7689 textID := widget.NewRichTextFromMarkdown(ad.Id)
7690 textID.Wrapping = fyne.TextWrapWord
7691
7692 labelSignature := canvas.NewText(" SIGNATURE", colors.Gray)
7693 labelSignature.TextSize = 14
7694 labelSignature.Alignment = fyne.TextAlignLeading
7695 labelSignature.TextStyle = fyne.TextStyle{Bold: true}
7696
7697 textSignature := widget.NewRichTextFromMarkdown("")
7698 textSignature.Wrapping = fyne.TextWrapWord
7699
7700 labelURL := canvas.NewText(" URL", colors.Gray)
7701 labelURL.TextSize = 14
7702 labelURL.Alignment = fyne.TextAlignLeading
7703 labelURL.TextStyle = fyne.TextStyle{Bold: true}
7704
7705 textURL := widget.NewRichTextFromMarkdown(ad.Url)
7706 textURL.Wrapping = fyne.TextWrapWord
7707
7708 labelPermissions := canvas.NewText(" PERMISSIONS", colors.Gray)

Callers 1

layoutCyberdeckFunction · 0.85

Calls 6

removeOverlaysFunction · 0.85
layoutTransitionFunction · 0.85
layoutCyberdeckFunction · 0.85
getContractHeaderFunction · 0.85
handleImageURLFunction · 0.85
NewVScrollFunction · 0.85

Tested by

no test coverage detected