docs: private void resize() {
          width  = getWidth() - getInsets().getLeft() - getInsets().getRight();
          height = getHeight() - getInsets().getTop() - getInsets().getBottom();
          size   = parentWidth < parentHeight ? parentWidth : parentHeight;
  
          if (ASPECT_RATIO * width > height) {
              width = 1 / (ASPECT_RATIO / height);
          } else if (1 / (ASPECT_RATIO / height) > width) {
              height = ASPECT_RATIO * width;
          }
  
          if (width > 0 && height > 0) {
              stepSize = (parentWidth - size * 0.15) / maxValue;
  
              pane.setMaxSize(parentWidth, height * 0.12);
              pane.setPrefSize(parentWidth, height * 0.12);
  
              nameText.setFont(Fonts.latoRegular(size * 0.06));
              nameText.setX(size * 0.05);
              nameText.setY(0);
  
              valueText.setFont(Fonts.latoRegular(size * 0.06));
              valueText.setX((parentWidth - size * 0.05) - valueText.getLayoutBounds().getWidth());
              valueText.setY(0);
  
              barBackground.setX(size * 0.075);
              barBackground.setY(size * 0.10333333);
              barBackground.setWidth(parentWidth - size * 0.15);
              barBackground.setHeight(size * 0.01);
  
              bar.setX(size * 0.075);
              bar.setY(size * 0.09666667);
              bar.setWidth(clamp(0, (parentWidth - size * 0.15), getValue() * stepSize));
              bar.setHeight(size * 0.02333333);
  
              redraw();
          }
      }