refactor: replace speed button icon with text label#503
refactor: replace speed button icon with text label#503Samillion merged 1 commit intoSamillion:mainfrom
Conversation
44fbe6a to
4a1fe77
Compare
|
Nice catch, I didn't notice it was placed there in that layout. Fixed now. Also, do we prefer it to be "x1" or "1x"? |
I have no idea lol. What's the standard on this? I don't even know where to look because I never use speed control features anywhere. |
|
@Keith94 What do you think? |
|
@Xurdejl Good find. I like that one. |
Checked it with my OpenSans Medium, it looks fine. Not sure about all other fonts though. |
I like it, and matches other UI use for speed. Nice.
It should display fine regardless of font. Either way, if we get reports about it, easy to replace. This one is a solid choice I think. |
4a1fe77 to
284030e
Compare
|
What about changing tooltip to "Playback speed" or just "Speed" for simplicity. |
-return string.format("%g", mp.get_property_number("speed", 1)) "×"
+return string.format("%g", mp.get_property_number("speed", 1)) .. "×" |
We can do a locale review of all phrases, see what could improve in another issue/PR. Then I'll use Google Translate to adjust the other languages. |
284030e to
df2b3a2
Compare
Let’s just pretend I didn’t fumble a 5 letter copy paste |
|
I think no one but me sees when I start a review or comment directly to code in a PR. I'm not actually sure. I tested it before I posted the diff comment, I even started a review for the new font PR, it's still there. Can you guys see it in #498 ?
Is it a repo setting that I'm not aware of? |
|
Either way, looks good to me. Want me to merge or do you want to adjust anything else? |
I can't
no idea since I don't use github that often
it's ready |
|
Merging. Thank you very much for the effort. |
@Keith94 Should I open an issue to see if phrases need adjusting? |
Yeah sure, we can go through them. |





Also moved some code into a function to make it easier to read. Initially I thought about rounding the number but seems like mpv already handles that.