@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Show all available action list icons in UIExamples

Summary:
Make the example page a little more useful by showing available icons.

Also replace the "new" image, it had a little arrow which I thought was a "+". Use the one with a "+".

Test Plan: {F21966}

Reviewers: btrahan, vrana

Reviewed By: vrana

CC: aran

Differential Revision: https://secure.phabricator.com/D3794

+51 -35
+4 -23
scripts/celerity/generate_sprites.php
··· 203 203 ->setSourcePosition(0, 0) 204 204 ->setSourceSize(16, 16); 205 205 206 - $action_map = array( 207 - 'file' => 'icon/page_white_text.png', 208 - 'fork' => 'icon/arrow_branch.png', 209 - 'edit' => 'icon/page_white_edit.png', 210 - 'flag-0' => 'icon/flag-0.png', 211 - 'flag-1' => 'icon/flag-1.png', 212 - 'flag-2' => 'icon/flag-2.png', 213 - 'flag-3' => 'icon/flag-3.png', 214 - 'flag-4' => 'icon/flag-4.png', 215 - 'flag-5' => 'icon/flag-5.png', 216 - 'flag-6' => 'icon/flag-6.png', 217 - 'flag-7' => 'icon/flag-7.png', 218 - 'flag-ghost' => 'icon/flag-ghost.png', 219 - 'subscribe-auto' => 'icon/unsubscribe.png', 220 - 'subscribe-add' => 'icon/subscribe.png', 221 - 'subscribe-delete' => 'icon/unsubscribe.png', 222 - 'new' => 'icon/page_white_put.png', 223 - 'world' => 'icon/world.png', 224 - 'delete' => 'icon/page_delete.png', 225 - 'move' => 'icon/page_go.png', 226 - 'preview' => 'icon/page_world.png', 227 - 'unpublish' => 'icon/page_error.png', 228 - ); 206 + $action_icons = PhabricatorActionView::getAvailableIcons(); 207 + foreach ($action_icons as $icon) { 208 + $action_map[$icon] = 'icon/'.$icon.'.png'; 209 + } 229 210 230 211 foreach ($action_map as $icon => $source) { 231 212 $sheet->addSprite(
+10
src/applications/uiexample/examples/PhabricatorActionListExample.php
··· 108 108 ->setName('Form + Workflow Action') 109 109 ->setIcon('file')); 110 110 111 + foreach (PhabricatorActionView::getAvailableIcons() as $icon) { 112 + $view->addAction( 113 + id(new PhabricatorActionView()) 114 + ->setUser($user) 115 + ->setHref('#') 116 + ->setDisabled(true) 117 + ->setName('Icon "'.$icon.'"') 118 + ->setIcon($icon)); 119 + } 120 + 111 121 return array( 112 122 $view, 113 123 '<div style="clear: both;"></div>',
+25
src/view/layout/PhabricatorActionView.php
··· 129 129 $icon.$item); 130 130 } 131 131 132 + public static function getAvailableIcons() { 133 + return array( 134 + 'delete', 135 + 'edit', 136 + 'file', 137 + 'flag-0', 138 + 'flag-1', 139 + 'flag-2', 140 + 'flag-3', 141 + 'flag-4', 142 + 'flag-5', 143 + 'flag-6', 144 + 'flag-7', 145 + 'flag-ghost', 146 + 'fork', 147 + 'move', 148 + 'new', 149 + 'preview', 150 + 'subscribe-add', 151 + 'subscribe-auto', 152 + 'subscribe-delete', 153 + 'unpublish', 154 + 'world', 155 + ); 156 + } 132 157 133 158 }
+12 -12
webroot/rsrc/css/autosprite.css
··· 708 708 background-position: 0px -7254px; 709 709 } 710 710 711 - .action-file { 711 + .action-delete { 712 712 background-position: 0px -7285px; 713 713 } 714 714 715 - .action-fork { 715 + .action-edit { 716 716 background-position: 0px -7302px; 717 717 } 718 718 719 - .action-edit { 719 + .action-file { 720 720 background-position: 0px -7319px; 721 721 } 722 722 ··· 756 756 background-position: 0px -7472px; 757 757 } 758 758 759 - .action-subscribe-auto { 759 + .action-fork { 760 760 background-position: 0px -7489px; 761 761 } 762 762 763 - .action-subscribe-add { 763 + .action-move { 764 764 background-position: 0px -7506px; 765 765 } 766 766 767 - .action-subscribe-delete { 767 + .action-new { 768 768 background-position: 0px -7523px; 769 769 } 770 770 771 - .action-new { 771 + .action-preview { 772 772 background-position: 0px -7540px; 773 773 } 774 774 775 - .action-world { 775 + .action-subscribe-add { 776 776 background-position: 0px -7557px; 777 777 } 778 778 779 - .action-delete { 779 + .action-subscribe-auto { 780 780 background-position: 0px -7574px; 781 781 } 782 782 783 - .action-move { 783 + .action-subscribe-delete { 784 784 background-position: 0px -7591px; 785 785 } 786 786 787 - .action-preview { 787 + .action-unpublish { 788 788 background-position: 0px -7608px; 789 789 } 790 790 791 - .action-unpublish { 791 + .action-world { 792 792 background-position: 0px -7625px; 793 793 } 794 794
webroot/rsrc/image/autosprite.png

This is a binary file and will not be displayed.