@@ -16,16 +16,15 @@ module ViewConversations =
16 let viewConversations model =
16 let viewConversations model =
17 let contacts = model.Contacts.Values |> Seq.toList
17 let contacts = model.Contacts.Values |> Seq.toList
19− (Grid([], [ Dimension.Star; Dimension.Auto ]) {
19+ let content =
21 if contacts.IsEmpty then
20 if contacts.IsEmpty then
22− TextBlock("No contacts yet. Tap + to add one.")
22+ TextBlock("No contacts yet. Tap + to add one.")
23− .centerText()
23+ .centerText()
24− .foreground(SolidColorBrush(Colors.Gray))
24+ .foreground(SolidColorBrush(Colors.Gray))
27− if not contacts.IsEmpty then
28− ListBox(
27+ AnyView(ListBox(
31 let name = contactName model.Contacts c.Pubkey
30 let name = contactName model.Contacts c.Pubkey
@@ -74,21 +73,15 @@ module ViewConversations =
74 .onTapped (fun _ -> SetPage(Chat(c.Pubkey, "")))
73 .onTapped (fun _ -> SetPage(Chat(c.Pubkey, "")))
76 .styles(noListBoxPadding ())
75 .styles(noListBoxPadding ())
77− .background(Colors.White)
76+ .background(Colors.White))
81− (Grid([ Dimension.Auto; Dimension.Star; Dimension.Auto ], []) {
79+ (Grid([ Dimension.Auto; Dimension.Star; Dimension.Auto ], []) {
82− (smallImageButton None (SetPage Settings)).gridColumn (0)
80+ (smallImageButton None (SetPage Settings)).gridColumn (0)
83− (textField "" Search).margin(0.).margin(8.).gridColumn (1)
81+ (textField "" Search).margin(0.).margin(8.).gridColumn (1)
84− (smallTextButton "+" (SetPage(AddContact("", "")))).gridColumn (2)
82+ (smallTextButton "+" (SetPage(AddContact("", "")))).gridColumn (2)
86− .margin(20.)
84+ .margin(20.)
87− .horizontalAlignment (HorizontalAlignment.Stretch)
85+ .horizontalAlignment (HorizontalAlignment.Stretch)
89− .borderThickness(Avalonia.Thickness(0., 4., 0., 0.))
87+ withBottomBar bar content
90− .borderBrush(SolidColorBrush(Colors.Black))
91− .background(Constants.accentColor)