ui: size subtitle glass to text within eighty percent width

This commit is contained in:
2026-10-13 08:45:18 +02:00
parent 1aa5454194
commit d1f0d83e4c
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -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)