Page MenuHomePhabricator

Add more icon choices to Badges
ClosedPublic

Authored by chad on Mar 3 2017, 9:31 PM.
Tags
None
Referenced Files
F19152534: D17456.diff
Thu, Dec 11, 3:21 AM
F18939795: D17456.id.diff
Nov 11 2025, 7:24 AM
F18931432: D17456.diff
Nov 10 2025, 3:15 AM
F18814568: D17456.diff
Oct 20 2025, 11:31 PM
F18770610: D17456.id41982.diff
Oct 8 2025, 1:41 PM
F18770092: D17456.id.diff
Oct 8 2025, 10:42 AM
F18676440: D17456.diff
Sep 25 2025, 7:19 PM
F18676178: D17456.diff
Sep 25 2025, 6:54 PM
Subscribers

Details

Summary

Ref T9010. This adds more icons and lets the IconChooser handle more icons more easier.

Test Plan

Test Project Icons, Badges Icons

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Actual task ref is T9010?

src/applications/files/controller/PhabricatorFileIconSetSelectController.php
34

This should work correctly for all cases we have now, but I think it does some slightly odd stuff for numbers like 24, which I believe it will lay out as:

XXXXX
XXXXX
XXXXX
XXXXX
XXXX

If we eventually let users customize this or hit weird cases, we could start with this breakpoint and then search nearby values for one that divides the count evenly, so this would end up as 4x6.

This revision is now accepted and ready to land.Mar 3 2017, 9:37 PM

I have some plans to allow any IconSet to be extended, so I'll get the edge cases then.

Specifically, it still centers the icons, so off-number should still render OK

This revision was automatically updated to reflect the committed changes.