(username string)
| 8922 | } |
| 8923 | |
| 8924 | func layoutIdentityDetail(username string) fyne.CanvasObject { |
| 8925 | var address string |
| 8926 | |
| 8927 | wSpacer := widget.NewLabel(" ") |
| 8928 | |
| 8929 | rectWidth := canvas.NewRectangle(color.Transparent) |
| 8930 | rectWidth.SetMinSize(fyne.NewSize(ui.MaxWidth*0.99, 10)) |
| 8931 | |
| 8932 | rectWidth90 := canvas.NewRectangle(color.Transparent) |
| 8933 | rectWidth90.SetMinSize(fyne.NewSize(ui.Width, 10)) |
| 8934 | |
| 8935 | frame := &iframe{} |
| 8936 | |
| 8937 | heading := canvas.NewText("I D E N T I T Y D E T A I L", colors.Gray) |
| 8938 | heading.TextSize = 16 |
| 8939 | heading.Alignment = fyne.TextAlignCenter |
| 8940 | heading.TextStyle = fyne.TextStyle{Bold: true} |
| 8941 | |
| 8942 | rectSpacer := canvas.NewRectangle(color.Transparent) |
| 8943 | rectSpacer.SetMinSize(fyne.NewSize(6, 5)) |
| 8944 | |
| 8945 | labelUsername := canvas.NewText("REGISTERED USERNAME", colors.Gray) |
| 8946 | labelUsername.TextSize = 11 |
| 8947 | labelUsername.Alignment = fyne.TextAlignCenter |
| 8948 | labelUsername.TextStyle = fyne.TextStyle{Bold: true} |
| 8949 | |
| 8950 | labelTransfer := canvas.NewText(" T R A N S F E R ", colors.Gray) |
| 8951 | labelTransfer.TextSize = 11 |
| 8952 | labelTransfer.Alignment = fyne.TextAlignCenter |
| 8953 | labelTransfer.TextStyle = fyne.TextStyle{Bold: true} |
| 8954 | |
| 8955 | menuLabel := canvas.NewText(" M O R E O P T I O N S ", colors.Gray) |
| 8956 | menuLabel.TextSize = 11 |
| 8957 | menuLabel.Alignment = fyne.TextAlignCenter |
| 8958 | menuLabel.TextStyle = fyne.TextStyle{Bold: true} |
| 8959 | |
| 8960 | sep := canvas.NewRectangle(colors.Gray) |
| 8961 | sep.SetMinSize(fyne.NewSize(ui.Width*0.2, 2)) |
| 8962 | |
| 8963 | line1 := container.NewVBox( |
| 8964 | layout.NewSpacer(), |
| 8965 | sep, |
| 8966 | layout.NewSpacer(), |
| 8967 | ) |
| 8968 | |
| 8969 | sep2 := canvas.NewRectangle(colors.Gray) |
| 8970 | sep2.SetMinSize(fyne.NewSize(ui.Width*0.2, 2)) |
| 8971 | |
| 8972 | line2 := container.NewVBox( |
| 8973 | layout.NewSpacer(), |
| 8974 | sep2, |
| 8975 | layout.NewSpacer(), |
| 8976 | ) |
| 8977 | |
| 8978 | linkBack := widget.NewHyperlinkWithStyle("Back to Identity", nil, fyne.TextAlignCenter, fyne.TextStyle{Bold: true}) |
| 8979 | linkBack.OnTapped = func() { |
| 8980 | removeOverlays() |
| 8981 | } |
no test coverage detected