From a034dfb647f1ba6ff4e5b04c494ed5c4ec9b9f56 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sun, 30 Oct 2016 10:24:40 +0100 Subject: [PATCH] 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 --- src/preferences/notifications/NotificationsView.cpp | 4 ++-- src/preferences/notifications/PrefletWin.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/preferences/notifications/NotificationsView.cpp b/src/preferences/notifications/NotificationsView.cpp index ccca0543ae..b5fecbd024 100644 --- a/src/preferences/notifications/NotificationsView.cpp +++ b/src/preferences/notifications/NotificationsView.cpp @@ -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); diff --git a/src/preferences/notifications/PrefletWin.cpp b/src/preferences/notifications/PrefletWin.cpp index 465604b798..b269bb89ab 100644 --- a/src/preferences/notifications/PrefletWin.cpp +++ b/src/preferences/notifications/PrefletWin.cpp @@ -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"),