@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 ButtonBar icons

Summary: Adds an icon set for icons on button bars.

Test Plan: photoshop

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Maniphest Tasks: T4394

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

+130
+4
resources/celerity/map.php
··· 151 151 'rsrc/css/sprite-apps-large.css' => '0a453d4b', 152 152 'rsrc/css/sprite-apps-xlarge.css' => 'db66c878', 153 153 'rsrc/css/sprite-apps.css' => 'c3857e4e', 154 + 'rsrc/css/sprite-buttonbar.css' => 'bbec51ec', 154 155 'rsrc/css/sprite-conpherence.css' => '084b1f13', 155 156 'rsrc/css/sprite-docs.css' => '7ea4927e', 156 157 'rsrc/css/sprite-gradient.css' => 'a10def53', ··· 305 306 'rsrc/image/sprite-apps-large.png' => 'b0aa7d64', 306 307 'rsrc/image/sprite-apps-xlarge.png' => 'a751a580', 307 308 'rsrc/image/sprite-apps.png' => '35052ada', 309 + 'rsrc/image/sprite-buttonbar-X2.png' => '36fcc19d', 310 + 'rsrc/image/sprite-buttonbar.png' => 'e488cf8d', 308 311 'rsrc/image/sprite-conpherence-X2.png' => '5ed80fb0', 309 312 'rsrc/image/sprite-conpherence.png' => '7146f76f', 310 313 'rsrc/image/sprite-docs-X2.png' => '520858fa', ··· 778 781 'sprite-apps-css' => 'c3857e4e', 779 782 'sprite-apps-large-css' => '0a453d4b', 780 783 'sprite-apps-xlarge-css' => 'db66c878', 784 + 'sprite-buttonbar-css' => 'bbec51ec', 781 785 'sprite-conpherence-css' => '084b1f13', 782 786 'sprite-docs-css' => '7ea4927e', 783 787 'sprite-gradient-css' => 'a10def53',
resources/sprite/button_bar_1x/calendar.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_1x/chevron-left.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_1x/chevron-right.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_1x/cog.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_1x/home.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_1x/pencil.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_1x/time.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_2x/calendar.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_2x/chevron-left.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_2x/chevron-right.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_2x/cog.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_2x/home.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_2x/pencil.png

This is a binary file and will not be displayed.

resources/sprite/button_bar_2x/time.png

This is a binary file and will not be displayed.

+46
resources/sprite/manifest/buttonbar.json
··· 1 + { 2 + "version" : 1, 3 + "sprites" : { 4 + "buttonbar-calendar" : { 5 + "name" : "buttonbar-calendar", 6 + "rule" : ".buttonbar-calendar", 7 + "hash" : "51aed380faf290dab35d736a92d15aba" 8 + }, 9 + "buttonbar-chevron-left" : { 10 + "name" : "buttonbar-chevron-left", 11 + "rule" : ".buttonbar-chevron-left", 12 + "hash" : "24e52c724c85eb313e19ecd222be73b5" 13 + }, 14 + "buttonbar-chevron-right" : { 15 + "name" : "buttonbar-chevron-right", 16 + "rule" : ".buttonbar-chevron-right", 17 + "hash" : "9bbe40f752ee650646021b348b2971a9" 18 + }, 19 + "buttonbar-cog" : { 20 + "name" : "buttonbar-cog", 21 + "rule" : ".buttonbar-cog", 22 + "hash" : "1c816c27b8d7b6bffe5e32ba716e5930" 23 + }, 24 + "buttonbar-home" : { 25 + "name" : "buttonbar-home", 26 + "rule" : ".buttonbar-home", 27 + "hash" : "3ab3bfd5bf3c1ba0a422c200a70578d5" 28 + }, 29 + "buttonbar-pencil" : { 30 + "name" : "buttonbar-pencil", 31 + "rule" : ".buttonbar-pencil", 32 + "hash" : "17d42be118aa21bc154b3f7da3faf7cb" 33 + }, 34 + "buttonbar-time" : { 35 + "name" : "buttonbar-time", 36 + "rule" : ".buttonbar-time", 37 + "hash" : "1355aa26ecd63e76a59352aba95e54ad" 38 + } 39 + }, 40 + "scales" : [ 41 + 1, 42 + 2 43 + ], 44 + "header" : "\/**\n * @provides sprite-buttonbar-css\n * @generated\n *\/\n\n.sprite-buttonbar {\n background-image: url(\/rsrc\/image\/sprite-buttonbar.png);\n background-repeat: no-repeat;\n}\n\n@media\nonly screen and (min-device-pixel-ratio: 1.5),\nonly screen and (-webkit-min-device-pixel-ratio: 1.5) {\n .sprite-buttonbar {\n background-image: url(\/rsrc\/image\/sprite-buttonbar-X2.png);\n background-size: {X}px {Y}px;\n }\n}\n", 45 + "type" : "standard" 46 + }
+1
scripts/celerity/generate_sprites.php
··· 36 36 'apps-large' => $generator->buildAppsLargeSheet(), 37 37 'payments' => $generator->buildPaymentsSheet(), 38 38 'tokens' => $generator->buildTokenSheet(), 39 + 'buttonbar' => $generator->buildButtonBarSheet(), 39 40 'docs' => $generator->buildDocsSheet(), 40 41 'gradient' => $generator->buildGradientSheet(), 41 42 'main-header' => $generator->buildMainHeaderSheet(),
+32
src/infrastructure/celerity/CeleritySpriteGenerator.php
··· 343 343 return $sheet; 344 344 } 345 345 346 + public function buildButtonBarSheet() { 347 + $icons = $this->getDirectoryList('button_bar_1x'); 348 + $scales = array( 349 + '1x' => 1, 350 + '2x' => 2, 351 + ); 352 + $template = id(new PhutilSprite()) 353 + ->setSourceSize(14, 14); 354 + 355 + $sprites = array(); 356 + $prefix = 'button_bar_'; 357 + foreach ($icons as $icon) { 358 + $sprite = id(clone $template) 359 + ->setName('buttonbar-'.$icon) 360 + ->setTargetCSS('.buttonbar-'.$icon); 361 + 362 + foreach ($scales as $scale_key => $scale) { 363 + $path = $this->getPath($prefix.$scale_key.'/'.$icon.'.png'); 364 + $sprite->setSourceFile($path, $scale); 365 + } 366 + $sprites[] = $sprite; 367 + } 368 + 369 + $sheet = $this->buildSheet('buttonbar', true); 370 + $sheet->setScales($scales); 371 + foreach ($sprites as $sprite) { 372 + $sheet->addSprite($sprite); 373 + } 374 + 375 + return $sheet; 376 + } 377 + 346 378 public function buildProjectsSheet() { 347 379 $icons = $this->getDirectoryList('projects_1x'); 348 380 $scales = array(
+47
webroot/rsrc/css/sprite-buttonbar.css
··· 1 + /** 2 + * @provides sprite-buttonbar-css 3 + * @generated 4 + */ 5 + 6 + .sprite-buttonbar { 7 + background-image: url(/rsrc/image/sprite-buttonbar.png); 8 + background-repeat: no-repeat; 9 + } 10 + 11 + @media 12 + only screen and (min-device-pixel-ratio: 1.5), 13 + only screen and (-webkit-min-device-pixel-ratio: 1.5) { 14 + .sprite-buttonbar { 15 + background-image: url(/rsrc/image/sprite-buttonbar-X2.png); 16 + background-size: 45px 45px; 17 + } 18 + } 19 + 20 + 21 + .buttonbar-calendar { 22 + background-position: 0px 0px; 23 + } 24 + 25 + .buttonbar-chevron-left { 26 + background-position: -15px 0px; 27 + } 28 + 29 + .buttonbar-chevron-right { 30 + background-position: -30px 0px; 31 + } 32 + 33 + .buttonbar-cog { 34 + background-position: 0px -15px; 35 + } 36 + 37 + .buttonbar-home { 38 + background-position: -15px -15px; 39 + } 40 + 41 + .buttonbar-pencil { 42 + background-position: 0px -30px; 43 + } 44 + 45 + .buttonbar-time { 46 + background-position: -15px -30px; 47 + }
webroot/rsrc/image/sprite-buttonbar-X2.png

This is a binary file and will not be displayed.

webroot/rsrc/image/sprite-buttonbar.png

This is a binary file and will not be displayed.