Small GUI fixes in Notification prefs

* Open the window a bit bigger so the scroll bar in the "Notifications"
  view isn't activated.
* Make the window horizontally resizable.
* Sentence casing
This commit is contained in:
Humdinger 2016-10-30 10:24:40 +01:00
parent 4bc43f4368
commit a034dfb647
2 changed files with 4 additions and 3 deletions

View File

@ -82,8 +82,8 @@ NotificationsView::NotificationsView(SettingsHost* host)
(kCLVTitlePadding * 2), rect.Width(), B_TRUNCATE_END, B_ALIGN_LEFT);
fNotifications->AddColumn(fTitleCol, kTitleIndex);
fDateCol = new BDateColumn(B_TRANSLATE("Last Received"), 100,
be_plain_font->StringWidth(B_TRANSLATE("Last Received")) +
fDateCol = new BDateColumn(B_TRANSLATE("Last received"), 100,
be_plain_font->StringWidth(B_TRANSLATE("Last received")) +
(kCLVTitlePadding * 2), rect.Width(), B_ALIGN_LEFT);
fNotifications->AddColumn(fDateCol, kDateIndex);

View File

@ -33,13 +33,14 @@ const int32 kApply = '_APY';
PrefletWin::PrefletWin()
:
BWindow(BRect(0, 0, 1, 1), B_TRANSLATE_SYSTEM_NAME("Notifications"),
BWindow(BRect(0, 0, 500, 400), B_TRANSLATE_SYSTEM_NAME("Notifications"),
B_TITLED_WINDOW, B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS
| B_AUTO_UPDATE_SIZE_LIMITS)
{
// Preflet container view
fMainView = new PrefletView(this);
fMainView->SetBorder(B_NO_BORDER);
fMainView->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET));
// Apply and revert buttons
fRevert = new BButton("revert", B_TRANSLATE("Revert"),