buttonSize method

double buttonSize()

Calculates the actual size of a button, taking into account the relative size and the maximum size.

Implementation

double buttonSize() {
  return min(ip(buttonsSizeRelativeToScreen), maxButtonsSize);
}