mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-08 20:34:01 +00:00
28 lines
707 B
Swift
28 lines
707 B
Swift
import SwiftUI
|
|
|
|
enum OpenClawActivityType {
|
|
static var subheadSemiBold: Font {
|
|
display(size: 15, weight: .semibold)
|
|
}
|
|
|
|
static var subheadBold: Font {
|
|
display(size: 15, weight: .bold)
|
|
}
|
|
|
|
static var caption: Font {
|
|
body(size: 12)
|
|
}
|
|
|
|
static func symbol(size: CGFloat, weight: Font.Weight) -> Font {
|
|
.system(size: size, weight: weight)
|
|
}
|
|
|
|
private static func display(size: CGFloat, weight: Font.Weight) -> Font {
|
|
.custom("RedHatDisplay-Regular", size: size, relativeTo: .subheadline).weight(weight)
|
|
}
|
|
|
|
private static func body(size: CGFloat) -> Font {
|
|
.custom("Inter-Regular", size: size, relativeTo: .caption)
|
|
}
|
|
}
|