Skip to content

Commit

Permalink
Add beta ribbon to CommandLineIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
zenangst committed May 20, 2024
1 parent dada71f commit f40da72
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions App/Sources/UI/Views/Icons/CommandLineIconView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@ struct CommandLineIconView: View {
.roundedContainer(cornerRadius, padding: 0, margin: 0)
}
}
.overlay(alignment: .topTrailing) {
Rectangle()
.fill(
LinearGradient(stops: [
.init(color: Color(.systemYellow.withSystemEffect(.rollover)), location: 0),
.init(color: Color(.systemYellow), location: 0.5),
], startPoint: .top, endPoint: .bottom)
)
.frame(width: size * 0.7, height: size * 0.2)
.offset(x: size * 0.2, y: -size * 0.1)
.rotationEffect(.degrees(45))
}
.overlay { iconBorder(size) }
.frame(width: size, height: size)
.fixedSize()
Expand Down

0 comments on commit f40da72

Please sign in to comment.