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: {
|
} label: {
|
||||||
if uploadObserver.isLoading {
|
if uploadObserver.isLoading {
|
||||||
ProgressView()
|
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 {
|
} else {
|
||||||
Image("camera")
|
Image("camera")
|
||||||
.resizable()
|
.resizable()
|
||||||
.scaledToFit()
|
.scaledToFit()
|
||||||
.frame(width: 25, height: 25)
|
.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) {
|
.sheet(isPresented: $show_camera) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// ProfilePictureSelector.swift
|
// EditProfilePictureView.swift
|
||||||
// damus
|
// damus
|
||||||
//
|
//
|
||||||
// Created by William Casarin on 2022-05-20.
|
// Created by William Casarin on 2022-05-20.
|
||||||
@@ -31,7 +31,6 @@ struct EditProfilePictureView: View {
|
|||||||
view.framePreloadCount = 3
|
view.framePreloadCount = 3
|
||||||
}
|
}
|
||||||
.scaledToFill()
|
.scaledToFill()
|
||||||
.opacity(0.5)
|
|
||||||
|
|
||||||
EditPictureControl(uploader: damus_state?.settings.default_media_uploader ?? .nostrBuild, pubkey: pubkey, image_url: $profile_url, uploadObserver: uploadObserver, callback: callback)
|
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