Update iconography visible in launch video (#1762)

This commit is contained in:
Doug
2023-09-21 12:38:09 +01:00
committed by GitHub
parent 057c33e680
commit 4e6fe278db
198 changed files with 688 additions and 532 deletions
@@ -16,21 +16,23 @@
import SwiftUI
struct FixedIconSizeLabelStyle: LabelStyle {
@ScaledMetric private var iconSize: CGFloat
extension LabelStyle where Self == MenuSheetLabelStyle {
/// A label style for labels that are within a menu that is being presented as a sheet.
static var menuSheet: Self { MenuSheetLabelStyle() }
}
init(iconSize: Double = 24.0) {
_iconSize = .init(wrappedValue: iconSize)
}
/// The style used for labels that are part of a menu that's presented as
/// a sheet as `TimelineItemMenu` and `RoomAttachmentPicker`.
struct MenuSheetLabelStyle: LabelStyle {
var spacing: CGFloat = 16
func makeBody(configuration: Configuration) -> some View {
HStack(spacing: spacing) {
configuration
.icon
.frame(width: iconSize, height: iconSize)
configuration.icon
configuration.title
}
.multilineTextAlignment(.leading)
.frame(maxWidth: .infinity, alignment: .leading)
.padding(16)
}
}