Giter Club home page Giter Club logo

Comments (5)

jinliu avatar jinliu commented on August 26, 2024

https://invent.kde.org/plasma/breeze/-/blob/master/cursors/Breeze/Breeze/cursors/bottom_right_corner is an example with hotspot at the bottom right corner in the 32x32 pixmap, with a nominal size of 24.

from hyprcursor.

vaxerski avatar vaxerski commented on August 26, 2024

SVGs have no size - all SVG cursors are required a size of 0 (in >0.1.5 they are forced to be 0 anyways)

PNGs should be exactly the size they advertise - true. I can add that to docs and enforce in lib.

I don't see a point in having two sizes (nominal and actual)

from hyprcursor.

jinliu avatar jinliu commented on August 26, 2024

That would be fine. Some conversion from XCursor might fail, but I don't think many people will do the conversion just to save space, anyway. SVG is the point.

The other direction - generate a XCursor theme from a hyprcursor theme, seems more useful, as I can deploy a small hyprcursor package to the end user, and in its postinstall script, generate a XCursor theme for compatibility.

from hyprcursor.

vaxerski avatar vaxerski commented on August 26, 2024

it's in the todo but I put off doing it as all themes so far have come from x anyways.

from hyprcursor.

jinliu avatar jinliu commented on August 26, 2024

I think I know why Breeze cursors are set in that way:

adwaita-breeze

Left: Adwaita, Right: Breeze, in the same nominal size.

You can see that the main "arrow" part of the Breeze cursor is roughly the same size as the Adwaita one, only the "badge" is outside the nominal size bounds.

So if we set the nominal size of Breeze to the actual 32px instead of the current 24px, the end user would feel that it's "smaller" than Adwaita at the same 32px nominal size.

Anyway, I'll try to set the Breeze nominal size to the actual size. Seems more straightforward this way.

from hyprcursor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.