Bug 92374 - UI: Update the old black&white custom mouse cursors
Summary: UI: Update the old black&white custom mouse cursors
Status: RESOLVED DUPLICATE of bug 123266
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-27 09:54 UTC by Rimas Kudelis (only watching bugs where I'm in CC list)
Modified: 2020-04-21 22:11 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rimas Kudelis (only watching bugs where I'm in CC list) 2015-06-27 09:54:18 UTC
When LibreOffice needs to use a custom cursor, which the underlying OS does not provide, it currently uses some really old renderings (which I guess might date back even to 90-ies) for those custom cursors.

Needless to say, these cursors look ugly. It would be great to have them updated. And if "ugly" is not reason enough, how about "all of these cursors are only defined in one size, thus completely disregarding hi-dpi screens (for example, even stock Windows 7 aero_arrow cursor contains two renderings of the cursor: 32x32 and 48x48, both in 32-bit colors).

At the same time, perhaps it would make sense to also drop the ones that are not used anywhere in LibO (I couldn't find any uses of some of the cursors). Additionally, I'm sure there are cases where we are using custom cursors even though the OS provides us with stock ones. I've cleaned that up for Windows in bugs #53148 and #53151, but the situation is likely unchanged for OS X (e.g. #52263, which probably requires special consideration) and Linux.

Current cursor files reside in the following places in the source tree:
Windows: http://cgit.freedesktop.org/libreoffice/core/tree/vcl/win/source/src
OS X: http://cgit.freedesktop.org/libreoffice/core/tree/vcl/osx/res/cursors
Linux: http://cgit.freedesktop.org/libreoffice/core/tree/vcl/inc/unx/x11_cursors and probably http://cgit.freedesktop.org/libreoffice/core/tree/vcl/unx/generic/dtrans

I found it's probably easiest to look for the places defining cursors by Grokking for the word 'airbrush': http://opengrok.libreoffice.org/search?q=airbrush&project=core. Airbrush is one of the cursors that appears to be defined, but never used.

By the way, it might be nice to also generate Unix cursors from PNG files and hotspot definitions during compile time instead of having to define them as two header files. This would make them actually viewable and easier to replace.
Comment 1 Adolfo Jayme Barrientos 2015-06-27 19:23:18 UTC
Thanks. → Enhancement
Comment 2 andreas_k 2020-04-21 22:11:33 UTC
In bug 123266 the curser images get updated so can this bug be closed?
Comment 3 andreas_k 2020-04-21 22:11:59 UTC

*** This bug has been marked as a duplicate of bug 123266 ***