veronica,
@veronica@mastodon.online avatar

I've spent the last couple of evenings adding a new, pretty big feature. The net change in code is +3 lines. So, I deleted almost as much code as I added, in addition to what I rewrote.

I consider that a good pull request! 😁

The code i edited was pretty old, and had more complexity than the recent implementation needed. So a bit of legacy there too to be honest. Still ...

veronica,
@veronica@mastodon.online avatar

By the way, the feature I've added is this: In my app you can give documents a status icon that previously only took colour values. A user suggested to allow for shapes as well, and I really liked the idea. Here's the new dialog with the shape options.

robchapman,
@robchapman@ohai.social avatar

@veronica Well this is a fabulous addition,

veronica,
@veronica@mastodon.online avatar

@robchapman It won't be included until next release, but yeah, I think it will be very useful. I'm already testing it on my own projects. The bars are nice for tracking drafts.

veronica,
@veronica@mastodon.online avatar

The shapes are generated in polar coordinates in a cache of QPainterPath objects. That part was particularly fun, because I got to refresh some middle school geometry skills. 😁

nesevis,
@nesevis@hachyderm.io avatar

@veronica great for accessibility, too!

veronica,
@veronica@mastodon.online avatar

@nesevis Yes, that was the original motivation. But even with good colour vision, distinguishing colour on icons can be tricky when there's a lot of them since human colour perception is relative to surroundings.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programming
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • megavids
  • lostlight
  • All magazines