[haiku-commits] r41186 - haiku/trunk/src/apps/deskbar

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 6 Apr 2011 00:11:58 +0200 (CEST)

Author: axeld
Date: 2011-04-06 00:11:57 +0200 (Wed, 06 Apr 2011)
New Revision: 41186
Changeset: https://dev.haiku-os.org/changeset/41186

Modified:
   haiku/trunk/src/apps/deskbar/CalendarMenuWindow.cpp
Log:
* There is no good reason to use a tiny font size here that doesn't even render
  as well with our default font.
* Minor cleanup.


Modified: haiku/trunk/src/apps/deskbar/CalendarMenuWindow.cpp
===================================================================
--- haiku/trunk/src/apps/deskbar/CalendarMenuWindow.cpp 2011-04-05 17:37:56 UTC 
(rev 41185)
+++ haiku/trunk/src/apps/deskbar/CalendarMenuWindow.cpp 2011-04-05 22:11:57 UTC 
(rev 41186)
@@ -24,9 +24,18 @@
 using BPrivate::B_WEEK_START_MONDAY;
 
 
-//     #pragma mark -- FlatButton
+enum {
+       kInvokationMessage,
+       kMonthDownMessage,
+       kMonthUpMessage,
+       kYearDownMessage,
+       kYearUpMessage
+};
 
 
+//     #pragma mark - FlatButton
+
+
 class FlatButton : public BButton {
 public:
                                        FlatButton(const BString& label, uint32 
what)
@@ -66,18 +75,9 @@
 }
 
 
-//     #pragma mark -- CalendarMenuWindow
+//     #pragma mark - CalendarMenuWindow
 
 
-enum {
-       kInvokationMessage,
-       kMonthDownMessage,
-       kMonthUpMessage,
-       kYearDownMessage,
-       kYearUpMessage
-};
-
-
 CalendarMenuWindow::CalendarMenuWindow(BPoint where)
        :
        BWindow(BRect(0.0, 0.0, 100.0, 130.0), "", B_BORDERED_WINDOW,
@@ -95,15 +95,11 @@
        AddShortcut('W', B_COMMAND_KEY, new BMessage(B_QUIT_REQUESTED));
 
        fYearLabel = new BStringView("year", "");
-       fYearLabel->SetFontSize(10.0);
-
        fMonthLabel = new BStringView("month", "");
-       fMonthLabel->SetFontSize(10.0);
 
        fCalendarView = new BCalendarView(Bounds(), "calendar",
                startOfWeek, B_FOLLOW_ALL);
        fCalendarView->SetInvocationMessage(new BMessage(kInvokationMessage));
-       fCalendarView->SetFontSize(10.0);
 
        BGroupLayout* layout = new BGroupLayout(B_HORIZONTAL);
        SetLayout(layout);
@@ -254,7 +250,6 @@
 {
        FlatButton* button = new FlatButton(label, what);
        button->SetExplicitMinSize(BSize(height, height));
-       button->SetFontSize(be_plain_font->Size() * 0.8);
 
        return button;
 }


Other related posts:

  • » [haiku-commits] r41186 - haiku/trunk/src/apps/deskbar - axeld