@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 more simple button colors

Summary: Saturate the color a little more, add yellow

Test Plan: uiexamples

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

authored by

Chad Little and committed by
chad
0a3b3911 5335f29f

+49 -19
+6 -6
resources/celerity/map.php
··· 9 9 'names' => array( 10 10 'conpherence.pkg.css' => 'ff161f2d', 11 11 'conpherence.pkg.js' => 'b5b51108', 12 - 'core.pkg.css' => 'e8d63571', 12 + 'core.pkg.css' => 'ea94e844', 13 13 'core.pkg.js' => '1475bd91', 14 14 'darkconsole.pkg.js' => '1f9a31bc', 15 15 'differential.pkg.css' => 'a2755617', ··· 125 125 'rsrc/css/layout/phabricator-filetree-view.css' => 'fccf9f82', 126 126 'rsrc/css/layout/phabricator-source-code-view.css' => '4383192f', 127 127 'rsrc/css/phui/button/phui-button-bar.css' => '39fe680c', 128 - 'rsrc/css/phui/button/phui-button-simple.css' => 'd410596b', 128 + 'rsrc/css/phui/button/phui-button-simple.css' => '081cfeea', 129 129 'rsrc/css/phui/button/phui-button.css' => '9f13ddcc', 130 130 'rsrc/css/phui/calendar/phui-calendar-day.css' => '572b1893', 131 131 'rsrc/css/phui/calendar/phui-calendar-list.css' => '576be600', ··· 821 821 'phui-box-css' => '269cbc99', 822 822 'phui-button-bar-css' => '39fe680c', 823 823 'phui-button-css' => '9f13ddcc', 824 - 'phui-button-simple-css' => 'd410596b', 824 + 'phui-button-simple-css' => '081cfeea', 825 825 'phui-calendar-css' => '477acfaa', 826 826 'phui-calendar-day-css' => '572b1893', 827 827 'phui-calendar-list-css' => '576be600', ··· 935 935 'javelin-dom', 936 936 'javelin-stratcom', 937 937 'javelin-workflow', 938 + ), 939 + '081cfeea' => array( 940 + 'phui-button-css', 938 941 ), 939 942 '0825c27a' => array( 940 943 'javelin-behavior', ··· 1978 1981 ), 1979 1982 'd254d646' => array( 1980 1983 'javelin-util', 1981 - ), 1982 - 'd410596b' => array( 1983 - 'phui-button-css', 1984 1984 ), 1985 1985 'd4505101' => array( 1986 1986 'javelin-stratcom',
+11 -7
src/applications/uiexample/examples/PHUIButtonExample.php
··· 175 175 $designs = array( 176 176 PHUIButtonView::BUTTONTYPE_SIMPLE, 177 177 ); 178 + $colors = array('', 'red', 'green', 'yellow'); 178 179 $column = array(); 179 180 foreach ($designs as $design) { 180 - foreach ($icons as $text => $icon) { 181 - $column[] = id(new PHUIButtonView()) 182 - ->setTag('a') 183 - ->setButtonType($design) 184 - ->setIcon($icon) 185 - ->setText($text) 186 - ->addClass(PHUI::MARGIN_SMALL_RIGHT); 181 + foreach ($colors as $color) { 182 + foreach ($icons as $text => $icon) { 183 + $column[] = id(new PHUIButtonView()) 184 + ->setTag('a') 185 + ->setButtonType($design) 186 + ->setColor($color) 187 + ->setIcon($icon) 188 + ->setText($text) 189 + ->addClass(PHUI::MARGIN_SMALL_RIGHT); 190 + } 187 191 } 188 192 } 189 193
+32 -6
webroot/rsrc/css/phui/button/phui-button-simple.css
··· 41 41 input[type="submit"].simple.red, 42 42 a.simple.red, 43 43 a.simple.red:visited { 44 - background: #fff; 44 + background: {$sh-redbackground}; 45 45 color: {$redtext}; 46 46 border: 1px solid {$sh-redborder}; 47 47 } ··· 55 55 56 56 a.button.simple.red:hover, 57 57 button.simple.red:hover { 58 - border-color: {$red}; 58 + border-color: {$sh-redtext}; 59 59 background-image: none; 60 - background-color: #fff; 60 + background-color: {$sh-redbackground}; 61 61 transition: 0s; 62 62 } 63 63 ··· 67 67 input[type="submit"].simple.green, 68 68 a.simple.green, 69 69 a.simple.green:visited { 70 - background: #fff; 70 + background: {$sh-greenbackground}; 71 71 color: {$greentext}; 72 72 border: 1px solid {$sh-greenborder}; 73 73 } ··· 81 81 82 82 a.button.simple.green:hover, 83 83 button.simple.green:hover { 84 - border-color: {$green}; 84 + border-color: {$sh-greentext}; 85 85 background-image: none; 86 - background-color: #fff; 86 + background-color: {$sh-greenbackground}; 87 + transition: 0s; 88 + } 89 + 90 + /* - Yellow -----------------------------------------------------------------*/ 91 + 92 + button.simple.yellow, 93 + input[type="submit"].simple.yellow, 94 + a.simple.yellow, 95 + a.simple.yellow:visited { 96 + background-color: {$sh-yellowbackground}; 97 + color: {$sh-yellowtext}; 98 + border: 1px solid {$sh-yellowborder}; 99 + } 100 + 101 + button.simple.yellow .phui-icon-view, 102 + input[type="submit"].simple.yellow .phui-icon-view, 103 + a.simple.yellow .phui-icon-view, 104 + a.simple.yellow:visited .phui-icon-view { 105 + color: {$sh-yellowicon}; 106 + } 107 + 108 + a.button.simple.yellow:hover, 109 + button.simple.yellow:hover { 110 + border-color: {$sh-yellowtext}; 111 + background-image: none; 112 + background-color: {$sh-yellowbackground}; 87 113 transition: 0s; 88 114 } 89 115