Add notification icon
This commit is contained in:
parent
0bd48be2c2
commit
8f6ffe2c6d
@ -103,3 +103,20 @@ extension Icon {
|
|||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extension Icon {
|
||||||
|
|
||||||
|
struct Bell: ContentIcon {
|
||||||
|
|
||||||
|
static let id = "icon-bell"
|
||||||
|
|
||||||
|
static let attributes = "width='16' height='16' fill='currentColor'"
|
||||||
|
|
||||||
|
static let content =
|
||||||
|
"""
|
||||||
|
<path d="M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2M8 2h-.8A4 4 0 0 0 4 6a21.7 21.7 0 0 1-1.1 6H13a21.7 21.7 0 0 1-1-6 4 4 0 0 0-3.2-4zm6.2 10c.2.4.5.8.8 1H1c.3-.2.6-.6.8-1C2.7 10.2 3 6.9 3 6a5 5 0 0 1 4-4.9 1 1 0 1 1 2 0A5 5 0 0 1 13 6c0 .9.3 4.2 1.2 6"/>
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,6 +17,8 @@ enum PageIcon: String, CaseIterable {
|
|||||||
|
|
||||||
case video
|
case video
|
||||||
|
|
||||||
|
case bell
|
||||||
|
|
||||||
// MARK: Statistics
|
// MARK: Statistics
|
||||||
|
|
||||||
case statisticsTime = "time"
|
case statisticsTime = "time"
|
||||||
@ -59,29 +61,30 @@ enum PageIcon: String, CaseIterable {
|
|||||||
|
|
||||||
var icon: ContentIcon.Type {
|
var icon: ContentIcon.Type {
|
||||||
switch self {
|
switch self {
|
||||||
case .statisticsTime: return Icon.Statistics.Time.self
|
case .statisticsTime: Icon.Statistics.Time.self
|
||||||
case .statisticsElevationUp: return Icon.Statistics.ElevationUp.self
|
case .statisticsElevationUp: Icon.Statistics.ElevationUp.self
|
||||||
case .statisticsElevationDown: return Icon.Statistics.ElevationDown.self
|
case .statisticsElevationDown: Icon.Statistics.ElevationDown.self
|
||||||
case .statisticsDistance: return Icon.Statistics.Distance.self
|
case .statisticsDistance: Icon.Statistics.Distance.self
|
||||||
case .statisticsEnergy: return Icon.Statistics.Energy.self
|
case .statisticsEnergy: Icon.Statistics.Energy.self
|
||||||
case .buttonDownload: return Icon.ArrowDown.self
|
case .buttonDownload: Icon.ArrowDown.self
|
||||||
case .buttonExternalLink: return Icon.ArrowRight.self
|
case .buttonExternalLink: Icon.ArrowRight.self
|
||||||
case .buttonGitLink: return Icon.Git.self
|
case .buttonGitLink: Icon.Git.self
|
||||||
case .buttonPlay: return Icon.Play.self
|
case .buttonPlay: Icon.Play.self
|
||||||
case .audioPlayerPlaylist: return Icon.AudioPlayer.Playlist.self
|
case .audioPlayerPlaylist: Icon.AudioPlayer.Playlist.self
|
||||||
case .audioPlayerClose: return Icon.AudioPlayer.Close.self
|
case .audioPlayerClose: Icon.AudioPlayer.Close.self
|
||||||
case .audioPlayerPlay: return Icon.AudioPlayer.Play.self
|
case .audioPlayerPlay: Icon.AudioPlayer.Play.self
|
||||||
case .audioPlayerPause: return Icon.AudioPlayer.Pause.self
|
case .audioPlayerPause: Icon.AudioPlayer.Pause.self
|
||||||
case .audioPlayerPrevious: return Icon.AudioPlayer.Previous.self
|
case .audioPlayerPrevious: Icon.AudioPlayer.Previous.self
|
||||||
case .audioPlayerNext: return Icon.AudioPlayer.Next.self
|
case .audioPlayerNext: Icon.AudioPlayer.Next.self
|
||||||
case .calendar: return Icon.Calendar.self
|
case .calendar: Icon.Calendar.self
|
||||||
case .clockFill: return Icon.ClockFill.self
|
case .clockFill: Icon.ClockFill.self
|
||||||
case .file: return Icon.File.self
|
case .file: Icon.File.self
|
||||||
case .globe: return Icon.Globe.self
|
case .globe: Icon.Globe.self
|
||||||
case .location: return Icon.Location.self
|
case .location: Icon.Location.self
|
||||||
case .poster: return Icon.Poster.self
|
case .poster: Icon.Poster.self
|
||||||
case .video: return Icon.Video.self
|
case .video: Icon.Video.self
|
||||||
case .leftRightArrow:return Icon.LeftRightArrow.self
|
case .leftRightArrow: Icon.LeftRightArrow.self
|
||||||
|
case .bell: Icon.Bell.self
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,6 +97,7 @@ enum PageIcon: String, CaseIterable {
|
|||||||
case .location: "Location"
|
case .location: "Location"
|
||||||
case .poster: "Poster"
|
case .poster: "Poster"
|
||||||
case .video: "Video"
|
case .video: "Video"
|
||||||
|
case .bell: "Bell"
|
||||||
case .leftRightArrow: "LeftRightArrow"
|
case .leftRightArrow: "LeftRightArrow"
|
||||||
case .buttonExternalLink: "Button: External Link"
|
case .buttonExternalLink: "Button: External Link"
|
||||||
case .buttonGitLink: "Button: Git Link"
|
case .buttonGitLink: "Button: Git Link"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user