updated ui for macos and ios
This commit is contained in:
1 parent
df7ab24677
commit
e3fcee3351
10 files changed
+619
-576
No files matched your search
@@ -9,7 +9,6 @@ struct ConnectionBanner: View {
|
||||
case .connected:
|
||||
if model.isArchiveSyncing || !model.isOMEMOReady {
|
||||
banner(
|
||||
// text: model.isArchiveSyncing ? "Синхронизация истории…" : "Публикация ключей OMEMO…",
|
||||
text: "Обновление",
|
||||
color: .clear,
|
||||
progress: true
|
||||
@@ -19,27 +18,9 @@ struct ConnectionBanner: View {
|
||||
.font(.headline)
|
||||
}
|
||||
case .connecting:
|
||||
// banner(icon: "antenna.radiowaves.left.and.right", text: "Подключение…", color: .clear, progress: true)
|
||||
banner(text: "Подключение", color: .clear, progress: true)
|
||||
case .disconnected:
|
||||
banner(text: "Ожидание сети", color: .clear, progress: true)
|
||||
// HStack(spacing: 8) {
|
||||
// Image(systemName: "wifi.exclamationmark")
|
||||
// Text(reason ?? "Нет соединения")
|
||||
// .lineLimit(1)
|
||||
// Spacer()
|
||||
// Button { Task { await model.reconnect() } } label: {
|
||||
// Label("Обновить", systemImage: "arrow.clockwise")
|
||||
// }
|
||||
// .buttonStyle(.borderless)
|
||||
// .fontWeight(.semibold)
|
||||
// }
|
||||
// .font(.caption)
|
||||
// .foregroundStyle(.white)
|
||||
// .padding(.horizontal, 12)
|
||||
// .padding(.vertical, 8)
|
||||
//// .background(Color.red.opacity(0.88))
|
||||
// .background(Color.clear)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,13 +30,9 @@ struct ConnectionBanner: View {
|
||||
ProgressView().controlSize(.mini).tint(.white)
|
||||
}
|
||||
Text(text)
|
||||
// Spacer()
|
||||
}
|
||||
.font(.caption)
|
||||
.foregroundStyle(.white)
|
||||
// .padding(.horizontal, 12)
|
||||
// .padding(.vertical, 8)
|
||||
// .background(color.opacity(0.88))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user