damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit bfb47c0f855772f739b146a7f8232a9cbb9d2c4d
parent 9e7e128d9a18e52a32b54bac6cbe47fd848e6fa3
Author: Joel Klabo <joelklabo@gmail.com>
Date:   Mon,  3 Apr 2023 14:48:54 -0700

Update Control Style to Stand Out More

Diffstat:
Mdamus/Views/Profile/EditPictureControl.swift | 11++++++++++-
Mdamus/Views/Profile/ProfilePictureSelector.swift | 3+--
2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/damus/Views/Profile/EditPictureControl.swift b/damus/Views/Profile/EditPictureControl.swift @@ -42,12 +42,21 @@ struct EditPictureControl: View { } label: { if uploadObserver.isLoading { ProgressView() + .progressViewStyle(CircularProgressViewStyle(tint: DamusColors.purple)) + .padding(10) + .background(DamusColors.white.opacity(0.7)) + .clipShape(Circle()) + .shadow(color: DamusColors.purple, radius: 15, x: 0, y: 0) } else { Image("camera") .resizable() .scaledToFit() .frame(width: 25, height: 25) - .foregroundColor(DamusColors.white) + .foregroundColor(DamusColors.purple) + .padding(10) + .background(DamusColors.white.opacity(0.7)) + .clipShape(Circle()) + .shadow(color: DamusColors.purple, radius: 15, x: 0, y: 0) } } .sheet(isPresented: $show_camera) { diff --git a/damus/Views/Profile/ProfilePictureSelector.swift b/damus/Views/Profile/ProfilePictureSelector.swift @@ -1,5 +1,5 @@ // -// ProfilePictureSelector.swift +// EditProfilePictureView.swift // damus // // Created by William Casarin on 2022-05-20. @@ -31,7 +31,6 @@ struct EditProfilePictureView: View { view.framePreloadCount = 3 } .scaledToFill() - .opacity(0.5) EditPictureControl(uploader: damus_state?.settings.default_media_uploader ?? .nostrBuild, pubkey: pubkey, image_url: $profile_url, uploadObserver: uploadObserver, callback: callback) }