Page MenuHomePhabricator

PhabricatorUIConfigOptions.php
No OneTemporary

PhabricatorUIConfigOptions.php

<?php
final class PhabricatorUIConfigOptions
extends PhabricatorApplicationConfigOptions {
public function getName() {
return pht("User Interface");
}
public function getDescription() {
return pht("Configure the Phabricator UI, including colors.");
}
public function getOptions() {
$manifest = PHUIIconView::getSheetManifest('main-header');
$options = array();
foreach (array_keys($manifest) as $sprite_name) {
$key = substr($sprite_name, strlen('main-header-'));
$options[$key] = $key;
}
return array(
$this->newOption('ui.header-color', 'enum', 'dark')
->setDescription(
pht(
'Sets the color of the main header.'))
->setEnumOptions($options),
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Jul 31, 11:24 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
16405705
Default Alt Text
PhabricatorUIConfigOptions.php (761 B)

Event Timeline