Skip to content

Commit

Permalink
keyboard button spacing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
robotsrulz committed Jun 25, 2017
1 parent d758730 commit 7de6b8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Inc/UserInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ const PixelNumber extrudePopupHeight = (5 * buttonHeight) + (4 * extrudeButtonRo

const PixelNumber keyboardButtonWidth = DISPLAY_X/5;
const PixelNumber keyboardPopupWidth = fullPopupWidth;
#if DISPLAY_X == 800
const PixelNumber keyButtonWidth = (keyboardPopupWidth - 2 * popupSideMargin)/16;
#else
const PixelNumber keyButtonWidth = (keyboardPopupWidth - 2 * popupSideMargin)/12;
#endif
const PixelNumber keyButtonHStep = (keyboardPopupWidth - 2 * popupSideMargin - keyButtonWidth)/11;
const PixelNumber keyButtonVStep = buttonHeight + keyboardButtonRowSpacing;
const PixelNumber keyboardPopupHeight = (5 * keyButtonVStep) + (2 * keyboardTopMargin) + buttonHeight;
Expand Down

0 comments on commit 7de6b8d

Please sign in to comment.