summaryrefslogtreecommitdiff
path: root/src/cursors
Commit message (Collapse)AuthorAgeFilesLines
* remove legacy X cursorHEADmasterJakub Steiner2023-05-104-276/+358
| | | | | | - legacy apps relying on it will be happier with Adwaita not overriding it. Fixes https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/issues/231
* port cursor tooling to python3Jakub Steiner2023-05-102-1006/+1321
| | | | Fixes https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/issues/234
* W32: Update build filesРуслан Ижбулатов2016-08-231-1/+3
| | | | | | | | To catch up with the commits: 859de0a - add CSS context-menu cursor 8e13694 - dnd-no-drop cursor f1f480b - don't symlink hand2 to hand1
* anicursorgen: change the PNG compression use logicРуслан Ижбулатов2016-08-221-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously anicursorgen used PNG compression for any cursor frames larger than 48x48, for no immediately apparent reason, even to me (the author of anicursorgen). Tests on Windows 10 revealed that this logic is faulty: Windows 10 does not recognize PNG-compressed frames as valid, thus all Adwaita cursors are effectively 32x32 and 48x48 (all larger frames are ignored by the OS). This becomes obvious in HiDPI mode, where the OS will try to use larger cursor sizes. Windows 10 loads up uncompressed cursors just fine, and stock Windows 10 cursors are uncompressed. However, animated cursors with large numbers of frames, when stored without compression, are also ignored by the OS (probably due to their massive size). My hypothesis is that the correct way of using PNG compression is to compress or not compress *all* frames, not just the large ones. However, verifying that requires more tests (or asking MS developers). In the end i've settled enabling PNG compression for all frames in animated cursors and disabling PNG compression for all frames in non-animated cursors. This works for Adwaita, and that's all we really need.
* anicursorgen: sort cursors (hires ones first)Руслан Ижбулатов2016-08-221-0/+21
| | | | | | This should not affect anything, but Windows cursors have multi-resolution frames sorted in larger-frames-first order, so we should probably do the same.
* don't symlink hand2 to hand1Jakub Steiner2016-05-251-1/+1
| | | | | | | based on a patch by Lubosz Sarnecki <lubosz.sarnecki@collabora.co.uk> https://bugzilla.gnome.org/show_bug.cgi?id=765323
* remove symlinking from make.shJakub Steiner2016-05-171-86/+0
| | | | - this happens in the Makefile now
* symlink no-drop to dnd-no-dropJakub Steiner2016-05-172-1/+1
| | | | - fix 96x96 variant
* dnd-no-drop cursorJakub Steiner2016-05-177-7/+58
|
* proper symlink for grabJakub Steiner2016-05-171-1/+1
|
* add CSS context-menu cursorJakub Steiner2016-05-178-5/+82
| | | | | | - sadly the python script no longer works for me, lots of manual labour. Prone to make a mistake, so beware
* Fix make-w32.sh to actually use L and XL imagesРуслан Ижбулатов2016-03-201-58/+67
| | | | | | | | | | The last step, to call anicursorgen.py and make the actual .cur and .ani files misses the crucial element - it does not pick different .in files depending on which theme it generates. Without that the Adwaita-Large and Adwaita-ExtraLarge are just copies of Adwaita cursor theme. https://bugzilla.gnome.org/show_bug.cgi?id=763927
* Update make-w32.sh: rename "crosshair" to "cell"Руслан Ижбулатов2016-03-031-1/+1
| | | | | | This was changed in make.sh, but not in make-w32.sh. https://bugzilla.gnome.org/show_bug.cgi?id=763032
* Feed Inkscape stdin in a separate threadРуслан Ижбулатов2016-03-031-5/+20
| | | | | | | | | | | | | Writing directly into stdin of child processes from the main thread turned out to cause deadlocks. Fix this by creating a thread for each child and feeding its stdin from that thread. Also, instead of writing to stdin multiple times (for each command), compose a list of commands in memory and then write them all at once. Also, use EOFError exception instead of non-existing UnexpectedEndOfStream. https://bugzilla.gnome.org/show_bug.cgi?id=763030
* anicursorgen: change default shadow colorРуслан Ижбулатов2016-03-031-2/+2
| | | | | | | | | | | | 0x80808080 was a mistake, it produces good-looking shadow on white background, but doesn't work as intended on darker backgrounds. Instead of making the shadow gray and 50% opaque, make it completely black, but only 25% opaque. This way it still looks appropriately-grey on white background, but quickly fades to black as the background gets darker. Or, to put it another way, it doesn't lighten dark backrounds. https://bugzilla.gnome.org/show_bug.cgi?id=763034
* cursors: provide KDE namesJakub Steiner2015-08-041-0/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=753219
* Add shadow generation and a make-script for W32 cursorsРуслан Ижбулатов2015-05-192-20/+149
| | | | | | | | | | | | | | | | | | * anicursorgen.py now can generate shadows similar to those that W32 WM generates for system cursors. This is enabled by the -s option and disabled (overriding previous -s occurrences) by the -n option. Options -r, -d, -b and -c are available to customize the shadow generator. This will generate shadows even for parts of cursors that normally have no shadows in Adwaita (the sub-icons attached to dnd and left_ptr variants). However, this is consistent with how W32 WM draws shadows (i.e. IDC_HELP). * New make-w32.sh, which is just like make.sh, except that it generates W32 cursors. Any arguments given to make-w32.sh will be passed along to anicursorgen.py that it runs. It knows enough to pass an extra -n when generating a 'tcross' cursor. https://bugzilla.gnome.org/show_bug.cgi?id=749559
* Major cursor realignmentРуслан Ижбулатов2015-05-14863-1266/+1332
| | | | | | | | | | * Align slices to the integer grid * Ensure that similar cursors are aligned to their slices identically * Fix some stroke widths to be integral * Try to align as many edges as possible to the 0+N*3 coordinate lines * Reduce size of some cursors that were too big https://bugzilla.gnome.org/show_bug.cgi?id=749389
* regenerate cursors using the new script & more accurate hotspotsJakub Steiner2015-05-1356-727/+727
| | | | | + ignore hotspot chache + make anicursorgen.py executable
* Add anicursorgen.pyРуслан Ижбулатов2015-05-131-0/+297
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=749053
* Major renderpngs modificationsРуслан Ижбулатов2015-05-131-18/+471
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Depends on Python Pillow library now * Add the --remove-shadows option. Renders cursors without shadows. This depends on the shadows being in a separate layer in adwaita.svg * Add the --hotspots option. Renders hotspots into separate pngs, then finds its coordinates and writes out the xcursorgen input file accordingly. This depends on hotspots layer being present in the adwaita.svg. * Add the --scales option. Makes all cursor canvases one size higher than they normally are (24->32, 32->48 etc). Renders extra cursor variants that are 125% and 150% larger than the nominal size (hence the canvas size increase - otherwise scaled up versions won't fit at all). These scaled versions will look 25% and 50% smaller than normal, respectively. * Add the --min-canvas-size option. Makes all cursor canvases at least this big (padding smaller cursors when necessary). * Add the --fps option. Used to adjust the frame duration written into xcursorgen input files. * Add the --anicursorgen option. Changes the format of the files into something that anicursorgen understands better (changes frame duration from milliseconds to jiffies). * Add the --corner-align option. Aligns cursors to the top-left corner instead of centering them on the canvas. * Add the --invert option. Inverts the color (turning black-fill-white-outlines cursors into white-fill-black-outlines ones) * Inkscape is now being run in shell mode (one instance, fed with commands via stdin). * Add the --number-of-renderers option. Allows multiple Inkscape instances to be run in parallel for rendering speed increase on multicore systems. * Filter SVG files from memory to avoid leaking a file descriptor * Make slices and hotspots normally invisible https://bugzilla.gnome.org/show_bug.cgi?id=749053
* add InvertFilterРуслан Ижбулатов2015-05-131-0/+14
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=749053
* Add a hotspots layerРуслан Ижбулатов2015-05-131-0/+1410
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=749053
* Move all shadows to a separate layerРуслан Ижбулатов2015-05-131-800/+1852
| | | | | | Also remove some duplicate objects https://bugzilla.gnome.org/show_bug.cgi?id=749053
* Add links for all css cursor namesMatthias Clasen2015-05-112-6/+41
| | | | | This makes it easier for GDK to support these names fully. https://bugzilla.gnome.org/show_bug.cgi?id=749130
* add missing cursor equivalents to the CSS3 specJakub Steiner2015-05-0738-19/+167
| | | | | | | | | | - zoom in, zoom out, move (rename move to pointer-move) - fix broken symlink override for hand1 - provide grab cursor - all-scroll - vertical-text https://bugzilla.gnome.org/show_bug.cgi?id=748982
* fix missing framesJakub Steiner2015-04-072-0/+88
| | | | 32x32 watch, left_ptr_watch was missing frames
* make spinning cursors 60 fpsJakub Steiner2015-04-07593-1121/+4725
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=747464
* provide hi-dpi variants of the cursorsJakub Steiner2015-04-07411-14/+149
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=747386
* cursors: fix cutnpaste errorJakub Steiner2014-08-191-16/+16
| | | | - this should finally fix the spinning cursor
* cursors: sync with the symbolic icon (sharp edge)Jakub Steiner2014-08-0849-18/+18
|
* cursors: add missing frames to the 24x24 and 32x32 sizesJakub Steiner2014-08-081-0/+16
|
* cursors: forgotten PNG assetsJakub Steiner2014-08-0816-0/+0
|
* cursors: improve spinnerJakub Steiner2014-08-0834-302/+686
| | | | | | | - double the framerate - try avoiding aliasing https://bugzilla.gnome.org/show_bug.cgi?id=734429
* update spinner designJakub Steiner2014-05-1551-303/+1902
| | | | | | | - fix cursor generation scrips to work - render new wait cursor using the updated design - remove old process-working multiframe icon from hicolor - provide a single frame icon for process-working
* Rename directories for mergeWilliam Jon McCann2014-04-25245-0/+9535