@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a red button to PHUIButtonView

Summary: Danger Danger

Test Plan:
UIExamples

{F5084035}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D18347

+27 -4
+3 -3
resources/celerity/map.php
··· 9 9 'names' => array( 10 10 'conpherence.pkg.css' => 'e68cf1fa', 11 11 'conpherence.pkg.js' => 'b5b51108', 12 - 'core.pkg.css' => '04da74af', 12 + 'core.pkg.css' => 'cea08376', 13 13 'core.pkg.js' => '5d80e0db', 14 14 'darkconsole.pkg.js' => '1f9a31bc', 15 15 'differential.pkg.css' => '45951e9e', ··· 127 127 'rsrc/css/layout/phabricator-source-code-view.css' => 'aea41829', 128 128 'rsrc/css/phui/button/phui-button-bar.css' => 'f1ff5494', 129 129 'rsrc/css/phui/button/phui-button-simple.css' => '8e1baf68', 130 - 'rsrc/css/phui/button/phui-button.css' => '3ca51caa', 130 + 'rsrc/css/phui/button/phui-button.css' => '340f55c1', 131 131 'rsrc/css/phui/calendar/phui-calendar-day.css' => '572b1893', 132 132 'rsrc/css/phui/calendar/phui-calendar-list.css' => '576be600', 133 133 'rsrc/css/phui/calendar/phui-calendar-month.css' => '21154caf', ··· 824 824 'phui-big-info-view-css' => 'acc3492c', 825 825 'phui-box-css' => '745e881d', 826 826 'phui-button-bar-css' => 'f1ff5494', 827 - 'phui-button-css' => '3ca51caa', 827 + 'phui-button-css' => '340f55c1', 828 828 'phui-button-simple-css' => '8e1baf68', 829 829 'phui-calendar-css' => 'f1ddf11c', 830 830 'phui-calendar-day-css' => '572b1893',
+3
src/applications/celerity/postprocessor/CelerityDefaultPostprocessor.php
··· 231 231 'green.button.color' => '#139543', 232 232 'green.button.gradient' => 'linear-gradient(to bottom, #23BB5B, #139543)', 233 233 'green.button.hover' => 'linear-gradient(to bottom, #23BB5B, #178841)', 234 + 'red.button.color' => '#b33225', 235 + 'red.button.gradient' => 'linear-gradient(to bottom, #d25454, #b33225)', 236 + 'red.button.hover' => 'linear-gradient(to bottom, #d25454, #982115)', 234 237 'grey.button.color' => '#F7F7F9', 235 238 'grey.button.gradient' => 'linear-gradient(to bottom, #ffffff, #f1f0f1)', 236 239 'grey.button.hover' => 'linear-gradient(to bottom, #ffffff, #eeebec)',
+1
src/applications/uiexample/examples/PHUIButtonExample.php
··· 20 20 $colors = array( 21 21 null, 22 22 PHUIButtonView::GREEN, 23 + PHUIButtonView::RED, 23 24 PHUIButtonView::GREY, 24 25 ); 25 26 $sizes = array(null, PHUIButtonView::SMALL);
+1
src/view/phui/PHUIButtonView.php
··· 5 5 const GREEN = 'green'; 6 6 const GREY = 'grey'; 7 7 const BLUE = 'blue'; 8 + const RED = 'red'; 8 9 const DISABLED = 'disabled'; 9 10 10 11 const SMALL = 'small';
+19 -1
webroot/rsrc/css/phui/button/phui-button.css
··· 50 50 button .phui-icon-view, 51 51 a.button .phui-icon-view, 52 52 button.button-green .phui-icon-view, 53 - a.button.button-green .phui-icon-view { 53 + a.button.button-green .phui-icon-view, 54 + button.button-red .phui-icon-view, 55 + a.button.button-red .phui-icon-view { 54 56 color: white; 55 57 } 56 58 ··· 74 76 background-color: {$green.button.color}; 75 77 border-color: {$green.button.color}; 76 78 background-image: {$green.button.gradient}; 79 + } 80 + 81 + button.button-red, 82 + a.button-red.button, 83 + a.button-red.button:visited { 84 + background-color: {$red.button.color}; 85 + border-color: {$red.button.color}; 86 + background-image: {$red.button.gradient}; 77 87 } 78 88 79 89 button.button-grey, ··· 120 130 border-color: #127336; 121 131 background-color: #0DAD48; 122 132 background-image: {$green.button.hover}; 133 + transition: 0.1s; 134 + } 135 + 136 + a.button.button-red:hover, 137 + button.button-red:hover { 138 + border-color: #79150b; 139 + background-color: #0DAD48; 140 + background-image: {$red.button.hover}; 123 141 transition: 0.1s; 124 142 } 125 143