Page MenuHomePhorge

PhabricatorUIConfigOptions.php
No OneTemporary

Size
761 B
Referenced Files
None
Subscribers
None

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
Tue, Sep 16, 3:18 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
447308
Default Alt Text
PhabricatorUIConfigOptions.php (761 B)

Event Timeline