Skip to content

Commit

Permalink
ui: change post view background to be all black
Browse files Browse the repository at this point in the history
Changelog-Changed: made post view background all black and adjust spacing between image and camera buttons
  • Loading branch information
ericholguin committed Oct 29, 2023
1 parent 7710839 commit e4a2bb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion damus/Views/PostView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ struct PostView: View {
}

var AttachmentBar: some View {
HStack(alignment: .center) {
HStack(alignment: .center, spacing: 15) {
ImageButton
CameraButton
}
Expand Down Expand Up @@ -428,6 +428,7 @@ struct PostView: View {
}
}
}
.background(DamusColors.adaptableWhite.edgesIgnoringSafeArea(.all))
.sheet(isPresented: $attach_media) {
ImagePicker(uploader: damus_state.settings.default_media_uploader, sourceType: .photoLibrary, pubkey: damus_state.pubkey, image_upload_confirm: $image_upload_confirm) { img in
self.mediaToUpload = .image(img)
Expand Down
1 change: 1 addition & 0 deletions damus/Views/TextViewWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ struct TextViewWrapper: UIViewRepresentable {

func makeUIView(context: Context) -> UITextView {
let textView = UITextView()
textView.backgroundColor = UIColor(DamusColors.adaptableWhite)
textView.delegate = context.coordinator

// Disable scrolling (this view will expand vertically as needed to fit text)
Expand Down

0 comments on commit e4a2bb3

Please sign in to comment.