mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Remove unused/redundant assets. (#3702)
* Remove unused image assets. * Remove unused/redundant colour assets.
This commit is contained in:
@@ -27,8 +27,6 @@ internal enum Asset {
|
||||
internal enum Colors {
|
||||
internal static let accentColor = ColorAsset(name: "colors/accent-color")
|
||||
internal static let backgroundColor = ColorAsset(name: "colors/background-color")
|
||||
internal static let brandColor = ColorAsset(name: "colors/brand-color")
|
||||
internal static let grabber = ColorAsset(name: "colors/grabber")
|
||||
}
|
||||
internal enum Images {
|
||||
internal static let appLogo = ImageAsset(name: "images/app-logo")
|
||||
@@ -37,15 +35,12 @@ internal enum Asset {
|
||||
internal static let closeRte = ImageAsset(name: "images/close-rte")
|
||||
internal static let composerAttachment = ImageAsset(name: "images/composer-attachment")
|
||||
internal static let stopRecording = ImageAsset(name: "images/stop-recording")
|
||||
internal static let settingsIconWithBadge = ImageAsset(name: "images/settings-icon-with-badge")
|
||||
internal static let joinRoomBackground = ImageAsset(name: "images/join-room-background")
|
||||
internal static let launchBackground = ImageAsset(name: "images/launch-background")
|
||||
internal static let locationMarkerShape = ImageAsset(name: "images/location-marker-shape")
|
||||
internal static let mediaPause = ImageAsset(name: "images/media-pause")
|
||||
internal static let mediaPlay = ImageAsset(name: "images/media-play")
|
||||
internal static let notificationsPromptGraphic = ImageAsset(name: "images/notifications-prompt-graphic")
|
||||
internal static let pollWinner = ImageAsset(name: "images/poll-winner")
|
||||
internal static let waitingGradient = ImageAsset(name: "images/waiting-gradient")
|
||||
}
|
||||
}
|
||||
// swiftlint:enable identifier_name line_length nesting type_body_length type_name
|
||||
|
||||
@@ -148,15 +148,11 @@ struct FullscreenDialog<Content: View, BottomContent: View>: View {
|
||||
enum FullscreenDialogBackground {
|
||||
/// The bottom gradient from the FTUE flow.
|
||||
case gradient
|
||||
/// The subtle bloom from the room discovery and permalink flows.
|
||||
case bloom
|
||||
|
||||
private var asset: ImageAsset {
|
||||
switch self {
|
||||
case .gradient:
|
||||
Asset.Images.backgroundBottom
|
||||
case .bloom:
|
||||
Asset.Images.joinRoomBackground
|
||||
}
|
||||
}
|
||||
|
||||
@@ -164,8 +160,6 @@ enum FullscreenDialogBackground {
|
||||
switch self {
|
||||
case .gradient:
|
||||
EdgeInsets(top: 0, leading: 0, bottom: 250, trailing: 0)
|
||||
case .bloom:
|
||||
EdgeInsets() // This one covers the entire screen.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -195,15 +189,6 @@ struct FullscreenDialog_Previews: PreviewProvider, TestablePreview {
|
||||
.background()
|
||||
.backgroundStyle(.compound.bgCanvasDefault)
|
||||
.previewDisplayName("Gradient")
|
||||
|
||||
FullscreenDialog(topPadding: UIConstants.iconTopPaddingToNavigationBar, background: .bloom) {
|
||||
content
|
||||
} bottomContent: {
|
||||
buttons
|
||||
}
|
||||
.background()
|
||||
.backgroundStyle(.compound.bgCanvasDefault)
|
||||
.previewDisplayName("Bloom")
|
||||
}
|
||||
|
||||
private static var content: some View {
|
||||
|
||||
@@ -91,7 +91,7 @@ struct MessageComposer: View {
|
||||
|
||||
private var resizeGrabber: some View {
|
||||
Capsule()
|
||||
.foregroundColor(Asset.Colors.grabber.swiftUIColor)
|
||||
.foregroundStyle(.tertiary)
|
||||
.frame(width: 36, height: 5)
|
||||
.padding(.vertical, 8)
|
||||
.frame(maxWidth: .infinity)
|
||||
|
||||
Reference in New Issue
Block a user