Ticket #47189: patch-more-decent-font-sizes.diff

File patch-more-decent-font-sizes.diff, 1.2 KB (added by RJVB (René Bertin), 8 years ago)
  • src/widgets/NumericTextCtrl.cpp

    diff --git a/src/widgets/NumericTextCtrl.cpp b/src/widgets/NumericTextCtrl.cpp
    index 68bb83c..3d8120e 100644
    a b NumericTextCtrl::NumericTextCtrl(NumericConverter::Type type, 
    11801180{
    11811181   mAllowInvalidValue = false;
    11821182
    1183    mDigitBoxW = 10;
    1184    mDigitBoxH = 16;
     1183   mDigitBoxW = 8;
     1184   mDigitBoxH = 14;
    11851185
    11861186   mReadOnly = false;
    11871187   mMenuEnabled = true;
  • src/widgets/Ruler.cpp

    diff --git a/src/widgets/Ruler.cpp b/src/widgets/Ruler.cpp
    index 6cf2a6e..8b88ea8 100644
    a b void Ruler::Update(TimeTrack* timetrack)// Envelope *speedEnv, long minSpeed, lo 
    994994      else
    995995         desiredPixelHeight = 12;   // why 12?  10 -> 12 seems to be max/min
    996996
    997       if (desiredPixelHeight < 10)//8)
    998          desiredPixelHeight = 10;//8;
    999       if (desiredPixelHeight > 12)
    1000          desiredPixelHeight = 12;
     997      if (desiredPixelHeight < 7)//8)
     998         desiredPixelHeight = 7;//8;
     999      if (desiredPixelHeight > 9)
     1000         desiredPixelHeight = 9;
    10011001
    10021002      // Keep making the font bigger until it's too big, then subtract one.
    10031003      mDC->SetFont(wxFont(fontSize, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD));