From 569a7bfc3ce6b037a6cf681c552bfe84cb475ae9 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 5 Jan 2015 13:06:21 +0100 Subject: [PATCH] Notification: align title with text. --- src/servers/notification/NotificationView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/servers/notification/NotificationView.cpp b/src/servers/notification/NotificationView.cpp index d607c3e682..cd0d98693e 100644 --- a/src/servers/notification/NotificationView.cpp +++ b/src/servers/notification/NotificationView.cpp @@ -76,7 +76,7 @@ NotificationView::NotificationView(NotificationWindow* win, SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); SetLowColor(ui_color(B_PANEL_BACKGROUND_COLOR)); - + switch (fNotification->Type()) { case B_IMPORTANT_NOTIFICATION: fStripeColor = ui_color(B_CONTROL_HIGHLIGHT_COLOR); @@ -90,7 +90,7 @@ NotificationView::NotificationView(NotificationWindow* win, progress->SetBarHeight(12.0f); progress->SetMaxValue(1.0f); progress->Update(fNotification->Progress()); - + BString label = ""; label << (int)(fNotification->Progress() * 100) << " %"; progress->SetTrailingText(label); @@ -465,7 +465,7 @@ NotificationView::SetText(float newMaxWidth) titleLine->text = fNotification->Title(); titleLine->font = *be_bold_font; - titleLine->location = BPoint(iconRight, y); + titleLine->location = BPoint(iconRight + kEdgePadding, y); fLines.push_front(titleLine); y += fontHeight;