Ticket #1697: ShutdownProcess.diff
File ShutdownProcess.diff, 1.7 KB (added by , 16 years ago) |
---|
-
src/servers/registrar/ShutdownProcess.cpp
61 61 // the shutdown window before closing it automatically. 62 62 static const bigtime_t kDisplayAbortingAppTimeout = 3000000; // 3 s 63 63 64 static const int kStripeWidth = 30; 65 static const int kIconVSpacing = 6; 66 static const int kIconSize = 32; 64 67 65 68 // message what fields (must not clobber the registrar's message namespace) 66 69 enum { … … 248 251 // create the views 249 252 250 253 // root view 251 fRootView = new(nothrow) TAlertView(BRect(0, 0, 10 0, 15), "app icons",254 fRootView = new(nothrow) TAlertView(BRect(0, 0, 10, 10), "app icons", 252 255 B_FOLLOW_NONE, 0); 253 256 if (!fRootView) 254 257 return B_NO_MEMORY; … … 351 354 fTextView->SetText("two\nlines"); 352 355 int textHeight = (int)fTextView->TextHeight(0, 1) + 1; 353 356 354 int rightPartX = fRootView->Frame().IntegerWidth() 355 + 1; 357 int rightPartX = kStripeWidth + kIconSize / 2 + 1; 356 358 int textX = rightPartX + kInnerHSpacing; 357 359 int textY = kVSpacing; 358 360 int buttonsY = textY + textHeight + kInnerVSpacing; … … 533 535 virtual void Draw(BRect updateRect) 534 536 { 535 537 BRect stripeRect = Bounds(); 536 stripeRect.right = 30;538 stripeRect.right = kStripeWidth; 537 539 SetHighColor(tint_color(ViewColor(), B_DARKEN_1_TINT)); 538 540 FillRect(stripeRect); 539 541 … … 544 546 } else 545 547 SetDrawingMode(B_OP_OVER); 546 548 547 DrawBitmapAsync(fAppInfo->largeIcon, BPoint( 18, 6));549 DrawBitmapAsync(fAppInfo->largeIcon, BPoint(kStripeWidth - kIconSize / 2, kIconVSpacing)); 548 550 } 549 551 } 550 552