Ticket #11711: 0001-Tracker-StatusWindow-use-vector-icons.patch
File 0001-Tracker-StatusWindow-use-vector-icons.patch, 9.3 KB (added by , 10 years ago) |
---|
-
new file 2001
From 04b6cc780dceb470ac2b43b120724ddae15f9dc4 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier <waddlesplash@gmail.com> Date: Wed, 4 Feb 2015 13:21:43 -0500 Subject: [PATCH] Tracker/StatusWindow: use vector icons. --- data/artwork/icons/Tracker_move | Bin 0 -> 15842 bytes src/kits/tracker/StatusWindow.cpp | 17 +++++++++-------- src/kits/tracker/TrackerIcons.h | 2 ++ src/kits/tracker/TrackerIcons.rdef | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 44 insertions(+), 8 deletions(-) create mode 100644 data/artwork/icons/Tracker_move diff --git a/data/artwork/icons/Tracker_move b/data/artwork/icons/Tracker_move new file mode 100644 index 0000000000000000000000000000000000000000..e0dfc1b11a6949d102e93158eb121ed2d8e6ac7b GIT binary patch literal 15842 zcmeHNdvp}l8NW+-gJLZ&5$l4~3Jn;jP%4mJ5+pnlk`l1x6p$rsl7-D~++BGUYWhb7 zUqMQ-5c;5kN~sFAT1-zl8^H$;rL+Wu_K4I<4?VRtwsJ}ln*M%s=g!V-X5)k;2M*+( zbI+am=9_!J`F`Ky-fwquUSZCpyotjFnhU)?MVmfOh%`L!ki>&q?LC+1C~|TN^EgN5 z4W!DsT%waf&;Fbc6Y#7Zo|);pZx*6*faEXt#Y&^%Zg4q~>SPbOx{^w*sy@O6c_~#_ zJU9Vf^_;7S?U2>UBFFGnM|8CaC+9@`RQV|##Pk`3*}U(@2WV7P8s3^Qtssl<W}s6m zd^b&WvCt=i&biY>R}1|?(Aw+t-28lP9?n&bF6ZekNawoj`*nKASLTP-g@~5=7KE3G z@^By&!|feeLd4L$`dEN*0s1_BT#7LlozKT+X>Yj$p-X%*{6N!}EDDE0{-T(FfpBS! zD7lM*;V3Cf@QF^)+5&-{qD8Y{GowX~yU}SaX0#N2B<N<e6n!q}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_m&=OXh~&KU%24;W&sBZw>9g>KcsTfWJU{(R@9Vo9_KbY0^R0(p`_SX< z^xx%qb2@uJ{^EfP?M4l5PF=bU6z!LThM;^U8I-QOzIE&RRdt>ZhrSVgG5z(pK6(_r z;9uuP@4hgq=HTleRrg;tx;c5L4U`n1G}xgj<<AXI+&H=RH3O9I-!|yX+N?UyZ!Y|4 U&^w_X-iOxhI6bm%SaU%6KT-Qxy8r+H
-
src/kits/tracker/StatusWindow.cpp
literal 0 HcmV?d00001 diff --git a/src/kits/tracker/StatusWindow.cpp b/src/kits/tracker/StatusWindow.cpp index 3913758..6388b7c 100644
a b BStatusView::BStatusView(BRect bounds, thread_id thread, StatusWindowState type) 447 447 SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); 448 448 SetLowColor(ViewColor()); 449 449 SetHighColor(20, 20, 20); 450 SetDrawingMode(B_OP_ OVER);450 SetDrawingMode(B_OP_ALPHA); 451 451 452 452 const float buttonWidth = 22; 453 453 const float buttonHeight = 20; … … BStatusView::BStatusView(BRect bounds, thread_id thread, StatusWindowState type) 465 465 switch (type) { 466 466 case kCopyState: 467 467 caption = B_TRANSLATE("Preparing to copy items" B_UTF8_ELLIPSIS); 468 id = R_CopyStatus Bitmap;468 id = R_CopyStatusIcon; 469 469 break; 470 470 471 471 case kMoveState: 472 472 caption = B_TRANSLATE("Preparing to move items" B_UTF8_ELLIPSIS); 473 id = R_MoveStatus Bitmap;473 id = R_MoveStatusIcon; 474 474 break; 475 475 476 476 case kCreateLinkState: 477 477 caption = B_TRANSLATE("Preparing to create links" 478 478 B_UTF8_ELLIPSIS); 479 id = R_MoveStatus Bitmap;479 id = R_MoveStatusIcon; 480 480 break; 481 481 482 482 case kTrashState: 483 483 caption = B_TRANSLATE("Preparing to empty Trash" B_UTF8_ELLIPSIS); 484 id = R_Trash StatusBitmap;484 id = R_TrashIcon; 485 485 break; 486 486 487 487 case kVolumeState: … … BStatusView::BStatusView(BRect bounds, thread_id thread, StatusWindowState type) 492 492 case kDeleteState: 493 493 caption = B_TRANSLATE("Preparing to delete items" 494 494 B_UTF8_ELLIPSIS); 495 id = R_Trash StatusBitmap;495 id = R_TrashIcon; 496 496 break; 497 497 498 498 case kRestoreFromTrashState: … … BStatusView::BStatusView(BRect bounds, thread_id thread, StatusWindowState type) 525 525 } 526 526 527 527 if (id != 0) { 528 GetTrackerResources()->GetBitmapResource(B_MESSAGE_TYPE, id, 529 &fBitmap); 528 fBitmap = new BBitmap(BRect(0, 0, 16, 16), B_RGBA32); 529 GetTrackerResources()->GetIconResource(id, B_MINI_ICON, 530 fBitmap); 530 531 } 531 532 532 533 rect = Bounds(); -
src/kits/tracker/TrackerIcons.h
diff --git a/src/kits/tracker/TrackerIcons.h b/src/kits/tracker/TrackerIcons.h index d7f4b79..07b7e4c 100644
a b enum { 64 64 R_PersonDirIcon = 1031, 65 65 R_UtilDirIcon = 1032, 66 66 R_ConfigDirIcon = 1033, 67 R_MoveStatusIcon = 1039, 68 R_CopyStatusIcon = 1040, 67 69 R_MICN_AppIcon = 1000, 68 70 R_MICN_FileIcon = 1001, 69 71 R_MICN_TrashIcon = 1003, -
src/kits/tracker/TrackerIcons.rdef
diff --git a/src/kits/tracker/TrackerIcons.rdef b/src/kits/tracker/TrackerIcons.rdef index 092c9cc..e84cf99 100644
a b resource(R_ConfigDirIcon) #'VICN' array { 180 180 $"000207081815FF01178400040A0002070818001501178600040A0702070800" 181 181 }; 182 182 183 resource(R_MoveStatusIcon) #'VICN' array { 184 $"6E6369660B0500020006023841813C9B3BBEAB393A4F584B254D4A7AEB00FFE2" 185 $"ACFFF49806020016022C60673CAAABBEBB082E6EFB4BBA064A22B000FFFF8E02" 186 $"0006022C25F43C6917BEBB082E6EFB4BAFBF497E0B00FACE79FFBC410503A03D" 187 $"03020016023AE3B43C79DCBE5BC53CC0974B42AC47CA41009AFF500401650500" 188 $"020106023E387C38E5D3B893663DF2A44467C04989F300FBF5AAFFFFC0000200" 189 $"1202BCA6D53C2975BC8711BD19A64B51764AA2D23501FFFF012F04018C0A0A06" 190 $"4A5D505D545958595E53504F0A04232F2D494A5B463E0A04232F463E4A5BC323" 191 $"3C0A063A282E494A5A5C2C502A4C2C0A04302B30494A5951360A04302B51364A" 192 $"5954BB1E0A0A232F2D494A5B5C2C502A4C2C3A28382D302BB957BAA70A042135" 193 $"214F3D5D3D430A043F415231533340430604BE3E5E475A465B48594757485846" 194 $"563E540E0A060100023F086B0000000000003F086BBDFCD847D6070A0001061A" 195 $"3F086B0000000000003F086BBDFCD847D60715FF01178400040A0001061A3F08" 196 $"6B0000000000003F086BBDFCD847D607001501178600040A030103023F086B00" 197 $"00000000003F086BBDFCD847D6070A020104023F086B0000000000003F086BBD" 198 $"FCD847D6070A050105023F086B0000000000003F086BBDFCD847D6070A010101" 199 $"023F086B0000000000003F086BBDFCD847D6070A040102023F086B0000000000" 200 $"003F086BBDFCD847D6070A0A0109023FAE91BA5BB83A5BB83FAE91464616C79D" 201 $"770A080107023FAE91BA5BB83A5BB83FAE914680FFC7A6E60A070107123FAE91" 202 $"BA5BB83A5BB83FAE914680FFC7A6E601178222040A0901080240335FBBAD8D3C" 203 $"01213F989A430BA94726C00A090108024010F2BAA5963AA5964010F2C8DF97C9" 204 $"10E30A090108024010F2BA9A893AA59640085243EDDAC7DE06" 205 }; 206 207 resource(R_CopyStatusIcon) #'VICN' array { 208 $"6E636966040500020106023E387C38E5D3B893663DF2A44467C04989F300FBF5" 209 $"AAFFFFC00002001202BCA6D53C2975BC8711BD19A64B51764AA2D20001FFFF01" 210 $"2F04018C030A042135214F3D5D3D430A043F415231533340430604BE3E5E475A" 211 $"465B48594757485846563E54090A030102201F200A03010220370C0A01010020" 212 $"380D0A00010030380D01178222040A010100000A0001001001178222040A0201" 213 $"01000A020101023EC1AB0000000000003E99EF481CBB49E7A20A020101200512" 214 }; 215 183 216 resource(R_DownloadDirIcon) #'VICN' array { 184 217 $"6E6369660B0500020006023841813C9B3BBEAB393A4F584B254D4A7AEB00FFE2" 185 218 $"ACFFF49806020016022C60673CAAABBEBB082E6EFB4BBA064A22B000FFFF8E02"