New icons for Projects
Summary: Updates the builtin images, leaves the old choose... icons for now. I'd like to automate this based on icon when creating a project. Test Plan: Visit edit picture page, pick a few. Purge cache, see new default image. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D18162
Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 4.2 KiB |
BIN
resources/builtin/projects/v3/briefcase.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
resources/builtin/projects/v3/bug.png
Normal file
After Width: | Height: | Size: 8 KiB |
BIN
resources/builtin/projects/v3/calendar.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
resources/builtin/projects/v3/cloud.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
resources/builtin/projects/v3/creditcard.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
resources/builtin/projects/v3/database.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
resources/builtin/projects/v3/desktop.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
resources/builtin/projects/v3/experimental.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
resources/builtin/projects/v3/flag.png
Normal file
After Width: | Height: | Size: 6.6 KiB |
BIN
resources/builtin/projects/v3/folder.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
resources/builtin/projects/v3/lock.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
resources/builtin/projects/v3/mail.png
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
resources/builtin/projects/v3/mobile.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
resources/builtin/projects/v3/organization.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
resources/builtin/projects/v3/people.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
resources/builtin/projects/v3/servers.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
resources/builtin/projects/v3/tag.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
resources/builtin/projects/v3/trash.png
Normal file
After Width: | Height: | Size: 8.9 KiB |
BIN
resources/builtin/projects/v3/truck.png
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
resources/builtin/projects/v3/umbrella.png
Normal file
After Width: | Height: | Size: 9.6 KiB |
|
@ -121,9 +121,39 @@ final class PhabricatorProjectEditPictureController
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$builtins = array(
|
||||||
|
'projects/v3/bug.png',
|
||||||
|
'projects/v3/calendar.png',
|
||||||
|
'projects/v3/cloud.png',
|
||||||
|
'projects/v3/creditcard.png',
|
||||||
|
'projects/v3/database.png',
|
||||||
|
'projects/v3/desktop.png',
|
||||||
|
'projects/v3/experimental.png',
|
||||||
|
'projects/v3/flag.png',
|
||||||
|
'projects/v3/folder.png',
|
||||||
|
'projects/v3/lock.png',
|
||||||
|
'projects/v3/mail.png',
|
||||||
|
'projects/v3/mobile.png',
|
||||||
|
'projects/v3/organization.png',
|
||||||
|
'projects/v3/people.png',
|
||||||
|
'projects/v3/servers.png',
|
||||||
|
'projects/v3/tag.png',
|
||||||
|
'projects/v3/trash.png',
|
||||||
|
'projects/v3/truck.png',
|
||||||
|
'projects/v3/umbrella.png',
|
||||||
|
);
|
||||||
|
|
||||||
|
foreach ($builtins as $builtin) {
|
||||||
|
$file = PhabricatorFile::loadBuiltin($viewer, $builtin);
|
||||||
|
$images[$file->getPHID()] = array(
|
||||||
|
'uri' => $file->getBestURI(),
|
||||||
|
'tip' => pht('Builtin Image'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$images[PhabricatorPHIDConstants::PHID_VOID] = array(
|
$images[PhabricatorPHIDConstants::PHID_VOID] = array(
|
||||||
'uri' => $default_image->getBestURI(),
|
'uri' => $default_image->getBestURI(),
|
||||||
'tip' => pht('No Picture'),
|
'tip' => pht('Default Picture'),
|
||||||
);
|
);
|
||||||
|
|
||||||
require_celerity_resource('people-profile-css');
|
require_celerity_resource('people-profile-css');
|
||||||
|
@ -200,7 +230,7 @@ final class PhabricatorProjectEditPictureController
|
||||||
$compose_button = javelin_tag(
|
$compose_button = javelin_tag(
|
||||||
'button',
|
'button',
|
||||||
array(
|
array(
|
||||||
'class' => 'grey',
|
'class' => 'button-grey',
|
||||||
'id' => $launch_id,
|
'id' => $launch_id,
|
||||||
'sigil' => 'icon-composer',
|
'sigil' => 'icon-composer',
|
||||||
),
|
),
|
||||||
|
@ -227,7 +257,7 @@ final class PhabricatorProjectEditPictureController
|
||||||
|
|
||||||
$form->appendChild(
|
$form->appendChild(
|
||||||
id(new AphrontFormMarkupControl())
|
id(new AphrontFormMarkupControl())
|
||||||
->setLabel(pht('Quick Create'))
|
->setLabel(pht('Custom'))
|
||||||
->setValue($compose_form));
|
->setValue($compose_form));
|
||||||
|
|
||||||
$upload_form = id(new AphrontFormView())
|
$upload_form = id(new AphrontFormView())
|
||||||
|
|