Skip to content

Commit a820d5a

Browse files
committed
switch to new progressview
1 parent cefb0c5 commit a820d5a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Coder-Desktop/Coder-Desktop/Views/FileSync/FilePicker.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ struct FilePicker: View {
2323
VStack(spacing: 0) {
2424
if model.rootIsLoading {
2525
Spacer()
26-
ProgressView()
27-
.controlSize(.large)
26+
CircularProgressView(value: nil)
2827
Spacer()
2928
} else if let loadError = model.error {
3029
Text("\(loadError.description)")
@@ -125,7 +124,8 @@ struct FilePickerEntry: View {
125124
Label {
126125
Text(entry.name)
127126
ZStack {
128-
ProgressView().controlSize(.small).opacity(entry.isLoading && entry.error == nil ? 1 : 0)
127+
CircularProgressView(value: nil, strokeWidth: 2, diameter: 10)
128+
.opacity(entry.isLoading && entry.error == nil ? 1 : 0)
129129
Image(systemName: "exclamationmark.triangle.fill")
130130
.opacity(entry.error != nil ? 1 : 0)
131131
}

Coder-Desktop/Coder-Desktop/Views/FileSync/FileSyncSessionModal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct FileSyncSessionModal<VPN: VPNService, FS: FileSyncDaemon>: View {
6868
Text(msg).foregroundStyle(.secondary)
6969
}
7070
if loading {
71-
ProgressView().controlSize(.small)
71+
CircularProgressView(value: nil, strokeWidth: 3, diameter: 15)
7272
}
7373
Button("Cancel", action: { dismiss() }).keyboardShortcut(.cancelAction)
7474
Button(existingSession == nil ? "Add" : "Save") { Task { await submit() }}

Coder-Desktop/Coder-Desktop/Views/VPN/WorkspaceAppIcon.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct WorkspaceAppIcon: View {
1919
) { $0 }
2020
placeholder: {
2121
if app.icon != nil {
22-
ProgressView().controlSize(.small)
22+
CircularProgressView(value: nil, strokeWidth: 2, diameter: 10)
2323
} else {
2424
Image(systemName: "questionmark").frame(
2525
width: Theme.Size.appIconWidth,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy