3 final class PhabricatorUnifiedDiffsSetting
4 extends PhabricatorSelectSetting
{
6 const SETTINGKEY
= 'diff-unified';
8 const VALUE_ON_SMALL_SCREENS
= 'default';
9 const VALUE_ALWAYS_UNIFIED
= 'unified';
11 public function getSettingName() {
12 return pht('Show Unified Diffs');
15 protected function getSettingOrder() {
19 public function getSettingPanelKey() {
20 return PhabricatorDiffPreferencesSettingsPanel
::PANELKEY
;
23 protected function getControlInstructions() {
25 'Phabricator normally shows diffs in a side-by-side layout on large '.
26 'screens and automatically switches to a unified view on small '.
27 'screens (like mobile phones). If you prefer unified diffs even on '.
28 'large screens, you can select them for use on all displays.');
31 public function getSettingDefaultValue() {
32 return self
::VALUE_ON_SMALL_SCREENS
;
35 protected function getSelectOptions() {
37 self
::VALUE_ON_SMALL_SCREENS
=> pht('On Small Screens'),
38 self
::VALUE_ALWAYS_UNIFIED
=> pht('Always'),