darktable-org / darktable

darktable is an open source photography workflow application and raw developer
https://www.darktable.org
GNU General Public License v3.0
9.73k stars 1.14k forks source link

clock on splash screen in windows 10 #17730

Open esq4 opened 3 days ago

esq4 commented 3 days ago

Describe the bug

The cute clock on the splash screen doesn't look like the clock in Windows 10.

Steps to reproduce

Start darktable in Windows 10.

Expected behavior

No response

Logfile | Screenshot | Screencast

dt splash clock

Commit

No response

Where did you obtain darktable from?

self compiled

darktable version

4.9.0+925~gb7288e18b2

What OS are you using?

Windows

What is the version of your OS?

Windows 10

Describe your system?

No response

Are you using OpenCL GPU in darktable?

Yes

If yes, what is the GPU card and driver?

AMD Radeon RX 6600

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

ralfbrown commented 3 days ago

That's a placeholder glyph, which means the font doesn't actually contain that character.... I just double-checked, and the "timer clock" codepoint is defined in Unicde as of at least 2010, so it's not a matter of a new character that was defined after Windows 10 was released.

We'll need a Windows 10 user to find a font that contains that glyph, and then we can add it to the CSS style for the countdown text. Alternatively, if the hourglass (U+231B) is present in the default font, we could switch to that.

esq4 commented 3 days ago

U+23f2 is in the Times New Roman, Verdana.

upd. I found it in Linux. But I can't find it in Windows. It seems to ignore the range between U+22xx and U+25xx. :(

zisoft commented 3 days ago

BTW: The splash screen uses the Font DejaVu Serif which is not installed on all systems (at least not on macOS).

esq4 commented 3 days ago

I found (saw) it only in Segoe UI Symbol and Segoe UI Light on Windows.

ralfbrown commented 3 days ago

@esq4 Can you try adding the following to the CSS tweaks box on the General tab in global preferences?

#splashscreen-remaining { font-family: sans-serif, "Segoe UI Light", "Arial Unicode MS"; }

(and if that doesn't work, use Segoe UI Symbol instead of Light).

esq4 commented 1 day ago

@ralfbrown I tried them both. In my opinion, this is not a good solution: it is difficult to predict the effect on all OS versions other than Linux. I tried to do it with gif. The result is in the video.

https://github.com/user-attachments/assets/25f41b09-b754-4b79-bd4c-1b44ae70a450

Сould this be interesting?

ralfbrown commented 22 hours ago

I'm afraid I won't have time to revise the code to deal with an image rather than just plain text before the December release.... Someone else is welcome to propose a PR.