Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused/redundant assets. #3702

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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.

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.

Loading