Update Control Style to Stand Out More
This commit is contained in:
committed by
William Casarin
parent
9e7e128d9a
commit
bfb47c0f85
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user