mirror of
https://github.com/yattee/yattee.git
synced 2026-07-21 14:52:03 +00:00
Split macOS player mode into window toggle + floating control
Replace the three-way macOS Player Mode picker (Separate Window / Floating Window / Inline) with a single 'Play in a separate window' toggle in Playback settings, and move the always-on-top choice to a pin button in the player's top bar (window mode only). Floating was really a transient window property (NSWindow.level), not a peer of the window/inline structural choice — so it belongs on a live control, not in Settings. The pin state persists across sessions. - Replace MacPlayerMode enum with macPlayerSeparateWindow / macPlayerFloating bool settings - Branch runtime presentation and window level off the two bools - Add pin.fill/pin toggle to MacOSPlayerControlsView top bar - Update localization; drop obsolete playerMode strings and enum tests
This commit is contained in:
@@ -7234,6 +7234,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"player.controls.keepOnTop" : {
|
||||
"comment" : "Toggles whether the player window floats above other windows",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Keep on Top"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"player.controls.pause" : {
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
@@ -12442,46 +12453,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.playback.macOS.playerMode" : {
|
||||
"comment" : "macOS player mode setting",
|
||||
"settings.playback.macOS.separateWindow" : {
|
||||
"comment" : "Toggle: play the expanded video in a separate window vs. an inline sheet",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Player Mode"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.playback.macOS.playerMode.floatingWindow" : {
|
||||
"comment" : "Floating window player mode - stays on top of other windows",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Floating Window"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.playback.macOS.playerMode.inline" : {
|
||||
"comment" : "Inline (sheet) player mode",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Inline (Sheet)"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"settings.playback.macOS.playerMode.window" : {
|
||||
"comment" : "Separate window player mode",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"value" : "Separate Window"
|
||||
"value" : "Play in a separate window"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user