-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: apply margin to osd-margin-y
#499
Conversation
10ff45e
to
d5c66f9
Compare
I still think it's user's duty to use a reasonable OSD setting. Not every script would care about their personal settings. But I am not against this PR. And I think it could be improved a little.
|
I don't actually see this as an issue. It's not like top bar just shows itself unannounced, you have to hover it, so you control when it overlays stuff. And offsetting osd by top bar size is not bullet proof as top bar might have a 2nd and 3rd line that would still overlay osd. Also I think this would case less space for stats, which I personally don't like, and yeah, the jumping would be annoying :) Overall I think this brings more issues than it solves. I've personally never had an issue of not being able to read osd messages because of uosc. Margins make sense for console as you want to make sure it's readable as much as possible even when UI is on, but I don't share the same sentiment with osd messages. If you are using uosc UI, you don't care about them, and if you care about them, you can just hide uosc. The issue from the discussion that spawned this is that top bar is popping up when it shouldn't, which is a different problem. |
The reason I jumped at this is that I was already bothered by the top bar covering osd messages (to the point of being unreadable) months ago, and I couldn't find a good config that would work well in both windowed and fullscreen, so I ended up with something that was just "good enough". Back then I didn't think of dynamically adjusting it with the margin. While it's true that the jumping around of the stats isn't great, I don't think it would be much of a problem in practice, after all how often do you switch between showing/hiding the top bar?
I forgot that the volume bar can also be on the left, I'll adjust that later if this doesn't get shut down completely. |
It's up to the usecase. For instance, watching a images dir. |
I forgot about persistency. If people use something like To comment on the actual PR, we need to account for:
|
d5c66f9
to
e3ad934
Compare
Left and right Also there was some stuff in the top bar that must have gotten copied over from the timeline but were unused, so I removed them. Do you still want it to be configurable? |
The margins were already set for `osc-margins` and `user-data/osc/margins`, but osd messages have their own properties `osd-margin-x` and `osd-margin-y`. Offsetting `osd-margin-x` and `osd-margin-y` by our margin prevents overlap of osd messages with the GUI.
Avoids a jumping margin when the top bar is only temporarily visible. The margin now also respects multiple title lines (alt-title, chapter)
e3ad934
to
90cb2ef
Compare
I've implemented the "bottom margin for persistent elements only" thing because I wanted to try it out. |
Hm... I'm not 100% sure we should margin this only for persistent elements. Does anyone else have an input on this? I'm indifferent. |
My opinion is in line with @hooke007. It needs to be configurable. The jumping stats are really annoying. |
When does it even jump anymore? The only annoying jumping I can see is when dragging the timeline because the player gets paused while doing so, triggering "paused" persistency. Maybe we want to avoid triggering persistency in that case? After all we avoid the paused indicator flashing as well. But ok I'll add an option later, then everyone's happy. |
I don't think this is a candidate for a new option. I assume everyone want's to see the UI that is being displayed, so there shouldn't be an option to makes stuff impossible to read. Instead we need to figure out the ideal compromise. It seems that it should probably be just a check for |
Haven't checked the latested commits yet. Ideally, I already use the correct setting to make sure that my osd is always visible, then i don't want other scripts would force its position to be changed. |
All right. |
Paused persistency now isn't triggered by dragging in the timeline. |
The margins were already set for
osc-margins
anduser-data/osc/margins
, but osd messages have their own propertiesosd-margin-y
andosd-margin-x
.Offsetting
osd-margin-y
by our margin prevents overlap of osd messages with the GUI.ref. #498