@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

Convert all calls to 'IconFont' to just 'Icon'

Summary: Mostly for consistency, we're not using other forms of icons and this makes all classes that use an icon call it in the same way.

Test Plan: tested uiexamples, lots of other random pages.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+212 -306
+3 -5
src/applications/almanac/controller/AlmanacController.php
··· 33 33 Javelin::initBehavior('phabricator-tooltips', array()); 34 34 35 35 $icon_builtin = id(new PHUIIconView()) 36 - ->setIconFont('fa-circle') 36 + ->setIcon('fa-circle') 37 37 ->addSigil('has-tooltip') 38 38 ->setMetadata( 39 39 array( ··· 42 42 )); 43 43 44 44 $icon_custom = id(new PHUIIconView()) 45 - ->setIconFont('fa-circle-o grey') 45 + ->setIcon('fa-circle-o grey') 46 46 ->addSigil('has-tooltip') 47 47 ->setMetadata( 48 48 array( ··· 166 166 ->setWorkflow(true) 167 167 ->setDisabled(!$can_edit) 168 168 ->setText(pht('Add Property')) 169 - ->setIcon( 170 - id(new PHUIIconView()) 171 - ->setIconFont('fa-plus')); 169 + ->setIcon('fa-plus'); 172 170 173 171 $header = id(new PHUIHeaderView()) 174 172 ->setHeader(pht('Properties'))
+4 -6
src/applications/almanac/controller/AlmanacDeviceViewController.php
··· 132 132 ->setWorkflow(!$can_edit) 133 133 ->setDisabled(!$can_edit) 134 134 ->setText(pht('Add Interface')) 135 - ->setIcon( 136 - id(new PHUIIconView()) 137 - ->setIconFont('fa-plus'))); 135 + ->setIcon('fa-plus')); 138 136 139 137 return id(new PHUIObjectBoxView()) 140 138 ->setHeader($header) ··· 185 183 ->setText(pht('Generate Keypair')) 186 184 ->setIcon( 187 185 id(new PHUIIconView()) 188 - ->setIconFont('fa-lock'))) 186 + ->setIcon('fa-lock'))) 189 187 ->addActionLink( 190 188 id(new PHUIButtonView()) 191 189 ->setTag('a') ··· 195 193 ->setText(pht('Upload Public Key')) 196 194 ->setIcon( 197 195 id(new PHUIIconView()) 198 - ->setIconFont('fa-upload'))); 196 + ->setIcon('fa-upload'))); 199 197 200 198 return id(new PHUIObjectBoxView()) 201 199 ->setHeader($header) ··· 221 219 $handles = $viewer->loadHandles(mpull($services, 'getPHID')); 222 220 223 221 $icon_lock = id(new PHUIIconView()) 224 - ->setIconFont('fa-lock'); 222 + ->setIcon('fa-lock'); 225 223 226 224 $rows = array(); 227 225 foreach ($services as $service) {
+1 -3
src/applications/almanac/controller/AlmanacServiceViewController.php
··· 134 134 ->setWorkflow(!$can_edit) 135 135 ->setDisabled(!$can_edit) 136 136 ->setText(pht('Add Binding')) 137 - ->setIcon( 138 - id(new PHUIIconView()) 139 - ->setIconFont('fa-plus'))); 137 + ->setIcon('fa-plus')); 140 138 141 139 return id(new PHUIObjectBoxView()) 142 140 ->setHeader($header)
+1 -3
src/applications/auth/controller/config/PhabricatorAuthListController.php
··· 147 147 ->setSeverity($severity) 148 148 ->setErrors($issues); 149 149 150 - $image = id(new PHUIIconView()) 151 - ->setIconFont('fa-plus'); 152 150 $button = id(new PHUIButtonView()) 153 151 ->setTag('a') 154 152 ->setColor(PHUIButtonView::SIMPLE) 155 153 ->setHref($this->getApplicationURI('config/new/')) 156 - ->setIcon($image) 154 + ->setIcon('fa-plus') 157 155 ->setDisabled(!$can_manage) 158 156 ->setText(pht('Add Provider')); 159 157
+1 -1
src/applications/auth/data/PhabricatorAuthInviteAction.php
··· 88 88 } 89 89 90 90 return id(new PHUIIconView()) 91 - ->setIconFont("{$icon} {$color}"); 91 + ->setIcon("{$icon} {$color}"); 92 92 } 93 93 94 94 public static function newActionListFromAddresses(
+2 -2
src/applications/auth/view/PhabricatorAuthSSHKeyTableView.php
··· 45 45 } 46 46 47 47 $trusted_icon = id(new PHUIIconView()) 48 - ->setIconFont('fa-star blue'); 48 + ->setIcon('fa-star blue'); 49 49 $untrusted_icon = id(new PHUIIconView()) 50 - ->setIconFont('fa-times grey'); 50 + ->setIcon('fa-times grey'); 51 51 52 52 $rows = array(); 53 53 foreach ($keys as $key) {
+1 -1
src/applications/base/controller/PhabricatorController.php
··· 400 400 } 401 401 402 402 $icon = id(new PHUIIconView()) 403 - ->setIconFont($icon_name); 403 + ->setIcon($icon_name); 404 404 405 405 require_celerity_resource('policy-css'); 406 406
+2 -4
src/applications/calendar/controller/PhabricatorCalendarEventViewController.php
··· 125 125 if ($is_invite_pending) { 126 126 $decline_button = id(new PHUIButtonView()) 127 127 ->setTag('a') 128 - ->setIcon(id(new PHUIIconView()) 129 - ->setIconFont('fa-times grey')) 128 + ->setIcon('fa-times grey') 130 129 ->setHref($this->getApplicationURI("/event/decline/{$id}/")) 131 130 ->setWorkflow(true) 132 131 ->setText(pht('Decline')); 133 132 134 133 $accept_button = id(new PHUIButtonView()) 135 134 ->setTag('a') 136 - ->setIcon(id(new PHUIIconView()) 137 - ->setIconFont('fa-check green')) 135 + ->setIcon('fa-check green') 138 136 ->setHref($this->getApplicationURI("/event/accept/{$id}/")) 139 137 ->setWorkflow(true) 140 138 ->setText(pht('Accept'));
+1 -1
src/applications/chatlog/controller/PhabricatorChatLogChannelLogController.php
··· 213 213 ->setTag('a') 214 214 ->setHref('#latest') 215 215 ->setText(pht('Jump to Bottom')) 216 - ->setIconFont('fa-arrow-circle-down'); 216 + ->setIcon('fa-arrow-circle-down'); 217 217 218 218 $jump_target = phutil_tag( 219 219 'div',
+3 -3
src/applications/conduit/query/PhabricatorConduitLogSearchEngine.php
··· 140 140 break; 141 141 case ConduitAPIMethod::METHOD_STATUS_UNSTABLE: 142 142 $status = id(new PHUIIconView()) 143 - ->setIconFont('fa-exclamation-triangle yellow') 143 + ->setIcon('fa-exclamation-triangle yellow') 144 144 ->addSigil('has-tooltip') 145 145 ->setMetadata( 146 146 array( ··· 149 149 break; 150 150 case ConduitAPIMethod::METHOD_STATUS_DEPRECATED: 151 151 $status = id(new PHUIIconView()) 152 - ->setIconFont('fa-exclamation-triangle red') 152 + ->setIcon('fa-exclamation-triangle red') 153 153 ->addSigil('has-tooltip') 154 154 ->setMetadata( 155 155 array( ··· 158 158 break; 159 159 default: 160 160 $status = id(new PHUIIconView()) 161 - ->setIconFont('fa-question-circle') 161 + ->setIcon('fa-question-circle') 162 162 ->addSigil('has-tooltip') 163 163 ->setMetadata( 164 164 array(
+2 -6
src/applications/conduit/settings/PhabricatorConduitTokensSettingsPanel.php
··· 87 87 'action', 88 88 )); 89 89 90 - $generate_icon = id(new PHUIIconView()) 91 - ->setIconFont('fa-plus'); 92 90 $generate_button = id(new PHUIButtonView()) 93 91 ->setText(pht('Generate API Token')) 94 92 ->setHref('/conduit/token/edit/?objectPHID='.$user->getPHID()) 95 93 ->setTag('a') 96 94 ->setWorkflow(true) 97 - ->setIcon($generate_icon); 95 + ->setIcon('fa-plus'); 98 96 99 - $terminate_icon = id(new PHUIIconView()) 100 - ->setIconFont('fa-exclamation-triangle'); 101 97 $terminate_button = id(new PHUIButtonView()) 102 98 ->setText(pht('Terminate All Tokens')) 103 99 ->setHref('/conduit/token/terminate/?objectPHID='.$user->getPHID()) 104 100 ->setTag('a') 105 101 ->setWorkflow(true) 106 - ->setIcon($terminate_icon); 102 + ->setIcon('fa-exclamation-triangle'); 107 103 108 104 $header = id(new PHUIHeaderView()) 109 105 ->setHeader(pht('Active API Tokens'))
+4 -7
src/applications/config/controller/PhabricatorConfigCacheController.php
··· 39 39 40 40 $this->renderCommonProperties($properties, $cache); 41 41 42 - $purge_icon = id(new PHUIIconView()) 43 - ->setIconFont('fa-exclamation-triangle'); 44 - 45 42 $purge_button = id(new PHUIButtonView()) 46 43 ->setText(pht('Purge Caches')) 47 44 ->setHref('/config/cache/purge/') 48 45 ->setTag('a') 49 46 ->setWorkflow(true) 50 - ->setIcon($purge_icon); 47 + ->setIcon('fa-exclamation-triangle'); 51 48 52 49 $header = id(new PHUIHeaderView()) 53 50 ->setHeader(pht('Opcode Cache')) ··· 161 158 162 159 private function renderYes($info) { 163 160 return array( 164 - id(new PHUIIconView())->setIconFont('fa-check', 'green'), 161 + id(new PHUIIconView())->setIcon('fa-check', 'green'), 165 162 ' ', 166 163 $info, 167 164 ); ··· 169 166 170 167 private function renderNo($info) { 171 168 return array( 172 - id(new PHUIIconView())->setIconFont('fa-times-circle', 'red'), 169 + id(new PHUIIconView())->setIcon('fa-times-circle', 'red'), 173 170 ' ', 174 171 $info, 175 172 ); ··· 177 174 178 175 private function renderInfo($info) { 179 176 return array( 180 - id(new PHUIIconView())->setIconFont('fa-info-circle', 'grey'), 177 + id(new PHUIIconView())->setIcon('fa-info-circle', 'grey'), 181 178 ' ', 182 179 $info, 183 180 );
+2 -4
src/applications/config/controller/PhabricatorConfigDatabaseController.php
··· 36 36 } 37 37 38 38 return id(new PHUIIconView()) 39 - ->setIconFont($icon); 39 + ->setIcon($icon); 40 40 } 41 41 42 42 protected function renderAttr($attr, $issue) { ··· 71 71 ->addActionLink( 72 72 id(new PHUIButtonView()) 73 73 ->setTag('a') 74 - ->setIcon( 75 - id(new PHUIIconView()) 76 - ->setIconFont('fa-book')) 74 + ->setIcon('fa-book') 77 75 ->setHref($doc_link) 78 76 ->setText(pht('Learn More'))); 79 77 }
+1 -1
src/applications/config/controller/PhabricatorConfigWelcomeController.php
··· 374 374 $viewer = $request->getUser(); 375 375 376 376 $icon = id(new PHUIIconView()) 377 - ->setIconFont($icon.' fa-2x'); 377 + ->setIcon($icon.' fa-2x'); 378 378 379 379 $content = PhabricatorMarkupEngine::renderOneObject( 380 380 id(new PhabricatorMarkupOneOff())->setContent($content),
+2 -2
src/applications/config/module/PhabricatorConfigPHIDModule.php
··· 25 25 26 26 $icon = $app->getFontIcon(); 27 27 if ($icon) { 28 - $app_icon = id(new PHUIIconView())->setIconFont($icon); 28 + $app_icon = id(new PHUIIconView())->setIcon($icon); 29 29 } else { 30 30 $app_icon = null; 31 31 } ··· 36 36 37 37 $icon = $type->getTypeIcon(); 38 38 if ($icon) { 39 - $type_icon = id(new PHUIIconView())->setIconFont($icon); 39 + $type_icon = id(new PHUIIconView())->setIcon($icon); 40 40 } else { 41 41 $type_icon = null; 42 42 }
+1 -1
src/applications/conpherence/controller/ConpherenceWidgetController.php
··· 57 57 58 58 $widgets = array(); 59 59 $new_icon = id(new PHUIIconView()) 60 - ->setIconFont('fa-plus') 60 + ->setIcon('fa-plus') 61 61 ->setHref($this->getWidgetURI()) 62 62 ->setMetadata(array('widget' => null)) 63 63 ->addSigil('conpherence-widget-adder');
+1 -1
src/applications/conpherence/query/ConpherenceThreadSearchEngine.php
··· 149 149 150 150 $icon_name = $conpherence->getPolicyIconName($policy_objects); 151 151 $icon = id(new PHUIIconView()) 152 - ->setIconFont($icon_name); 152 + ->setIcon($icon_name); 153 153 $item = id(new PHUIObjectItemView()) 154 154 ->setObjectName($conpherence->getMonogram()) 155 155 ->setHeader($title)
+2 -4
src/applications/conpherence/view/ConpherenceDurableColumnView.php
··· 214 214 $icon = $conpherence->getPolicyIconName($policy_objects); 215 215 $icon = id(new PHUIIconView()) 216 216 ->addClass('mmr') 217 - ->setIconFont($icon); 217 + ->setIcon($icon); 218 218 return $icon; 219 219 } 220 220 ··· 277 277 ->setTag('a') 278 278 ->setHref('/conpherence/search/') 279 279 ->setColor(PHUIButtonView::GREY) 280 - ->setIcon( 281 - id(new PHUIIconView()) 282 - ->setIconFont('fa-search')))); 280 + ->setIcon('fa-search'))); 283 281 } 284 282 285 283 private function buildHeader() {
+1 -1
src/applications/conpherence/view/ConpherencePeopleWidgetView.php
··· 23 23 $remove_html = ''; 24 24 if ($user_phid == $user->getPHID()) { 25 25 $icon = id(new PHUIIconView()) 26 - ->setIconFont('fa-times lightbluetext'); 26 + ->setIcon('fa-times lightbluetext'); 27 27 $remove_html = javelin_tag( 28 28 'a', 29 29 array(
+2 -2
src/applications/conpherence/view/ConpherenceThreadListView.php
··· 59 59 $data = $thread->getDisplayData($user); 60 60 $icon = id(new PHUIIconView()) 61 61 ->addClass('msr') 62 - ->setIconFont($thread->getPolicyIconName($policy_objects)); 62 + ->setIcon($thread->getPolicyIconName($policy_objects)); 63 63 $title = phutil_tag( 64 64 'span', 65 65 array(), ··· 109 109 'conpherence-room-list-header'); 110 110 $header->appendChild( 111 111 id(new PHUIIconView()) 112 - ->setIconFont('fa-search') 112 + ->setIcon('fa-search') 113 113 ->setHref('/conpherence/search/') 114 114 ->setText(pht('Search'))); 115 115 $menu->addMenuItem($header);
+3 -3
src/applications/dashboard/engine/PhabricatorDashboardPanelRenderingEngine.php
··· 165 165 break; 166 166 } 167 167 $icon = id(new PHUIIconView()) 168 - ->setIconFont('fa-warning red msr'); 168 + ->setIcon('fa-warning red msr'); 169 169 $content = id(new PHUIBoxView()) 170 170 ->addClass('dashboard-box') 171 171 ->appendChild($icon) ··· 250 250 $edit_uri->setQueryParam('dashboardID', $dashboard_id); 251 251 } 252 252 $action_edit = id(new PHUIIconView()) 253 - ->setIconFont('fa-pencil') 253 + ->setIcon('fa-pencil') 254 254 ->setWorkflow(true) 255 255 ->setHref((string)$edit_uri); 256 256 $header->addActionIcon($action_edit); ··· 260 260 '/dashboard/removepanel/'.$dashboard_id.'/')) 261 261 ->setQueryParam('panelPHID', $panel->getPHID()); 262 262 $action_remove = id(new PHUIIconView()) 263 - ->setIconFont('fa-trash-o') 263 + ->setIcon('fa-trash-o') 264 264 ->setHref((string)$uri) 265 265 ->setWorkflow(true); 266 266 $header->addActionIcon($action_remove);
+1 -1
src/applications/dashboard/paneltype/PhabricatorDashboardQueryPanelType.php
··· 117 117 $key = $panel->getProperty('key'); 118 118 $href = $search_engine->getQueryResultsPageURI($key); 119 119 $icon = id(new PHUIIconView()) 120 - ->setIconFont('fa-search') 120 + ->setIcon('fa-search') 121 121 ->setHref($href); 122 122 $header->addActionIcon($icon); 123 123
+1 -1
src/applications/differential/constants/DifferentialRevisionStatus.php
··· 63 63 ArcanistDifferentialRevisionStatus::getNameForRevisionStatus($status); 64 64 65 65 $img = id(new PHUIIconView()) 66 - ->setIconFont(self::getRevisionStatusIcon($status)); 66 + ->setIcon(self::getRevisionStatusIcon($status)); 67 67 68 68 $tag = phutil_tag( 69 69 'span',
+1 -1
src/applications/differential/view/DifferentialChangesetDetailView.php
··· 206 206 $display_filename = $changeset->getDisplayFilename(); 207 207 $display_icon = $this->getFileIcon($display_filename); 208 208 $icon = id(new PHUIIconView()) 209 - ->setIconFont($display_icon); 209 + ->setIcon($display_icon); 210 210 211 211 $renderer = DifferentialChangesetHTMLRenderer::getHTMLRendererByKey( 212 212 $this->getRenderer());
+2 -2
src/applications/differential/view/DifferentialChangesetFileTreeSideNavBuilder.php
··· 91 91 $href = '#'.$data->getAnchorName(); 92 92 $title = $name; 93 93 $icon = id(new PHUIIconView()) 94 - ->setIconFont('fa-file-text-o bluetext'); 94 + ->setIcon('fa-file-text-o bluetext'); 95 95 } else { 96 96 $name .= '/'; 97 97 $title = $path->getFullPath().'/'; 98 98 $icon = id(new PHUIIconView()) 99 - ->setIconFont('fa-folder-open blue'); 99 + ->setIcon('fa-folder-open blue'); 100 100 } 101 101 102 102 $name_element = phutil_tag(
+1 -1
src/applications/differential/view/DifferentialRevisionListView.php
··· 131 131 132 132 if (isset($icons['draft'])) { 133 133 $draft = id(new PHUIIconView()) 134 - ->setIconFont('fa-comment yellow') 134 + ->setIcon('fa-comment yellow') 135 135 ->addSigil('has-tooltip') 136 136 ->setMetadata( 137 137 array(
+2 -6
src/applications/diffusion/controller/DiffusionBrowseController.php
··· 832 832 $editor_link = $user->loadEditorLink($path, $line, $repository); 833 833 $template = $user->loadEditorLink($path, '%l', $repository); 834 834 835 - $icon_edit = id(new PHUIIconView()) 836 - ->setIconFont('fa-pencil'); 837 835 $button = id(new PHUIButtonView()) 838 836 ->setTag('a') 839 837 ->setText(pht('Open in Editor')) 840 838 ->setHref($editor_link) 841 - ->setIcon($icon_edit) 839 + ->setIcon('fa-pencil') 842 840 ->setID('editor_link') 843 841 ->setMetadata(array('link_template' => $template)) 844 842 ->setDisabled(!$editor_link); ··· 860 858 $icon = 'fa-file-text'; 861 859 } 862 860 863 - $iconview = id(new PHUIIconView()) 864 - ->setIconFont($icon); 865 861 $button = id(new PHUIButtonView()) 866 862 ->setTag('a') 867 863 ->setText($text) 868 864 ->setHref($href) 869 - ->setIcon($iconview); 865 + ->setIcon($icon); 870 866 871 867 return $button; 872 868 }
+1 -3
src/applications/diffusion/controller/DiffusionCommitController.php
··· 221 221 $change_panel->setID('toc'); 222 222 223 223 if ($count > self::CHANGES_LIMIT && !$show_all_details) { 224 - $icon = id(new PHUIIconView()) 225 - ->setIconFont('fa-files-o'); 226 224 227 225 $button = id(new PHUIButtonView()) 228 226 ->setText(pht('Show All Changes')) 229 227 ->setHref('?show_all=true') 230 228 ->setTag('a') 231 - ->setIcon($icon); 229 + ->setIcon('fa-files-o'); 232 230 233 231 $warning_view = id(new PHUIInfoView()) 234 232 ->setSeverity(PHUIInfoView::SEVERITY_WARNING)
+4 -10
src/applications/diffusion/controller/DiffusionRepositoryController.php
··· 390 390 $header->setSubHeader(pht('Showing %d branches.', $limit)); 391 391 } 392 392 393 - $icon = id(new PHUIIconView()) 394 - ->setIconFont('fa-code-fork'); 395 - 396 393 $button = new PHUIButtonView(); 397 394 $button->setText(pht('Show All Branches')); 398 395 $button->setTag('a'); 399 - $button->setIcon($icon); 396 + $button->setIcon('fa-code-fork'); 400 397 $button->setHref($drequest->generateURI( 401 398 array( 402 399 'action' => 'branches', ··· 462 459 pht('Showing the %d most recent tags.', $tag_limit)); 463 460 } 464 461 465 - $icon = id(new PHUIIconView()) 466 - ->setIconFont('fa-tag'); 467 - 468 462 $button = new PHUIButtonView(); 469 463 $button->setText(pht('Show All Tags')); 470 464 $button->setTag('a'); 471 - $button->setIcon($icon); 465 + $button->setIcon('fa-tag'); 472 466 $button->setHref($drequest->generateURI( 473 467 array( 474 468 'action' => 'tags', ··· 557 551 $history_table->setIsHead(true); 558 552 559 553 $icon = id(new PHUIIconView()) 560 - ->setIconFont('fa-list-alt'); 554 + ->setIcon('fa-list-alt'); 561 555 562 556 $button = id(new PHUIButtonView()) 563 557 ->setText(pht('View Full History')) ··· 620 614 ->setHeader(pht('Repository')); 621 615 622 616 $icon = id(new PHUIIconView()) 623 - ->setIconFont('fa-folder-open'); 617 + ->setIcon('fa-folder-open'); 624 618 625 619 $button = new PHUIButtonView(); 626 620 $button->setText(pht('Browse Repository'));
+1 -1
src/applications/diffusion/view/DiffusionBranchTableView.php
··· 81 81 } 82 82 83 83 $status_icon = id(new PHUIIconView()) 84 - ->setIconFont($icon) 84 + ->setIcon($icon) 85 85 ->addSigil('has-tooltip') 86 86 ->setHref($doc_href) 87 87 ->setMetadata(
+3 -3
src/applications/diffusion/view/DiffusionView.php
··· 55 55 'align' => 'E', 56 56 ), 57 57 ), 58 - id(new PHUIIconView())->setIconFont('fa-history bluegrey')); 58 + id(new PHUIIconView())->setIcon('fa-history bluegrey')); 59 59 } 60 60 61 61 final public function linkBrowse($path, array $details = array()) { ··· 95 95 } 96 96 97 97 $icon = DifferentialChangeType::getIconForFileType($file_type); 98 - $icon_view = id(new PHUIIconView())->setIconFont("{$icon} blue"); 98 + $icon_view = id(new PHUIIconView())->setIcon($icon); 99 99 100 100 // If we're rendering a file or directory name, don't show the tooltip. 101 101 if ($display_name !== null) { ··· 183 183 $name = HarbormasterBuildable::getBuildableStatusName($status); 184 184 185 185 $icon_view = id(new PHUIIconView()) 186 - ->setIconFont($icon.' '.$color); 186 + ->setIcon($icon.' '.$color); 187 187 188 188 $tooltip_view = javelin_tag( 189 189 'span',
+1 -1
src/applications/diviner/controller/DivinerBookController.php
··· 33 33 ->setTag('a') 34 34 ->setText(pht('Actions')) 35 35 ->setHref('#') 36 - ->setIconFont('fa-bars') 36 + ->setIcon('fa-bars') 37 37 ->addClass('phui-mobile-menu') 38 38 ->setDropdownMenu($actions); 39 39
+1 -4
src/applications/diviner/controller/DivinerMainController.php
··· 17 17 $crumbs->setBorder(true); 18 18 $crumbs->addTextCrumb(pht('Books')); 19 19 20 - $search_icon = id(new PHUIIconView()) 21 - ->setIconFont('fa-search'); 22 - 23 20 $query_button = id(new PHUIButtonView()) 24 21 ->setTag('a') 25 22 ->setHref($this->getApplicationURI('query/')) 26 23 ->setText(pht('Advanced Search')) 27 - ->setIcon($search_icon); 24 + ->setIcon('fa-search'); 28 25 29 26 $header = id(new PHUIHeaderView()) 30 27 ->setHeader(pht('Documentation Books'))
+2 -2
src/applications/drydock/controller/DrydockBlueprintViewController.php
··· 168 168 id(new PHUIButtonView()) 169 169 ->setTag('a') 170 170 ->setHref($resources_uri) 171 - ->setIconFont('fa-search') 171 + ->setIcon('fa-search') 172 172 ->setText(pht('View All'))); 173 173 174 174 return id(new PHUIObjectBoxView()) ··· 233 233 id(new PHUIButtonView()) 234 234 ->setTag('a') 235 235 ->setHref($authorizations_uri) 236 - ->setIconFont('fa-search') 236 + ->setIcon('fa-search') 237 237 ->setText(pht('View All'))); 238 238 239 239 return id(new PHUIObjectBoxView())
+3 -3
src/applications/drydock/controller/DrydockController.php
··· 39 39 ->execute(); 40 40 41 41 $consumed_yes = id(new PHUIIconView()) 42 - ->setIconFont('fa-check green'); 42 + ->setIcon('fa-check green'); 43 43 $consumed_no = id(new PHUIIconView()) 44 - ->setIconFont('fa-clock-o grey'); 44 + ->setIcon('fa-clock-o grey'); 45 45 46 46 $rows = array(); 47 47 foreach ($commands as $command) { ··· 98 98 id(new PHUIButtonView()) 99 99 ->setTag('a') 100 100 ->setHref($all_uri) 101 - ->setIconFont('fa-search') 101 + ->setIcon('fa-search') 102 102 ->setText(pht('View All'))); 103 103 104 104 return id(new PHUIObjectBoxView())
+1 -1
src/applications/drydock/controller/DrydockResourceViewController.php
··· 168 168 id(new PHUIButtonView()) 169 169 ->setTag('a') 170 170 ->setHref($leases_uri) 171 - ->setIconFont('fa-search') 171 + ->setIcon('fa-search') 172 172 ->setText(pht('View All'))); 173 173 174 174 $lease_list = id(new DrydockLeaseListView())
+1 -1
src/applications/drydock/view/DrydockLogListView.php
··· 71 71 $blueprint, 72 72 $resource, 73 73 $lease, 74 - id(new PHUIIconView())->setIconFont($icon), 74 + id(new PHUIIconView())->setIcon($icon), 75 75 $type, 76 76 $data, 77 77 phabricator_datetime($log->getEpoch(), $viewer),
+2 -2
src/applications/files/controller/PhabricatorFileComposeController.php
··· 110 110 ), 111 111 ), 112 112 id(new PHUIIconView()) 113 - ->setIconFont($icon) 113 + ->setIcon($icon) 114 114 ->addClass('compose-icon-bg')); 115 115 } 116 116 ··· 122 122 $preview = id(new PHUIIconView()) 123 123 ->setID($preview_id) 124 124 ->addClass('compose-background-'.$value_color) 125 - ->setIconFont($value_icon) 125 + ->setIcon($value_icon) 126 126 ->addClass('compose-icon-bg'); 127 127 128 128 $color_input = javelin_tag(
+1 -1
src/applications/files/controller/PhabricatorFileIconSetSelectController.php
··· 35 35 $label = $icon->getLabel(); 36 36 37 37 $view = id(new PHUIIconView()) 38 - ->setIconFont($icon->getIcon()); 38 + ->setIcon($icon->getIcon()); 39 39 40 40 $classes = array(); 41 41 $classes[] = 'icon-button';
+1 -1
src/applications/files/iconset/PhabricatorIconSet.php
··· 49 49 'span', 50 50 array(), 51 51 array( 52 - id(new PHUIIconView())->setIconFont($icon->getIcon()), 52 + id(new PHUIIconView())->setIcon($icon->getIcon()), 53 53 ' ', 54 54 $icon->getLabel(), 55 55 ));
+2 -2
src/applications/harbormaster/controller/HarbormasterBuildableViewController.php
··· 311 311 id(new PHUIButtonView()) 312 312 ->setTag('a') 313 313 ->setHref($lint_href) 314 - ->setIconFont('fa-list-ul') 314 + ->setIcon('fa-list-ul') 315 315 ->setText('View All')); 316 316 317 317 $lint = id(new PHUIObjectBoxView()) ··· 335 335 id(new PHUIButtonView()) 336 336 ->setTag('a') 337 337 ->setHref($unit_href) 338 - ->setIconFont('fa-list-ul') 338 + ->setIcon('fa-list-ul') 339 339 ->setText('View All')); 340 340 341 341 $unit = id(new PHUIObjectBoxView())
+1 -3
src/applications/harbormaster/controller/HarbormasterPlanViewController.php
··· 202 202 ->setText(pht('Add Build Step')) 203 203 ->setHref($this->getApplicationURI("step/add/{$plan_id}/")) 204 204 ->setTag('a') 205 - ->setIcon( 206 - id(new PHUIIconView()) 207 - ->setIconFont('fa-plus')) 205 + ->setIcon('fa-plus') 208 206 ->setDisabled(!$can_edit) 209 207 ->setWorkflow(!$can_edit)); 210 208
+1 -1
src/applications/herald/adapter/HeraldAdapter.php
··· 830 830 require_celerity_resource('herald-css'); 831 831 832 832 $icon = id(new PHUIIconView()) 833 - ->setIconFont('fa-chevron-circle-right lightgreytext') 833 + ->setIcon('fa-chevron-circle-right lightgreytext') 834 834 ->addClass('herald-list-icon'); 835 835 836 836 if ($rule->getMustMatchAll()) {
+1 -1
src/applications/home/controller/PhabricatorHomeMainController.php
··· 318 318 ), 319 319 $title); 320 320 $icon = id(new PHUIIconView()) 321 - ->setIconFont('fa-search') 321 + ->setIcon('fa-search') 322 322 ->setHref($href); 323 323 $header = id(new PHUIHeaderView()) 324 324 ->setHeader($title)
+1 -3
src/applications/legalpad/controller/LegalpadDocumentSignController.php
··· 250 250 ->addActionLink( 251 251 id(new PHUIButtonView()) 252 252 ->setTag('a') 253 - ->setIcon( 254 - id(new PHUIIconView()) 255 - ->setIconFont('fa-pencil')) 253 + ->setIcon('fa-pencil') 256 254 ->setText(pht('Manage')) 257 255 ->setHref($manage_uri) 258 256 ->setDisabled(!$can_edit)
+2 -2
src/applications/legalpad/query/LegalpadDocumentSearchEngine.php
··· 186 186 if ($signature) { 187 187 $item->addAttribute( 188 188 array( 189 - id(new PHUIIconView())->setIconFont('fa-check-square-o', 'green'), 189 + id(new PHUIIconView())->setIcon('fa-check-square-o', 'green'), 190 190 ' ', 191 191 pht( 192 192 'Signed on %s', ··· 195 195 } else { 196 196 $item->addAttribute( 197 197 array( 198 - id(new PHUIIconView())->setIconFont('fa-square-o', 'grey'), 198 + id(new PHUIIconView())->setIcon('fa-square-o', 'grey'), 199 199 ' ', 200 200 pht('Not Signed'), 201 201 ));
+3 -3
src/applications/legalpad/query/LegalpadDocumentSignatureSearchEngine.php
··· 183 183 pht('Exemption')); 184 184 185 185 id(new PHUIIconView()) 186 - ->setIconFont('fa-envelope', 'red') 186 + ->setIcon('fa-envelope', 'red') 187 187 ->addSigil('has-tooltip') 188 188 ->setMetadata(array('tip' => pht('Unverified Email'))); 189 189 ··· 276 276 ->setTag('a') 277 277 ->setHref($this->getApplicationURI('addsignature/'.$document_id.'/')) 278 278 ->setWorkflow(true) 279 - ->setIcon(id(new PHUIIconView())->setIconFont('fa-pencil')); 279 + ->setIcon('fa-pencil'); 280 280 } 281 281 282 282 if (!$this->document) { ··· 300 300 301 301 return array( 302 302 id(new PHUIIconView()) 303 - ->setIconFont($icon, $color) 303 + ->setIcon($icon, $color) 304 304 ->addSigil('has-tooltip') 305 305 ->setMetadata(array('tip' => $title)), 306 306 javelin_tag(
+1 -1
src/applications/macro/markup/PhabricatorIconRemarkupRule.php
··· 80 80 } 81 81 82 82 $icon_view = id(new PHUIIconView()) 83 - ->setIconFont('fa-'.$icon, implode(' ', $classes)); 83 + ->setIcon('fa-'.$icon, implode(' ', $classes)); 84 84 85 85 return $this->getEngine()->storeText($icon_view); 86 86 }
+1 -1
src/applications/maniphest/constants/ManiphestTaskStatus.php
··· 94 94 $icon = self::getStatusIcon($status); 95 95 96 96 $img = id(new PHUIIconView()) 97 - ->setIconFont($icon.' '.$icon_color); 97 + ->setIcon($icon.' '.$icon_color); 98 98 99 99 $tag = phutil_tag( 100 100 'span',
+2 -4
src/applications/metamta/applicationpanel/PhabricatorMetaMTAApplicationEmailPanel.php
··· 29 29 id(new PHUIButtonView()) 30 30 ->setTag('a') 31 31 ->setText(pht('Edit Application Emails')) 32 - ->setIcon( 33 - id(new PHUIIconView()) 34 - ->setIconFont('fa-pencil')) 32 + ->setIcon('fa-pencil') 35 33 ->setHref($this->getPanelURI()) 36 34 ->setDisabled(!$can_edit) 37 35 ->setWorkflow(!$can_edit)); ··· 89 87 ->setSubheader($application->getAppEmailBlurb()); 90 88 91 89 $icon = id(new PHUIIconView()) 92 - ->setIconFont('fa-plus'); 90 + ->setIcon('fa-plus'); 93 91 $button = new PHUIButtonView(); 94 92 $button->setText(pht('Add New Address')); 95 93 $button->setTag('a');
+1 -1
src/applications/notification/controller/PhabricatorNotificationStatusController.php
··· 63 63 )); 64 64 65 65 $test_icon = id(new PHUIIconView()) 66 - ->setIconFont('fa-exclamation-triangle'); 66 + ->setIcon('fa-exclamation-triangle'); 67 67 68 68 $test_button = id(new PHUIButtonView()) 69 69 ->setTag('a')
+1 -1
src/applications/notification/query/PhabricatorNotificationSearchEngine.php
··· 85 85 $viewer = $this->requireViewer(); 86 86 87 87 $image = id(new PHUIIconView()) 88 - ->setIconFont('fa-eye-slash'); 88 + ->setIcon('fa-eye-slash'); 89 89 90 90 $button = id(new PHUIButtonView()) 91 91 ->setTag('a')
+1 -1
src/applications/people/controller/PhabricatorPeopleProfileManageController.php
··· 28 28 29 29 $profile_icon = PhabricatorPeopleIconSet::getIconIcon($profile->getIcon()); 30 30 $profile_icon = id(new PHUIIconView()) 31 - ->setIconFont($profile_icon); 31 + ->setIcon($profile_icon); 32 32 $profile_title = $profile->getDisplayTitle(); 33 33 34 34 $header = id(new PHUIHeaderView())
+1 -1
src/applications/people/controller/PhabricatorPeopleProfileViewController.php
··· 29 29 30 30 $profile_icon = PhabricatorPeopleIconSet::getIconIcon($profile->getIcon()); 31 31 $profile_icon = id(new PHUIIconView()) 32 - ->setIconFont($profile_icon); 32 + ->setIcon($profile_icon); 33 33 $profile_title = $profile->getDisplayTitle(); 34 34 35 35 $header = id(new PHUIHeaderView())
+1 -1
src/applications/phame/controller/PhameHomeController.php
··· 60 60 ->setTag('a') 61 61 ->setText(pht('Actions')) 62 62 ->setHref('#') 63 - ->setIconFont('fa-bars') 63 + ->setIcon('fa-bars') 64 64 ->addClass('phui-mobile-menu') 65 65 ->setDropdownMenu($actions); 66 66
+1 -1
src/applications/phame/controller/blog/PhameBlogViewController.php
··· 48 48 ->setTag('a') 49 49 ->setText(pht('Actions')) 50 50 ->setHref('#') 51 - ->setIconFont('fa-bars') 51 + ->setIcon('fa-bars') 52 52 ->addClass('phui-mobile-menu') 53 53 ->setDropdownMenu($actions); 54 54
+1 -1
src/applications/phame/controller/post/PhamePostViewController.php
··· 29 29 ->setTag('a') 30 30 ->setText(pht('Actions')) 31 31 ->setHref('#') 32 - ->setIconFont('fa-bars') 32 + ->setIcon('fa-bars') 33 33 ->addClass('phui-mobile-menu') 34 34 ->setDropdownMenu($actions); 35 35
+1 -1
src/applications/phame/view/PhameBlogListView.php
··· 45 45 $blog->getName()); 46 46 47 47 $icon = id(new PHUIIconView()) 48 - ->setIconFont('fa-plus-square') 48 + ->setIcon('fa-plus-square') 49 49 ->addClass('phame-blog-list-icon'); 50 50 51 51 $add_new = phutil_tag(
+1 -1
src/applications/phame/view/PhameDraftListView.php
··· 53 53 $post->getTitle()); 54 54 55 55 $icon = id(new PHUIIconView()) 56 - ->setIconFont('fa-pencil-square-o') 56 + ->setIcon('fa-pencil-square-o') 57 57 ->addClass('phame-blog-list-icon'); 58 58 59 59 $edit = phutil_tag(
+2 -2
src/applications/phame/view/PhameNextPostView.php
··· 30 30 require_celerity_resource('phame-css'); 31 31 32 32 $p_icon = id(new PHUIIconView()) 33 - ->setIconFont('fa-angle-left'); 33 + ->setIcon('fa-angle-left'); 34 34 35 35 $previous_icon = phutil_tag( 36 36 'div', ··· 69 69 } 70 70 71 71 $n_icon = id(new PHUIIconView()) 72 - ->setIconFont('fa-angle-right'); 72 + ->setIcon('fa-angle-right'); 73 73 74 74 $next_icon = phutil_tag( 75 75 'div',
+1 -1
src/applications/phid/PhabricatorObjectHandle.php
··· 299 299 $icon = null; 300 300 if ($this->getPolicyFiltered()) { 301 301 $icon = id(new PHUIIconView()) 302 - ->setIconFont('fa-lock lightgreytext'); 302 + ->setIcon('fa-lock lightgreytext'); 303 303 } 304 304 305 305 $attributes = $attributes + array(
+2 -2
src/applications/pholio/view/PholioMockImagesView.php
··· 126 126 127 127 $full_icon = array( 128 128 javelin_tag('span', array('aural' => true), pht('View Raw File')), 129 - id(new PHUIIconView())->setIconFont('fa-file-image-o'), 129 + id(new PHUIIconView())->setIcon('fa-file-image-o'), 130 130 ); 131 131 132 132 $download_icon = array( 133 133 javelin_tag('span', array('aural' => true), pht('Download File')), 134 - id(new PHUIIconView())->setIconFont('fa-download'), 134 + id(new PHUIIconView())->setIcon('fa-download'), 135 135 ); 136 136 137 137 $login_uri = id(new PhutilURI('/login/'))
+1 -1
src/applications/pholio/view/PholioTransactionView.php
··· 73 73 74 74 if ($inlines) { 75 75 $icon = id(new PHUIIconView()) 76 - ->setIconFont('fa-comment bluegrey msr'); 76 + ->setIcon('fa-comment bluegrey msr'); 77 77 $header = phutil_tag( 78 78 'div', 79 79 array(
+2 -6
src/applications/phortune/controller/PhortuneAccountListController.php
··· 48 48 id(new PHUIButtonView()) 49 49 ->setTag('a') 50 50 ->setHref($this->getApplicationURI('account/edit/')) 51 - ->setIcon( 52 - id(new PHUIIconView()) 53 - ->setIconFont('fa-plus')) 51 + ->setIcon('fa-plus') 54 52 ->setText(pht('Create Account'))); 55 53 56 54 $payment_box = id(new PHUIObjectBoxView()) ··· 80 78 id(new PHUIButtonView()) 81 79 ->setTag('a') 82 80 ->setHref($this->getApplicationURI('merchant/')) 83 - ->setIcon( 84 - id(new PHUIIconView()) 85 - ->setIconFont('fa-list')) 81 + ->setIcon('fa-list') 86 82 ->setText(pht('View All Merchants'))); 87 83 88 84 $merchant_box = id(new PHUIObjectBoxView())
+3 -7
src/applications/phortune/controller/PhortuneAccountViewController.php
··· 254 254 ->addActionLink( 255 255 id(new PHUIButtonView()) 256 256 ->setTag('a') 257 - ->setIcon( 258 - id(new PHUIIconView()) 259 - ->setIconFont('fa-list')) 257 + ->setIcon('fa-list') 260 258 ->setHref($orders_uri) 261 259 ->setText(pht('View All Orders'))); 262 260 ··· 298 296 ->addActionLink( 299 297 id(new PHUIButtonView()) 300 298 ->setTag('a') 301 - ->setIcon( 302 - id(new PHUIIconView()) 303 - ->setIconFont('fa-list')) 299 + ->setIcon('fa-list') 304 300 ->setHref($charges_uri) 305 301 ->setText(pht('View All Charges'))); 306 302 ··· 336 332 ->setTag('a') 337 333 ->setIcon( 338 334 id(new PHUIIconView()) 339 - ->setIconFont('fa-list')) 335 + ->setIcon('fa-list')) 340 336 ->setHref($subscriptions_uri) 341 337 ->setText(pht('View All Subscriptions'))); 342 338
+1 -2
src/applications/phortune/controller/PhortuneCartViewController.php
··· 132 132 id(new PHUIButtonView()) 133 133 ->setTag('a') 134 134 ->setHref($done_uri) 135 - ->setIcon(id(new PHUIIconView()) 136 - ->setIconFont('fa-check-square green')) 135 + ->setIcon('fa-check-square green') 137 136 ->setText($cart->getDoneActionName())); 138 137 } 139 138 }
+1 -1
src/applications/phortune/controller/PhortuneMerchantViewController.php
··· 279 279 ->setText(pht('Add Payment Provider')) 280 280 ->setDisabled(!$can_edit) 281 281 ->setWorkflow(!$can_edit) 282 - ->setIcon(id(new PHUIIconView())->setIconFont('fa-plus')); 282 + ->setIcon('fa-plus'); 283 283 284 284 $header = id(new PHUIHeaderView()) 285 285 ->setHeader(pht('Payment Providers'))
+1 -3
src/applications/phortune/controller/PhortuneSubscriptionViewController.php
··· 193 193 ->addActionLink( 194 194 id(new PHUIButtonView()) 195 195 ->setTag('a') 196 - ->setIcon( 197 - id(new PHUIIconView()) 198 - ->setIconFont('fa-list')) 196 + ->setIcon('fa-list') 199 197 ->setHref($invoices_uri) 200 198 ->setText(pht('View All Invoices'))); 201 199
+1 -1
src/applications/phortune/view/PhortuneCreditCardForm.php
··· 107 107 ), 108 108 array( 109 109 id(new PHUIIconView()) 110 - ->setIconFont('fa-lock grey'), 110 + ->setIcon('fa-lock grey'), 111 111 ' ', 112 112 $assurance, 113 113 ));
+1 -1
src/applications/phriction/controller/PhrictionDocumentController.php
··· 207 207 ->setTag('a') 208 208 ->setText(pht('Actions')) 209 209 ->setHref('#') 210 - ->setIconFont('fa-bars') 210 + ->setIcon('fa-bars') 211 211 ->addClass('phui-mobile-menu') 212 212 ->setDropdownMenu($actions); 213 213
+1 -1
src/applications/policy/storage/PhabricatorPolicy.php
··· 274 274 $img = null; 275 275 if ($icon) { 276 276 $img = id(new PHUIIconView()) 277 - ->setIconFont($this->getIcon()); 277 + ->setIcon($this->getIcon()); 278 278 } 279 279 280 280 if ($this->getHref()) {
+2 -2
src/applications/ponder/view/PonderAnswerView.php
··· 74 74 ->setTag('a') 75 75 ->setText(pht('Actions')) 76 76 ->setHref('#') 77 - ->setIconFont('fa-bars') 77 + ->setIcon('fa-bars') 78 78 ->setDropdownMenu($actions); 79 79 80 80 $header_name = phutil_tag( ··· 116 116 $vote_class = 'ponder-footer-action-helpful'; 117 117 } 118 118 $icon = id(new PHUIIconView()) 119 - ->setIconFont('fa-thumbs-up msr'); 119 + ->setIcon('fa-thumbs-up msr'); 120 120 $helpful = phutil_tag( 121 121 'span', 122 122 array(
+2 -2
src/applications/ponder/view/PonderFooterView.php
··· 37 37 38 38 if ($this->count == 0) { 39 39 $icon = id(new PHUIIconView()) 40 - ->setIconFont('fa-comments msr'); 40 + ->setIcon('fa-comments msr'); 41 41 $text = pht('Add a Comment'); 42 42 } else { 43 43 $icon = id(new PHUIIconView()) 44 - ->setIconFont('fa-comments msr'); 44 + ->setIcon('fa-comments msr'); 45 45 $text = pht('Show %d Comment(s)', new PhutilNumber($this->count)); 46 46 } 47 47
+2 -2
src/applications/project/controller/PhabricatorProjectBoardViewController.php
··· 405 405 $sort_key) { 406 406 407 407 $sort_icon = id(new PHUIIconView()) 408 - ->setIconFont('fa-sort-amount-asc bluegrey'); 408 + ->setIcon('fa-sort-amount-asc bluegrey'); 409 409 410 410 $named = array( 411 411 PhabricatorProjectColumn::ORDER_NATURAL => pht('Natural'), ··· 675 675 } 676 676 677 677 $column_button = id(new PHUIIconView()) 678 - ->setIconFont('fa-caret-down') 678 + ->setIcon('fa-caret-down') 679 679 ->setHref('#') 680 680 ->addSigil('boards-dropdown-menu') 681 681 ->setMetadata(
+1 -1
src/applications/project/controller/PhabricatorProjectMilestonesController.php
··· 50 50 id(new PHUIButtonView()) 51 51 ->setTag('a') 52 52 ->setHref("/project/edit/?milestone={$id}") 53 - ->setIconFont('fa-plus') 53 + ->setIcon('fa-plus') 54 54 ->setDisabled(!$can_create) 55 55 ->setWorkflow(!$can_create) 56 56 ->setText($button_text));
+1 -1
src/applications/project/controller/PhabricatorProjectProfileController.php
··· 166 166 } 167 167 168 168 $watch_icon = id(new PHUIIconView()) 169 - ->setIconFont($watch_icon); 169 + ->setIcon($watch_icon); 170 170 171 171 return id(new PHUIButtonView()) 172 172 ->setTag('a')
+1 -1
src/applications/project/controller/PhabricatorProjectSubprojectsController.php
··· 50 50 id(new PHUIButtonView()) 51 51 ->setTag('a') 52 52 ->setHref("/project/edit/?parent={$id}") 53 - ->setIconFont('fa-plus') 53 + ->setIcon('fa-plus') 54 54 ->setDisabled(!$can_create) 55 55 ->setWorkflow(!$can_create) 56 56 ->setText($button_text));
+1 -1
src/applications/project/query/PhabricatorProjectSearchEngine.php
··· 137 137 138 138 $options[$icon->getKey()] = array( 139 139 id(new PHUIIconView()) 140 - ->setIconFont($icon->getIcon()), 140 + ->setIcon($icon->getIcon()), 141 141 ' ', 142 142 $icon->getLabel(), 143 143 );
+1 -1
src/applications/project/view/PhabricatorProjectListView.php
··· 29 29 $color = $project->getColor(); 30 30 31 31 $icon_icon = id(new PHUIIconView()) 32 - ->setIconFont("{$icon} {$color}"); 32 + ->setIcon("{$icon} {$color}"); 33 33 34 34 $icon_name = $project->getDisplayIconName(); 35 35
+2 -2
src/applications/project/view/PhabricatorProjectUserListView.php
··· 86 86 ->setImageURI($handle->getImageURI()); 87 87 88 88 $icon = id(new PHUIIconView()) 89 - ->setIconFont($handle->getIcon().' lightbluetext'); 89 + ->setIcon($handle->getIcon().' lightbluetext'); 90 90 91 91 $subtitle = $handle->getSubtitle(); 92 92 ··· 126 126 ->setTag('a') 127 127 ->setIcon( 128 128 id(new PHUIIconView()) 129 - ->setIconFont('fa-list-ul')) 129 + ->setIcon('fa-list-ul')) 130 130 ->setText(pht('View All')) 131 131 ->setHref("/project/members/{$id}/")); 132 132 }
+3 -3
src/applications/search/engine/PhabricatorProfilePanelEngine.php
··· 401 401 $collapse_icon = id(new PHUIIconCircleView()) 402 402 ->addClass('phui-list-item-icon') 403 403 ->addClass('phui-profile-menu-visible-when-expanded') 404 - ->setIconFont('fa-chevron-left'); 404 + ->setIcon('fa-chevron-left'); 405 405 406 406 $expand_icon = id(new PHUIIconCircleView()) 407 407 ->addClass('phui-list-item-icon') ··· 412 412 'tip' => pht('Expand'), 413 413 'align' => 'E', 414 414 )) 415 - ->setIconFont('fa-chevron-right'); 415 + ->setIcon('fa-chevron-right'); 416 416 417 417 $items[] = id(new PHUIListItemView()) 418 418 ->setName('Collapse') ··· 658 658 ->setTag('a') 659 659 ->setText(pht('Configure Menu')) 660 660 ->setHref('#') 661 - ->setIconFont('fa-gear') 661 + ->setIcon('fa-gear') 662 662 ->setDropdownMenu($action_view); 663 663 664 664 $header = id(new PHUIHeaderView())
+1 -1
src/applications/search/profilepanel/PhabricatorMotivatorProfilePanel.php
··· 68 68 case 'catfacts': 69 69 default: 70 70 $fact = array( 71 - id(new PHUIIconView())->setIconFont('fa-paw'), 71 + id(new PHUIIconView())->setIcon('fa-paw'), 72 72 ' ', 73 73 $fact, 74 74 );
+1 -3
src/applications/settings/panel/PhabricatorDesktopNotificationsSettingsPanel.php
··· 126 126 id(new AphrontFormSubmitControl()) 127 127 ->setValue(pht('Save Preference'))); 128 128 129 - $test_icon = id(new PHUIIconView()) 130 - ->setIconFont('fa-exclamation-triangle'); 131 129 $test_button = id(new PHUIButtonView()) 132 130 ->setTag('a') 133 131 ->setWorkflow(true) 134 132 ->setText(pht('Send Test Notification')) 135 133 ->setHref('/notification/test/') 136 - ->setIcon($test_icon); 134 + ->setIcon('fa-exclamation-triangle'); 137 135 138 136 $form_box = id(new PHUIObjectBoxView()) 139 137 ->setHeader(
+1 -4
src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
··· 143 143 $header->setHeader(pht('Email Addresses')); 144 144 145 145 if ($editable) { 146 - $icon = id(new PHUIIconView()) 147 - ->setIconFont('fa-plus'); 148 - 149 146 $button = new PHUIButtonView(); 150 147 $button->setText(pht('Add New Address')); 151 148 $button->setTag('a'); 152 149 $button->setHref($uri->alter('new', 'true')); 153 - $button->setIcon($icon); 150 + $button->setIcon('fa-plus'); 154 151 $button->addSigil('workflow'); 155 152 $header->addActionLink($button); 156 153 }
+1 -3
src/applications/settings/panel/PhabricatorHomePreferencesSettingsPanel.php
··· 182 182 ->setText(pht('Pin Application')) 183 183 ->setHref($this->getPanelURI().'?add=true') 184 184 ->setWorkflow(true) 185 - ->setIcon( 186 - id(new PHUIIconView()) 187 - ->setIconFont('fa-thumb-tack'))); 185 + ->setIcon('fa-thumb-tack')); 188 186 189 187 $box = id(new PHUIObjectBoxView()) 190 188 ->setHeader($header)
+2 -6
src/applications/settings/panel/PhabricatorMultiFactorSettingsPanel.php
··· 107 107 $help_uri = PhabricatorEnv::getDoclink( 108 108 'User Guide: Multi-Factor Authentication'); 109 109 110 - $help_icon = id(new PHUIIconView()) 111 - ->setIconFont('fa-info-circle'); 112 110 $help_button = id(new PHUIButtonView()) 113 111 ->setText(pht('Help')) 114 112 ->setHref($help_uri) 115 113 ->setTag('a') 116 - ->setIcon($help_icon); 114 + ->setIcon('fa-info-circle'); 117 115 118 - $create_icon = id(new PHUIIconView()) 119 - ->setIconFont('fa-plus'); 120 116 $create_button = id(new PHUIButtonView()) 121 117 ->setText(pht('Add Authentication Factor')) 122 118 ->setHref($this->getPanelURI('?new=true')) 123 119 ->setTag('a') 124 120 ->setWorkflow(true) 125 - ->setIcon($create_icon); 121 + ->setIcon('fa-plus'); 126 122 127 123 $header->setHeader(pht('Authentication Factors')); 128 124 $header->addActionLink($help_button);
+2 -6
src/applications/settings/panel/PhabricatorSSHKeysSettingsPanel.php
··· 44 44 $panel = new PHUIObjectBoxView(); 45 45 $header = new PHUIHeaderView(); 46 46 47 - $upload_icon = id(new PHUIIconView()) 48 - ->setIconFont('fa-upload'); 49 47 $upload_button = id(new PHUIButtonView()) 50 48 ->setText(pht('Upload Public Key')) 51 49 ->setHref('/auth/sshkey/upload/?objectPHID='.$user->getPHID()) 52 50 ->setWorkflow(true) 53 51 ->setTag('a') 54 - ->setIcon($upload_icon); 52 + ->setIcon('fa-upload'); 55 53 56 54 try { 57 55 PhabricatorSSHKeyGenerator::assertCanGenerateKeypair(); ··· 60 58 $can_generate = false; 61 59 } 62 60 63 - $generate_icon = id(new PHUIIconView()) 64 - ->setIconFont('fa-lock'); 65 61 $generate_button = id(new PHUIButtonView()) 66 62 ->setText(pht('Generate Keypair')) 67 63 ->setHref('/auth/sshkey/generate/?objectPHID='.$user->getPHID()) 68 64 ->setTag('a') 69 65 ->setWorkflow(true) 70 66 ->setDisabled(!$can_generate) 71 - ->setIcon($generate_icon); 67 + ->setIcon('fa-lock'); 72 68 73 69 $header->setHeader(pht('SSH Public Keys')); 74 70 $header->addActionLink($generate_button);
+2 -7
src/applications/settings/panel/PhabricatorSessionsSettingsPanel.php
··· 112 112 'action', 113 113 )); 114 114 115 - 116 - $terminate_icon = id(new PHUIIconView()) 117 - ->setIconFont('fa-exclamation-triangle'); 118 115 $terminate_button = id(new PHUIButtonView()) 119 116 ->setText(pht('Terminate All Sessions')) 120 117 ->setHref('/auth/session/terminate/all/') 121 118 ->setTag('a') 122 119 ->setWorkflow(true) 123 - ->setIcon($terminate_icon); 120 + ->setIcon('fa-exclamation-triangle'); 124 121 125 122 $header = id(new PHUIHeaderView()) 126 123 ->setHeader(pht('Active Login Sessions')) ··· 128 125 129 126 $hisec = ($viewer->getSession()->getHighSecurityUntil() - time()); 130 127 if ($hisec > 0) { 131 - $hisec_icon = id(new PHUIIconView()) 132 - ->setIconFont('fa-lock'); 133 128 $hisec_button = id(new PHUIButtonView()) 134 129 ->setText(pht('Leave High Security')) 135 130 ->setHref('/auth/session/downgrade/') 136 131 ->setTag('a') 137 132 ->setWorkflow(true) 138 - ->setIcon($hisec_icon); 133 + ->setIcon('fa-lock'); 139 134 $header->addActionLink($hisec_button); 140 135 } 141 136
+1 -4
src/applications/settings/panel/PhabricatorTokensSettingsPanel.php
··· 75 75 'action', 76 76 )); 77 77 78 - 79 - $terminate_icon = id(new PHUIIconView()) 80 - ->setIconFont('fa-exclamation-triangle'); 81 78 $terminate_button = id(new PHUIButtonView()) 82 79 ->setText(pht('Revoke All')) 83 80 ->setHref('/auth/token/revoke/all/') 84 81 ->setTag('a') 85 82 ->setWorkflow(true) 86 - ->setIcon($terminate_icon); 83 + ->setIcon('fa-exclamation-triangle'); 87 84 88 85 $header = id(new PHUIHeaderView()) 89 86 ->setHeader(pht('Temporary Tokens'))
+1 -1
src/applications/transactions/controller/PhabricatorApplicationTransactionValueController.php
··· 105 105 $icon = 'fa-minus-circle red'; 106 106 } 107 107 $icon = id(new PHUIIconView()) 108 - ->setIconFont($icon) 108 + ->setIcon($icon) 109 109 ->setText( 110 110 ucfirst($rule['action']).' '.$rule_object->getRuleDescription()); 111 111
+1 -1
src/applications/transactions/editengine/PhabricatorEditEngine.php
··· 1090 1090 ->setTag('a') 1091 1091 ->setText(pht('Configure Form')) 1092 1092 ->setHref('#') 1093 - ->setIconFont('fa-gear') 1093 + ->setIcon('fa-gear') 1094 1094 ->setDropdownMenu($action_view); 1095 1095 1096 1096 return $action_button;
+2 -2
src/applications/transactions/view/PhabricatorApplicationEditHTTPParameterHelpView.php
··· 210 210 $uri, 211 211 $uri); 212 212 213 - $yes = id(new PHUIIconView())->setIconFont('fa-check-circle green'); 214 - $no = id(new PHUIIconView())->setIconFont('fa-times grey'); 213 + $yes = id(new PHUIIconView())->setIcon('fa-check-circle green'); 214 + $no = id(new PHUIIconView())->setIcon('fa-times grey'); 215 215 216 216 $rows = array(); 217 217 foreach ($fields as $field) {
+1 -1
src/applications/typeahead/controller/PhabricatorTypeaheadModularDatasourceController.php
··· 237 237 238 238 $function_help = array( 239 239 id(new PHUIIconView()) 240 - ->setIconFont('fa-book'), 240 + ->setIcon('fa-book'), 241 241 ' ', 242 242 $reference_link, 243 243 );
+1 -3
src/applications/uiexample/examples/PHUIBoxExample.php
··· 61 61 ->addMargin(PHUI::MARGIN_LARGE_BOTTOM), 62 62 ); 63 63 64 - $image = id(new PHUIIconView()) 65 - ->setIconFont('fa-heart'); 66 64 $button = id(new PHUIButtonView()) 67 65 ->setTag('a') 68 66 ->setColor(PHUIButtonView::SIMPLE) 69 - ->setIcon($image) 67 + ->setIcon('fa-heart') 70 68 ->setText(pht('Such Wow')) 71 69 ->addClass(PHUI::MARGIN_SMALL_RIGHT); 72 70
+3 -11
src/applications/uiexample/examples/PHUIButtonBarExample.php
··· 23 23 ); 24 24 $button_bar1 = new PHUIButtonBarView(); 25 25 foreach ($icons as $text => $icon) { 26 - $image = id(new PHUIIconView()) 27 - ->setIconFont($icon); 28 26 $button = id(new PHUIButtonView()) 29 27 ->setTag('a') 30 28 ->setColor(PHUIButtonView::GREY) 31 29 ->setTitle($text) 32 - ->setIcon($image); 30 + ->setIcon($icon); 33 31 34 32 $button_bar1->addButton($button); 35 33 } 36 34 37 35 $button_bar2 = new PHUIButtonBarView(); 38 36 foreach ($icons as $text => $icon) { 39 - $image = id(new PHUIIconView()) 40 - ->setIconFont($icon); 41 37 $button = id(new PHUIButtonView()) 42 38 ->setTag('a') 43 39 ->setColor(PHUIButtonView::SIMPLE) ··· 49 45 50 46 $button_bar3 = new PHUIButtonBarView(); 51 47 foreach ($icons as $text => $icon) { 52 - $image = id(new PHUIIconView()) 53 - ->setIconFont($icon); 54 48 $button = id(new PHUIButtonView()) 55 49 ->setTag('a') 56 50 ->setColor(PHUIButtonView::SIMPLE) 57 51 ->setTitle($text) 58 52 ->setTooltip($text) 59 - ->setIcon($image); 53 + ->setIcon($icon); 60 54 61 55 $button_bar3->addButton($button); 62 56 } ··· 64 58 $button_bar4 = new PHUIButtonBarView(); 65 59 $button_bar4->setBorderless(true); 66 60 foreach ($icons as $text => $icon) { 67 - $image = id(new PHUIIconView()) 68 - ->setIconFont($icon); 69 61 $button = id(new PHUIButtonView()) 70 62 ->setTag('a') 71 63 ->setTitle($text) 72 64 ->setTooltip($text) 73 - ->setIcon($image); 65 + ->setIcon($icon); 74 66 75 67 $button_bar4->addButton($button); 76 68 }
+2 -6
src/applications/uiexample/examples/PHUIButtonExample.php
··· 112 112 'Implode Earth' => 'fa-exclamation-triangle red', 113 113 ); 114 114 foreach ($icons as $text => $icon) { 115 - $image = id(new PHUIIconView()) 116 - ->setIconFont($icon); 117 115 $column[] = id(new PHUIButtonView()) 118 116 ->setTag('a') 119 117 ->setColor(PHUIButtonView::GREY) 120 - ->setIcon($image) 118 + ->setIcon($icon) 121 119 ->setText($text) 122 120 ->addClass(PHUI::MARGIN_SMALL_RIGHT); 123 121 } ··· 140 138 $column = array(); 141 139 foreach ($colors as $color) { 142 140 foreach ($icons as $text => $icon) { 143 - $image = id(new PHUIIconView()) 144 - ->setIconFont($icon); 145 141 $column[] = id(new PHUIButtonView()) 146 142 ->setTag('a') 147 143 ->setColor($color) 148 - ->setIcon($image) 144 + ->setIcon($icon) 149 145 ->setText($text) 150 146 ->addClass(PHUI::MARGIN_SMALL_RIGHT); 151 147 }
+3 -3
src/applications/uiexample/examples/PHUIFeedStoryExample.php
··· 70 70 '<strong><a>harding (Tom Harding)</a></strong> awarded '. 71 71 '<a>M10: Workboards</a> a token.'); 72 72 $action1 = id(new PHUIIconView()) 73 - ->setIconFont('fa-trophy bluegrey') 73 + ->setIcon('fa-trophy bluegrey') 74 74 ->setHref('#'); 75 75 $token = 76 76 id(new PHUIIconView()) ··· 91 91 '<strong><a>wgharding (Warren Harding)</a></strong> '. 92 92 'asked a new question.'); 93 93 $action1 = id(new PHUIIconView()) 94 - ->setIconFont('fa-chevron-up bluegrey') 94 + ->setIcon('fa-chevron-up bluegrey') 95 95 ->setHref('#'); 96 96 $action2 = id(new PHUIIconView()) 97 - ->setIconFont('fa-chevron-down bluegrey') 97 + ->setIcon('fa-chevron-down bluegrey') 98 98 ->setHref('#'); 99 99 $story4 = id(new PHUIFeedStoryView()) 100 100 ->setTitle($text)
+4 -4
src/applications/uiexample/examples/PHUIIconExample.php
··· 33 33 foreach ($colors as $color) { 34 34 $cicons[] = id(new PHUIIconView()) 35 35 ->addClass('phui-example-icon-transform') 36 - ->setIconFont('fa-tag '.$color) 36 + ->setIcon('fa-tag '.$color) 37 37 ->setText(pht('fa-tag %s', $color)); 38 38 } 39 39 $ficons = array(); ··· 41 41 foreach ($fas as $fa) { 42 42 $ficons[] = id(new PHUIIconView()) 43 43 ->addClass('phui-example-icon-name') 44 - ->setIconFont($fa) 44 + ->setIcon($fa) 45 45 ->setText($fa); 46 46 } 47 47 ··· 115 115 foreach ($circles as $circle) { 116 116 $circleview[] = 117 117 id(new PHUIIconCircleView()) 118 - ->setIconFont($circle) 118 + ->setIcon($circle) 119 119 ->setHref('#') 120 120 ->addClass('mmr'); 121 121 } ··· 124 124 foreach ($circles as $circle) { 125 125 $circleview[] = 126 126 id(new PHUIIconCircleView()) 127 - ->setIconFont($circle) 127 + ->setIcon($circle) 128 128 ->setSize(PHUIIconCircleView::MEDIUM) 129 129 ->setHref('#') 130 130 ->addClass('mmr');
+9 -9
src/infrastructure/diff/view/PHUIDiffInlineCommentDetailView.php
··· 154 154 } 155 155 156 156 $ghost_icon = id(new PHUIIconView()) 157 - ->setIconFont($ghosticon) 157 + ->setIcon($ghosticon) 158 158 ->addSigil('has-tooltip') 159 159 ->setMetadata( 160 160 array( ··· 200 200 $up = id(new PHUIButtonView()) 201 201 ->setTag('a') 202 202 ->setTooltip(pht('Previous')) 203 - ->setIconFont('fa-chevron-up') 203 + ->setIcon('fa-chevron-up') 204 204 ->addSigil('differential-inline-prev') 205 205 ->setMustCapture(true); 206 206 207 207 $down = id(new PHUIButtonView()) 208 208 ->setTag('a') 209 209 ->setTooltip(pht('Next')) 210 - ->setIconFont('fa-chevron-down') 210 + ->setIcon('fa-chevron-down') 211 211 ->addSigil('differential-inline-next') 212 212 ->setMustCapture(true); 213 213 ··· 215 215 $hide = id(new PHUIButtonView()) 216 216 ->setTag('a') 217 217 ->setTooltip(pht('Hide Comment')) 218 - ->setIconFont('fa-times') 218 + ->setIcon('fa-times') 219 219 ->addSigil('hide-inline') 220 220 ->setMustCapture(true); 221 221 ··· 235 235 236 236 $action_buttons[] = id(new PHUIButtonView()) 237 237 ->setTag('a') 238 - ->setIconFont('fa-reply') 238 + ->setIcon('fa-reply') 239 239 ->setTooltip(pht('Reply')) 240 240 ->addSigil('differential-inline-reply') 241 241 ->setMustCapture(true); ··· 248 248 if ($this->editable && !$this->preview) { 249 249 $action_buttons[] = id(new PHUIButtonView()) 250 250 ->setTag('a') 251 - ->setIconFont('fa-pencil') 251 + ->setIcon('fa-pencil') 252 252 ->setTooltip(pht('Edit')) 253 253 ->addSigil('differential-inline-edit') 254 254 ->setMustCapture(true); 255 255 256 256 $action_buttons[] = id(new PHUIButtonView()) 257 257 ->setTag('a') 258 - ->setIconFont('fa-trash-o') 258 + ->setIcon('fa-trash-o') 259 259 ->setTooltip(pht('Delete')) 260 260 ->addSigil('differential-inline-delete') 261 261 ->setMustCapture(true); ··· 275 275 $action_buttons[] = id(new PHUIButtonView()) 276 276 ->setTag('a') 277 277 ->setTooltip(pht('Delete')) 278 - ->setIconFont('fa-trash-o') 278 + ->setIcon('fa-trash-o') 279 279 ->addSigil('differential-inline-delete') 280 280 ->setMustCapture(true); 281 281 } ··· 338 338 )); 339 339 } else { 340 340 if ($is_done) { 341 - $icon = id(new PHUIIconView())->setIconFont('fa-check sky msr'); 341 + $icon = id(new PHUIIconView())->setIcon('fa-check sky msr'); 342 342 $label = pht('Done'); 343 343 $class = 'button-done'; 344 344 } else {
+1 -1
src/infrastructure/diff/view/PHUIDiffRevealIconView.php
··· 4 4 5 5 public function render() { 6 6 $icon = id(new PHUIIconView()) 7 - ->setIconFont('fa-comment') 7 + ->setIcon('fa-comment') 8 8 ->addSigil('has-tooltip') 9 9 ->setMetadata( 10 10 array(
+2 -2
src/infrastructure/diff/view/PhabricatorInlineSummaryView.php
··· 31 31 } 32 32 33 33 $icon = id(new PHUIIconView()) 34 - ->setIconFont('fa-file-code-o darkbluetext mmr'); 34 + ->setIcon('fa-file-code-o darkbluetext mmr'); 35 35 $header = phutil_tag( 36 36 'th', 37 37 array( ··· 65 65 66 66 if ($href) { 67 67 $icon = id(new PHUIIconView()) 68 - ->setIconFont('fa-share darkbluetext mmr'); 68 + ->setIcon('fa-share darkbluetext mmr'); 69 69 70 70 $lines = phutil_tag( 71 71 'a',
+3 -3
src/view/control/AphrontCursorPagerView.php
··· 142 142 $first_uri = $this->getFirstPageURI(); 143 143 if ($first_uri) { 144 144 $icon = id(new PHUIIconView()) 145 - ->setIconFont('fa-fast-backward'); 145 + ->setIcon('fa-fast-backward'); 146 146 $links[] = id(new PHUIButtonView()) 147 147 ->setTag('a') 148 148 ->setHref($first_uri) ··· 155 155 $prev_uri = $this->getPrevPageURI(); 156 156 if ($prev_uri) { 157 157 $icon = id(new PHUIIconView()) 158 - ->setIconFont('fa-backward'); 158 + ->setIcon('fa-backward'); 159 159 $links[] = id(new PHUIButtonView()) 160 160 ->setTag('a') 161 161 ->setHref($prev_uri) ··· 168 168 $next_uri = $this->getNextPageURI(); 169 169 if ($next_uri) { 170 170 $icon = id(new PHUIIconView()) 171 - ->setIconFont('fa-forward'); 171 + ->setIcon('fa-forward'); 172 172 $links[] = id(new PHUIButtonView()) 173 173 ->setTag('a') 174 174 ->setHref($next_uri)
+1 -1
src/view/control/AphrontTokenizerTemplateView.php
··· 79 79 $content); 80 80 81 81 $icon = id(new PHUIIconView()) 82 - ->setIconFont('fa-search'); 82 + ->setIcon('fa-search'); 83 83 84 84 $browse = id(new PHUIButtonView()) 85 85 ->setTag('a')
+1 -1
src/view/form/control/AphrontFormDateControl.php
··· 217 217 $date_sel); 218 218 219 219 $cicon = id(new PHUIIconView()) 220 - ->setIconFont('fa-calendar'); 220 + ->setIcon('fa-calendar'); 221 221 222 222 $cal_icon = javelin_tag( 223 223 'a',
+1 -1
src/view/form/control/AphrontFormPolicyControl.php
··· 242 242 $icons = array(); 243 243 foreach (igroup($flat_options, 'icon') as $icon => $ignored) { 244 244 $icons[$icon] = id(new PHUIIconView()) 245 - ->setIconFont($icon); 245 + ->setIcon($icon); 246 246 } 247 247 248 248
+1 -1
src/view/layout/PhabricatorActionView.php
··· 105 105 } 106 106 $icon = id(new PHUIIconView()) 107 107 ->addClass('phabricator-action-view-icon') 108 - ->setIconFont($this->icon.$color); 108 + ->setIcon($this->icon.$color); 109 109 } 110 110 111 111 if ($this->href) {
+1 -1
src/view/page/menu/PhabricatorMainMenuSearchView.php
··· 203 203 ->setIcon( 204 204 id(new PHUIIconView()) 205 205 ->addSigil('global-search-dropdown-icon') 206 - ->setIconFont($current_icon)) 206 + ->setIcon($current_icon)) 207 207 ->setDropdown(true); 208 208 209 209 $input = javelin_tag(
+1 -1
src/view/phui/PHUIActionPanelView.php
··· 80 80 $icon = null; 81 81 if ($this->fontIcon) { 82 82 $fonticon = id(new PHUIIconView()) 83 - ->setIconFont($this->fontIcon); 83 + ->setIcon($this->fontIcon); 84 84 $icon = phutil_tag( 85 85 'span', 86 86 array(
+1 -1
src/view/phui/PHUIBadgeMiniView.php
··· 65 65 66 66 protected function getTagContent() { 67 67 return id(new PHUIIconView()) 68 - ->setIconFont($this->icon); 68 + ->setIcon($this->icon); 69 69 } 70 70 71 71 }
+1 -1
src/view/phui/PHUIBadgeView.php
··· 104 104 protected function getTagContent() { 105 105 106 106 $icon = id(new PHUIIconView()) 107 - ->setIconFont($this->icon); 107 + ->setIcon($this->icon); 108 108 109 109 $illustration = phutil_tag_div('phui-badge-illustration', $icon); 110 110
+1 -1
src/view/phui/PHUIBigInfoView.php
··· 44 44 require_celerity_resource('phui-big-info-view-css'); 45 45 46 46 $icon = id(new PHUIIconView()) 47 - ->setIconFont($this->icon) 47 + ->setIcon($this->icon) 48 48 ->addClass('phui-big-info-icon'); 49 49 50 50 $icon = phutil_tag(
+5 -9
src/view/phui/PHUIButtonView.php
··· 21 21 private $tag = 'button'; 22 22 private $dropdown; 23 23 private $icon; 24 - private $iconFont; 25 24 private $iconFirst; 26 25 private $href = null; 27 26 private $title = null; ··· 88 87 return $this; 89 88 } 90 89 91 - public function setIcon(PHUIIconView $icon, $first = true) { 90 + public function setIcon($icon, $first = true) { 91 + if (!($icon instanceof PHUIIconView)) { 92 + $icon = id(new PHUIIconView()) 93 + ->setIcon($icon); 94 + } 92 95 $this->icon = $icon; 93 96 $this->iconFirst = $first; 94 - return $this; 95 - } 96 - 97 - public function setIconFont($icon) { 98 - $icon = id(new PHUIIconView()) 99 - ->setIconFont($icon); 100 - $this->setIcon($icon); 101 97 return $this; 102 98 } 103 99
+2 -2
src/view/phui/PHUICrumbView.php
··· 70 70 if ($this->icon) { 71 71 $classes[] = 'phui-crumb-has-icon'; 72 72 $icon = id(new PHUIIconView()) 73 - ->setIconFont($this->icon); 73 + ->setIcon($this->icon); 74 74 } 75 75 76 76 $name = phutil_tag( ··· 83 83 $divider = null; 84 84 if (!$this->isLastCrumb) { 85 85 $divider = id(new PHUIIconView()) 86 - ->setIconFont('fa-angle-right') 86 + ->setIcon('fa-angle-right') 87 87 ->addClass('phui-crumb-divider') 88 88 ->addClass('phui-crumb-view'); 89 89 } else {
+1 -1
src/view/phui/PHUICrumbsView.php
··· 60 60 } 61 61 62 62 $icon = id(new PHUIIconView()) 63 - ->setIconFont($icon_name); 63 + ->setIcon($icon_name); 64 64 65 65 } 66 66 $name = phutil_tag(
+1 -1
src/view/phui/PHUIDocumentViewPro.php
··· 78 78 $toc_id = celerity_generate_unique_node_id(); 79 79 $toc[] = id(new PHUIButtonView()) 80 80 ->setTag('a') 81 - ->setIconFont('fa-align-left') 81 + ->setIcon('fa-align-left') 82 82 ->setColor(PHUIButtonView::SIMPLE) 83 83 ->addClass('phui-document-toc') 84 84 ->addSigil('jx-toggle-class')
+1 -1
src/view/phui/PHUIFeedStoryView.php
··· 193 193 $icon = null; 194 194 if ($this->appIcon) { 195 195 $icon = id(new PHUIIconView()) 196 - ->setIconFont($this->appIcon); 196 + ->setIcon($this->appIcon); 197 197 } 198 198 199 199 $action_list = array();
+3 -3
src/view/phui/PHUIHeaderView.php
··· 117 117 } 118 118 119 119 $img = id(new PHUIIconView()) 120 - ->setIconFont($icon); 120 + ->setIcon($icon); 121 121 122 122 $tag = phutil_tag( 123 123 'span', ··· 287 287 288 288 if ($this->headerIcon) { 289 289 $icon = id(new PHUIIconView()) 290 - ->setIconFont($this->headerIcon); 290 + ->setIcon($this->headerIcon); 291 291 $left[] = $icon; 292 292 } 293 293 $left[] = phutil_tag( ··· 461 461 } 462 462 463 463 $icon = id(new PHUIIconView()) 464 - ->setIconFont($policy->getIcon().' bluegrey'); 464 + ->setIcon($policy->getIcon().' bluegrey'); 465 465 466 466 $link = javelin_tag( 467 467 'a',
+2 -2
src/view/phui/PHUIIconCircleView.php
··· 15 15 return $this; 16 16 } 17 17 18 - public function setIconFont($icon) { 18 + public function setIcon($icon) { 19 19 $this->icon = $icon; 20 20 return $this; 21 21 } ··· 60 60 61 61 protected function getTagContent() { 62 62 return id(new PHUIIconView()) 63 - ->setIconFont($this->icon) 63 + ->setIcon($this->icon) 64 64 ->addClass($this->color); 65 65 } 66 66
+1 -1
src/view/phui/PHUIIconView.php
··· 48 48 return $this; 49 49 } 50 50 51 - public function setIconFont($icon, $color = null) { 51 + public function setIcon($icon, $color = null) { 52 52 $this->iconFont = $icon; 53 53 $this->iconColor = $color; 54 54 return $this;
+1 -1
src/view/phui/PHUIListItemView.php
··· 269 269 270 270 $icon = id(new PHUIIconView()) 271 271 ->addClass('phui-list-item-icon') 272 - ->setIconFont($icon_name); 272 + ->setIcon($icon_name); 273 273 } 274 274 275 275 if ($this->profileImage) {
+1 -1
src/view/phui/PHUIObjectBoxView.php
··· 264 264 if ($this->actionListID) { 265 265 $icon_id = celerity_generate_unique_node_id(); 266 266 $icon = id(new PHUIIconView()) 267 - ->setIconFont('fa-bars'); 267 + ->setIcon('fa-bars'); 268 268 $meta = array( 269 269 'map' => array( 270 270 $this->actionListID => 'phabricator-action-list-toggle',
+3 -3
src/view/phui/PHUIObjectItemView.php
··· 175 175 176 176 public function setFontIcon($icon) { 177 177 $this->fontIcon = id(new PHUIIconView()) 178 - ->setIconFont($icon); 178 + ->setIcon($icon); 179 179 return $this; 180 180 } 181 181 ··· 401 401 foreach ($this->icons as $spec) { 402 402 $icon = $spec['icon']; 403 403 $icon = id(new PHUIIconView()) 404 - ->setIconFont($icon) 404 + ->setIcon($icon) 405 405 ->addClass('phui-object-item-icon-image'); 406 406 407 407 if (isset($spec['attributes']['tip'])) { ··· 725 725 Javelin::initBehavior('phabricator-tooltips'); 726 726 727 727 $icon = id(new PHUIIconView()) 728 - ->setIconFont($icon); 728 + ->setIcon($icon); 729 729 730 730 $options = array( 731 731 'class' => 'phui-object-item-status-icon',
+1 -1
src/view/phui/PHUIPinboardItemView.php
··· 95 95 $icon_list = array(); 96 96 foreach ($this->iconBlock as $block) { 97 97 $icon = id(new PHUIIconView()) 98 - ->setIconFont($block[0].' lightgreytext') 98 + ->setIcon($block[0].' lightgreytext') 99 99 ->addClass('phui-pinboard-icon'); 100 100 101 101 $count = phutil_tag('span', array(), $block[1]);
+1 -1
src/view/phui/PHUIPropertyListView.php
··· 258 258 $name = $part['name']; 259 259 if ($part['icon']) { 260 260 $icon = id(new PHUIIconView()) 261 - ->setIconFont($part['icon'].' bluegrey'); 261 + ->setIcon($part['icon'].' bluegrey'); 262 262 $name = phutil_tag( 263 263 'span', 264 264 array(
+1 -1
src/view/phui/PHUIStatusItemView.php
··· 70 70 $icon = null; 71 71 if ($this->icon) { 72 72 $icon = id(new PHUIIconView()) 73 - ->setIconFont($this->icon.' '.$this->iconColor); 73 + ->setIcon($this->icon.' '.$this->iconColor); 74 74 75 75 if ($this->iconLabel) { 76 76 Javelin::initBehavior('phabricator-tooltips');
+1 -1
src/view/phui/PHUITagView.php
··· 166 166 167 167 if ($this->icon) { 168 168 $icon = id(new PHUIIconView()) 169 - ->setIconFont($this->icon); 169 + ->setIcon($this->icon); 170 170 } else { 171 171 $icon = null; 172 172 }
+2 -2
src/view/phui/PHUITimelineEventView.php
··· 236 236 } 237 237 238 238 $icon = id(new PHUIIconView()) 239 - ->setIconFont($this->icon.' white') 239 + ->setIcon($this->icon.' white') 240 240 ->addClass('phui-timeline-icon'); 241 241 242 242 $icon = phutil_tag( ··· 297 297 298 298 if ($items || $has_menu) { 299 299 $icon = id(new PHUIIconView()) 300 - ->setIconFont('fa-caret-down'); 300 + ->setIcon('fa-caret-down'); 301 301 $aural = javelin_tag( 302 302 'span', 303 303 array(
+2 -2
src/view/phui/calendar/PHUICalendarDayView.php
··· 340 340 $button_bar = new PHUIButtonBarView(); 341 341 342 342 $left_icon = id(new PHUIIconView()) 343 - ->setIconFont('fa-chevron-left bluegrey'); 343 + ->setIcon('fa-chevron-left bluegrey'); 344 344 $left = id(new PHUIButtonView()) 345 345 ->setTag('a') 346 346 ->setColor(PHUIButtonView::GREY) ··· 349 349 ->setIcon($left_icon); 350 350 351 351 $right_icon = id(new PHUIIconView()) 352 - ->setIconFont('fa-chevron-right bluegrey'); 352 + ->setIcon('fa-chevron-right bluegrey'); 353 353 $right = id(new PHUIButtonView()) 354 354 ->setTag('a') 355 355 ->setColor(PHUIButtonView::GREY)
+1 -1
src/view/phui/calendar/PHUICalendarListView.php
··· 60 60 } 61 61 62 62 $dot = id(new PHUIIconView()) 63 - ->setIconFont($event->getIcon(), $icon_color) 63 + ->setIcon($event->getIcon(), $icon_color) 64 64 ->addClass('phui-calendar-list-item-icon'); 65 65 66 66 $title = phutil_tag(
+2 -2
src/view/phui/calendar/PHUICalendarMonthView.php
··· 396 396 $button_bar = new PHUIButtonBarView(); 397 397 398 398 $left_icon = id(new PHUIIconView()) 399 - ->setIconFont('fa-chevron-left bluegrey'); 399 + ->setIcon('fa-chevron-left bluegrey'); 400 400 $left = id(new PHUIButtonView()) 401 401 ->setTag('a') 402 402 ->setColor(PHUIButtonView::GREY) ··· 405 405 ->setIcon($left_icon); 406 406 407 407 $right_icon = id(new PHUIIconView()) 408 - ->setIconFont('fa-chevron-right bluegrey'); 408 + ->setIcon('fa-chevron-right bluegrey'); 409 409 $right = id(new PHUIButtonView()) 410 410 ->setTag('a') 411 411 ->setColor(PHUIButtonView::GREY)