ui: size subtitle glass to text within eighty percent width
This commit is contained in:
@@ -1328,7 +1328,7 @@ private struct CaptionSelector: NSViewRepresentable {
|
||||
imageScaling = .scaleProportionallyUpOrDown
|
||||
(cell as? NSPopUpButtonCell)?.arrowPosition = .noArrow
|
||||
let symbol = NSImage(systemSymbolName: "captions.bubble", accessibilityDescription: "Subtitles")?
|
||||
.withSymbolConfiguration(.init(pointSize: 16, weight: .regular))
|
||||
.withSymbolConfiguration(.init(pointSize: 13, weight: .regular))
|
||||
captionItem.image = symbol
|
||||
contentTintColor = SunsetPalette.text
|
||||
toolTip = "Subtitles"
|
||||
@@ -1739,10 +1739,10 @@ private struct PlayerContent: View {
|
||||
.foregroundStyle(.white)
|
||||
.multilineTextAlignment(.center)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(12)
|
||||
.background(PlayerGlass().opacity(0.6)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 12)).allowsHitTesting(false))
|
||||
.frame(maxWidth: geometry.size.width * 0.8)
|
||||
.padding(.horizontal, 8)
|
||||
.padding(.bottom, model.controlsVisible
|
||||
? (model.isCompact ? compactControlHeight + 20 : 110)
|
||||
|
||||
Reference in New Issue
Block a user