mirror of
https://github.com/yattee/yattee.git
synced 2026-05-13 10:55:03 +00:00
Enlarge video card and row fonts on macOS
This commit is contained in:
@@ -30,6 +30,10 @@ struct VideoCardView: View {
|
|||||||
private var titleFont: Font { isCompact ? .subheadline : .body }
|
private var titleFont: Font { isCompact ? .subheadline : .body }
|
||||||
private var authorFont: Font { isCompact ? .caption : .subheadline }
|
private var authorFont: Font { isCompact ? .caption : .subheadline }
|
||||||
private var metadataFont: Font { isCompact ? .caption : .caption }
|
private var metadataFont: Font { isCompact ? .caption : .caption }
|
||||||
|
#elseif os(macOS)
|
||||||
|
private var titleFont: Font { .body }
|
||||||
|
private var authorFont: Font { isCompact ? .caption : .subheadline }
|
||||||
|
private var metadataFont: Font { isCompact ? .caption2 : .caption }
|
||||||
#else
|
#else
|
||||||
private var titleFont: Font { .subheadline }
|
private var titleFont: Font { .subheadline }
|
||||||
private var authorFont: Font { isCompact ? .caption2 : .caption }
|
private var authorFont: Font { isCompact ? .caption2 : .caption }
|
||||||
|
|||||||
@@ -38,6 +38,16 @@ struct VideoRowView: View {
|
|||||||
private var metadataFont: Font {
|
private var metadataFont: Font {
|
||||||
style == .compact ? .caption2 : .caption
|
style == .compact ? .caption2 : .caption
|
||||||
}
|
}
|
||||||
|
#elseif os(macOS)
|
||||||
|
private var titleFont: Font {
|
||||||
|
style == .compact ? .subheadline : .body
|
||||||
|
}
|
||||||
|
private var authorFont: Font {
|
||||||
|
style == .compact ? .caption : .subheadline
|
||||||
|
}
|
||||||
|
private var metadataFont: Font {
|
||||||
|
style == .compact ? .caption2 : .caption
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
private var titleFont: Font {
|
private var titleFont: Font {
|
||||||
.subheadline
|
.subheadline
|
||||||
|
|||||||
Reference in New Issue
Block a user