Skip to content

Commit

Permalink
Remove unused/redundant assets. (#3702)
Browse files Browse the repository at this point in the history
* Remove unused image assets.

* Remove unused/redundant colour assets.
  • Loading branch information
pixlwave authored Jan 27, 2025
1 parent 62611be commit b477a32
Show file tree
Hide file tree
Showing 17 changed files with 1 addition and 166 deletions.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions ElementX/Resources/Assets.xcassets/images/home/Contents.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
5 changes: 0 additions & 5 deletions ElementX/Sources/Generated/Assets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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
Expand Down
15 changes: 0 additions & 15 deletions ElementX/Sources/Other/SwiftUI/Layout/FullscreenDialog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,24 +148,18 @@ 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
}
}

private var capInsets: EdgeInsets {
switch self {
case .gradient:
EdgeInsets(top: 0, leading: 0, bottom: 250, trailing: 0)
case .bloom:
EdgeInsets() // This one covers the entire screen.
}
}

Expand Down Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit b477a32

Please sign in to comment.