Convert ButtonBar to FontAwesome

Summary: Removes the sprites and images, uses fontawesome in examples and calendar

Test Plan:
UIExamples, Calendar

{F163375}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9371
This commit is contained in:
Chad Little
2014-06-04 12:53:32 -07:00
parent d7ffe97857
commit 14dab3f55c
12 changed files with 17 additions and 157 deletions

View File

@@ -16,15 +16,14 @@ final class PHUIButtonBarExample extends PhabricatorUIExample {
// Icon Buttons
$icons = array(
'Go Back' => 'chevron-left',
'Choose Date' => 'calendar',
'Edit View' => 'pencil',
'Go Forward' => 'chevron-right');
'Go Back' => 'fa-chevron-left bluegrey',
'Choose Date' => 'fa-calendar bluegrey',
'Edit View' => 'fa-pencil bluegrey',
'Go Forward' => 'fa-chevron-right bluegrey');
$button_bar = new PHUIButtonBarView();
foreach ($icons as $text => $icon) {
$image = id(new PHUIIconView())
->setSpriteSheet(PHUIIconView::SPRITE_BUTTONBAR)
->setSpriteIcon($icon);
->setIconFont($icon);
$button = id(new PHUIButtonView())
->setTag('a')
->setColor(PHUIButtonView::GREY)