()
| 12380 | } |
| 12381 | |
| 12382 | func layoutFileManager() fyne.CanvasObject { |
| 12383 | session.Domain = "app.sign" |
| 12384 | |
| 12385 | frame := &iframe{} |
| 12386 | |
| 12387 | rectBox := canvas.NewRectangle(color.Transparent) |
| 12388 | rectBox.SetMinSize(fyne.NewSize(ui.MaxWidth*0.9, ui.MaxHeight*0.34)) |
| 12389 | rectWidth100 := canvas.NewRectangle(color.Transparent) |
| 12390 | rectWidth100.SetMinSize(fyne.NewSize(ui.Width*0.99, 10)) |
| 12391 | rectWidth90 := canvas.NewRectangle(color.Transparent) |
| 12392 | rectWidth90.SetMinSize(fyne.NewSize(ui.Width*0.9, 10)) |
| 12393 | rectSpacer := canvas.NewRectangle(color.Transparent) |
| 12394 | rectSpacer.SetMinSize(fyne.NewSize(6, 5)) |
| 12395 | |
| 12396 | heading := canvas.NewText("F I L E M A N A G E R", colors.Gray) |
| 12397 | heading.TextSize = 16 |
| 12398 | heading.Alignment = fyne.TextAlignCenter |
| 12399 | heading.TextStyle = fyne.TextStyle{Bold: true} |
| 12400 | |
| 12401 | labelResults := canvas.NewText(" RESULTS", colors.Gray) |
| 12402 | labelResults.TextSize = 14 |
| 12403 | labelResults.Alignment = fyne.TextAlignLeading |
| 12404 | labelResults.TextStyle = fyne.TextStyle{Bold: true} |
| 12405 | |
| 12406 | signedResults := []string{} |
| 12407 | signedData := binding.BindStringList(&signedResults) |
| 12408 | signedList := widget.NewListWithData(signedData, |
| 12409 | func() fyne.CanvasObject { |
| 12410 | return container.NewStack( |
| 12411 | container.NewHBox( |
| 12412 | container.NewStack( |
| 12413 | rectWidth90, |
| 12414 | widget.NewLabel(""), |
| 12415 | ), |
| 12416 | ), |
| 12417 | ) |
| 12418 | }, |
| 12419 | func(di binding.DataItem, co fyne.CanvasObject) { |
| 12420 | dat := di.(binding.String) |
| 12421 | str, err := dat.Get() |
| 12422 | if err != nil { |
| 12423 | return |
| 12424 | } |
| 12425 | |
| 12426 | split := strings.Split(str, "/") |
| 12427 | pos := len(split) - 1 |
| 12428 | name := strings.Split(split[pos], ";;;") |
| 12429 | |
| 12430 | co.(*fyne.Container).Objects[0].(*fyne.Container).Objects[0].(*fyne.Container).Objects[1].(*widget.Label).SetText(name[0]) |
| 12431 | }, |
| 12432 | ) |
| 12433 | |
| 12434 | verifiedResults := []string{} |
| 12435 | verifiedData := binding.BindStringList(&verifiedResults) |
| 12436 | verifiedList := widget.NewListWithData(verifiedData, |
| 12437 | func() fyne.CanvasObject { |
| 12438 | return container.NewStack( |
| 12439 | container.NewHBox( |
no test coverage detected