content: /*
   * This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client/).
   * Copyright (c) 2021 Meteor Development.
   */
  
  package anticope.rejects.gui.themes.rounded.widgets;
  
  import anticope.rejects.gui.themes.rounded.MeteorWidget;
  import meteordevelopment.meteorclient.gui.renderer.GuiRenderer;
  import anticope.rejects.gui.themes.rounded.MeteorRoundedGuiTheme;
  import meteordevelopment.meteorclient.gui.widgets.WVerticalSeparator;
  import meteordevelopment.meteorclient.utils.render.color.Color;
  
  public class WMeteorVerticalSeparator extends WVerticalSeparator implements MeteorWidget {
      @Override
      protected void onRender(GuiRenderer renderer, double mouseX, double mouseY, double delta) {
          MeteorRoundedGuiTheme theme = theme();
          Color colorEdges = theme.separatorEdges.get();
          Color colorCenter = theme.separatorCenter.get();
  
          double s = theme.scale(1);
          double offsetX = Math.round(width / 2.0);
  
          renderer.quad(x + offsetX, y, s, height / 2, colorEdges, colorEdges, colorCenter, colorCenter);
          renderer.quad(x + offsetX, y + height / 2, s, height / 2, colorCenter, colorCenter, colorEdges, colorEdges);
      }
  }
  