mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-30 20:45:49 +00:00
* ios: toolbar and message entry area background color * remove VStack, opacity * ios: adjust compose view background color to match top bar (#4456) * search * replace BlurView with .thinMaterial * context item background with shadow * search * Revert "context item background with shadow" This reverts commitfc4ad32417. * rework shadow * shadow on both sides * Revert "shadow on both sides" This reverts commita07920af91. * Revert "rework shadow" This reverts commit78728263fb. * dividers * remove paddings * height * search * focus search * color * search background --------- Co-authored-by: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com>
40 lines
1.0 KiB
Swift
40 lines
1.0 KiB
Swift
//
|
|
// ComposeFileView.swift
|
|
// SimpleX (iOS)
|
|
//
|
|
// Created by JRoberts on 04.05.2022.
|
|
// Copyright © 2022 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ComposeFileView: View {
|
|
@EnvironmentObject var theme: AppTheme
|
|
let fileName: String
|
|
let cancelFile: (() -> Void)
|
|
let cancelEnabled: Bool
|
|
|
|
var body: some View {
|
|
HStack(alignment: .center, spacing: 4) {
|
|
Image(systemName: "doc.fill")
|
|
.resizable()
|
|
.aspectRatio(contentMode: .fit)
|
|
.frame(width: 30, height: 30)
|
|
.foregroundColor(Color(uiColor: .tertiaryLabel))
|
|
.padding(.leading, 4)
|
|
Text(fileName)
|
|
Spacer()
|
|
if cancelEnabled {
|
|
Button { cancelFile() } label: {
|
|
Image(systemName: "multiply")
|
|
}
|
|
}
|
|
}
|
|
.padding(.vertical, 1)
|
|
.padding(.trailing, 12)
|
|
.frame(height: 54)
|
|
.background(theme.appColors.sentMessage)
|
|
.frame(maxWidth: .infinity)
|
|
}
|
|
}
|