Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/config/PhabricatorProjectConfigOptions.php
Show All 15 Lines | final class PhabricatorProjectConfigOptions | ||||
} | } | ||||
public function getGroup() { | public function getGroup() { | ||||
return 'apps'; | return 'apps'; | ||||
} | } | ||||
public function getOptions() { | public function getOptions() { | ||||
$default_icons = PhabricatorProjectIconSet::getDefaultConfiguration(); | $default_icons = PhabricatorProjectIconSet::getDefaultConfiguration(); | ||||
$icons_type = 'custom:PhabricatorProjectIconsConfigOptionType'; | $icons_type = 'project.icons'; | ||||
$icons_description = $this->deformat(pht(<<<EOTEXT | $icons_description = $this->deformat(pht(<<<EOTEXT | ||||
Allows you to change and customize the available project icons. | Allows you to change and customize the available project icons. | ||||
You can find a list of available icons in {nav UIExamples > Icons and Images}. | You can find a list of available icons in {nav UIExamples > Icons and Images}. | ||||
Configure a list of icon specifications. Each icon specification should be | Configure a list of icon specifications. Each icon specification should be | ||||
a dictionary, which may contain these keys: | a dictionary, which may contain these keys: | ||||
Show All 10 Lines | - `milestone` This is the icon for milestones. Exactly one icon must be | ||||
selected as the milestone icon. | selected as the milestone icon. | ||||
You can look at the default configuration below for an example of a valid | You can look at the default configuration below for an example of a valid | ||||
configuration. | configuration. | ||||
EOTEXT | EOTEXT | ||||
)); | )); | ||||
$default_colors = PhabricatorProjectIconSet::getDefaultColorMap(); | $default_colors = PhabricatorProjectIconSet::getDefaultColorMap(); | ||||
$colors_type = 'custom:PhabricatorProjectColorsConfigOptionType'; | $colors_type = 'project.colors'; | ||||
$colors_description = $this->deformat(pht(<<<EOTEXT | $colors_description = $this->deformat(pht(<<<EOTEXT | ||||
Allows you to relabel project colors. | Allows you to relabel project colors. | ||||
The list of available colors can not be expanded, but the existing colors may | The list of available colors can not be expanded, but the existing colors may | ||||
be given labels. | be given labels. | ||||
Configure a list of color specifications. Each color specification should be a | Configure a list of color specifications. Each color specification should be a | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |