Skip to content

refactor: replace speed button icon with text label#503

Merged
Samillion merged 1 commit intoSamillion:mainfrom
nekoxuee:refactor/speed-display
Mar 8, 2026
Merged

refactor: replace speed button icon with text label#503
Samillion merged 1 commit intoSamillion:mainfrom
nekoxuee:refactor/speed-display

Conversation

@nekoxuee
Copy link
Copy Markdown
Contributor

@nekoxuee nekoxuee commented Mar 8, 2026

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.

@Samillion
Copy link
Copy Markdown
Owner

Awesome. Could you move it in modern-compact to match modern placement please?

modern-compact:

image

modern:
image

@nekoxuee nekoxuee force-pushed the refactor/speed-display branch from 44fbe6a to 4a1fe77 Compare March 8, 2026 18:56
@nekoxuee
Copy link
Copy Markdown
Contributor Author

nekoxuee commented Mar 8, 2026

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"?

@Samillion
Copy link
Copy Markdown
Owner

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.

@Samillion
Copy link
Copy Markdown
Owner

@Keith94 What do you think? x1 or 1x?

@Keith94
Copy link
Copy Markdown
Contributor

Keith94 commented Mar 8, 2026

I'm more familiar with seeing 1x. Maybe the x can be "floating" in the middle.

Screenshot_20260308-132900

@nekoxuee
Copy link
Copy Markdown
Contributor Author

nekoxuee commented Mar 8, 2026

That's the multiplication sing ×. This is how It would look:
image

edit: the only problem I could think by using that sign is with fonts rendering it differently

@Keith94
Copy link
Copy Markdown
Contributor

Keith94 commented Mar 8, 2026

@Xurdejl Good find. I like that one.

@Keith94
Copy link
Copy Markdown
Contributor

Keith94 commented Mar 8, 2026

edit: the only problem I could think by using that sign is with fonts rendering it differently

Checked it with my OpenSans Medium, it looks fine. Not sure about all other fonts though.

@Samillion
Copy link
Copy Markdown
Owner

That's the multiplication sing ×.

I like it, and matches other UI use for speed. Nice.

edit: the only problem I could think by using that sign is with fonts rendering it differently

Checked it with my OpenSans Medium, it looks fine. Not sure about all other fonts though.

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.

@nekoxuee nekoxuee force-pushed the refactor/speed-display branch from 4a1fe77 to 284030e Compare March 8, 2026 20:09
@Keith94
Copy link
Copy Markdown
Contributor

Keith94 commented Mar 8, 2026

What about changing tooltip to "Playback speed" or just "Speed" for simplicity.

@Samillion
Copy link
Copy Markdown
Owner

-return string.format("%g", mp.get_property_number("speed", 1)) "×"
+return string.format("%g", mp.get_property_number("speed", 1)) .. "×"

@Samillion
Copy link
Copy Markdown
Owner

What about changing tooltip to "Playback speed" or just "Speed" for simplicity.

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.

@nekoxuee nekoxuee force-pushed the refactor/speed-display branch from 284030e to df2b3a2 Compare March 8, 2026 21:10
@nekoxuee
Copy link
Copy Markdown
Contributor Author

nekoxuee commented Mar 8, 2026

-return string.format("%g", mp.get_property_number("speed", 1)) "×"
+return string.format("%g", mp.get_property_number("speed", 1)) .. "×"

Let’s just pretend I didn’t fumble a 5 letter copy paste

@Samillion
Copy link
Copy Markdown
Owner

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 ?

image

Is it a repo setting that I'm not aware of?

@Samillion
Copy link
Copy Markdown
Owner

Either way, looks good to me. Want me to merge or do you want to adjust anything else?

@nekoxuee
Copy link
Copy Markdown
Contributor Author

nekoxuee commented Mar 8, 2026

Can you guys see it in #498 ?

I can't

Is it a repo setting that I'm not aware of?

no idea since I don't use github that often

Either way, looks good to me. Want me to merge or do you want to adjust anything else?

it's ready

@Samillion
Copy link
Copy Markdown
Owner

Merging. Thank you very much for the effort.

@Samillion Samillion merged commit d350c1c into Samillion:main Mar 8, 2026
@nekoxuee nekoxuee deleted the refactor/speed-display branch March 8, 2026 22:05
@Samillion
Copy link
Copy Markdown
Owner

What about changing tooltip to "Playback speed" or just "Speed" for simplicity.

@Keith94 Should I open an issue to see if phrases need adjusting?

@Keith94
Copy link
Copy Markdown
Contributor

Keith94 commented Mar 8, 2026

What about changing tooltip to "Playback speed" or just "Speed" for simplicity.

@Keith94 Should I open an issue to see if phrases need adjusting?

Yeah sure, we can go through them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants