changing the window size of this sprint script

I'm using this script: https://github.com/suppayami/rmvxa-collection/blob/master/Dash Stamina.rb to display a sprint bar.

It runs as I want, except that the window is a bit too big - ideally there would be no gold border, and the font/bar size would be a bit smaller. Here's how it currently looks (attached). Any ideas which part I should change so that it matches the size/shape of the bars above it? I've messed around with a few of the numbers in the Window_stamina section, but to no avail.
Can you provide the code for the bars in the top-left?

At least the width of the sprint bar is determined by YES::DASH::WINDOW_WIDTH located at line 88
upload_2018-7-8_22-21-0.png


To adjust window opacity, starts at 269, def initialize. You might want to set self.opacity to a variable instead of just "0" if you plan on ever changing this window's opacity throughout the game.

Code:
  def initialize
    super(24, Graphics.height - 74, YES::DASH::WINDOW_WIDTH, 50)
    self.opacity = 0 
    @time = YES::DASH::HIDE_AFTER_FRAMES
    refresh
    #---
    $game_player.stamina_backup[:x] ||= self.x
    $game_player.stamina_backup[:time] ||= @time
    self.x = $game_player.stamina_backup[:x]
    @time = $game_player.stamina_backup[:time]
  end

To adjust the font sizes, starts at line 307, in def draw_stamina_bar

Code:
#--------------------------------------------------------------------------
  # draw_stamina_bar ## the y - 2 additions are optional, but they're added
  # so that the text doesn't overlay on top of the bar
  #--------------------------------------------------------------------------
  def draw_stamina_bar(x, y, width = 156)
    contents.font.size = 16 ## add this line. Change number to whatever
    draw_gauge(x, y, width,$game_player.stamina_rate, stamina_bar_color1, stamina_bar_color2)
    change_color(system_color)
    draw_text(x, y - 2, contents.width, line_height, YES::DASH::STAMINA_TEXT)
    draw_current_and_max_values(x, y - 2, width, $game_player.stamina,
      $game_player.stamina_max, normal_color, normal_color)
  end
Thank you so much. That's much better 😀
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-window-size-of-this-sprint-script.97443/