#############################################################
# The GUI section. This part is currently under development #
# Expect frequent changes!                                  #
#############################################################

gui
  {
  dpi_scaling = False
    .type = bool
  font_size_steps = 950 750 540 450 420 0
    .type = strings
  font_size_rel_size = '+3' '+2' '+1' '0' '-1' '-2'
    .type = strings
  font_top_system_adjust = 0
    .type = int
  console_offset = 6
    .type = int
  battery_font_adjust = -1
    .type = int
  ppi_font_adjust_amount = -2
    .type = int
  internal_scale = 2
    .type = int
  timing = False
    .type = bool
  chinese_font_name = YaHei
    .type = str
  base_colour = #aaaaaa
    .type = colour
  logo_colour = #777777
    .type = colour
  dev_colour = #ea4335
    .type = colour
  alpha_colour = #fbbc05 
    .type = colour
  beta_colour = #1fc432
    .type = colour
  default_font_name = Signika-Regular.ttf
    .type = str
  default_font_name_bold = Signika-Bold.ttf
    .type = str
  default_font_name_italic = Signika-Italic.ttf
    .type = str
  image_font_name = DefaultFont
    .type = str
  purple = #a245a2
    .type = colour
  ed_bg = #444444
    .type = colour
  ed_fg = #FDDA0D
    .type = colour
  red = #bd2010
    .type = colour
  dark_red = #bd2010
    .type = colour
  green = #00b400
    .type = colour
  dark_green = #307125
    .type = colour
  green_text = #307125
    .type = colour
  blue = #0080ff
    .type = colour
  light_blue = #0080ff
    .type = colour
  grey = #555555
    .type = colour
  action_colour = #0080ff
    .type = colour
  light_grey = #dedede
    .type = colour
  watermark = #ababab
    .type = colour
  orange = #ff8f00
    .type = colour
  dark_yellow = #f5b041
    .type = colour
  image_highlight = None
    .type = str
  notification_base_colour = #307125
    .type = colour
  notification_highlight_colour = #ff8f00
    .type = colour
  GuiImages {
    action = None
    .type=str
  }
  
  notification{
    normal_bg = 'gui.html.table_bg_colour'
      .type = str
    normal_fg = 'gui.grey'
      .type = str
    centered = False
      .type = bool
    border = 0
      .type = int
    invert = False
      .type = bool
  }

  xgrid {
    positive_surface_material = '247;3623943936;4278255360;3632300160;2130722816;4278206464;36;36'
      .type = str
    negative_surface_material = '247;3623878911;4278190335;3632300160;2130706496;4278190144;36;366'
      .type = str
  }
  css{
    h1{
      font_size = 24
        .type = int
      font_name = Verdana
        .type = str
      color = #ffffff
        .type = colour
      line_height = 26
        .type = int
    }

    h2{
      font_size = 12
        .type = int
      font_name = "Signika-Regular.ttf"
        .type = str
      color = #ffffff
        .type = colour
      line_height = 14
        .type = int
    }
    big{
      font_size = 30
        .type = int
      font_name = Arial Bold
        .type = str
      color = #ffffff
        .type = colour
      line_height = 32
        .type = int
    }
  }

  skin {
    base_width = 500
      .type = int
    materials_have_been_set = False
      .type = bool
    name = default
      .type = str
    extension = None
      .type = str
    logo_name= None
      .type = path
    logo_is_colourised = True
      .type = bool
    size_factor = 1.0
      .type = float
    clearcolor = 8404992
      .type = int
    icon_size = 30
      .type = int
    icon_border_colour = #bcbcbc
      .type = colour
    button.highlight.lightness = 120
      .type = int
    button.border.lightness = 120
      .type = int
    R1.border.lightness = 220
      .type = int
    R1.highlight.lightness = 20
      .type = int
    link_type = 'gui-link-button'
      .type = str
    default_link = 'gui/snippets/gui-link-button'
      .type = str
    link_button{
      flat = True
        .type = bool
      bgcolor = #dddddd
        .type = colour
      fgcolor = #0064b4
        .type = colour
    }

    diagnostics {
      colour_grade1 = #307125
        .type = colour
      colour_grade2 = #b4be10
        .type = colour
      colour_grade3 = #d6a113
        .type = colour
      colour_grade4 = #c21a08
        .type = colour
      colour_grade5 = #660066
        .type = colour
      }
    }

  html {
    base_colour = #aaaaaa
      .type = colour
    bg_colour = #ffffff
      .type = colour
      .caption = "Background colour"
    font_colour = #442244
      .type = colour
    font_name = "Bahnschrift"
      .type = str
    font_size = 2
      .type = int
    font_size_controls = 2
      .type = int
    font_size_large = 7
      .type = int
    font_size_extra_large = 9
      .type = int
    font_size_medium = 4
      .type = int
    formula_colour = #442244
      .type = colour
    formula_size = 5
      .type = int
    highlight_colour = #ff8800
      .type = colour

    input_bg_colour = #ffffff
      .type = colour

    input_height = 20
      .type = int
    checkbox_height = 18
      .type = int
    checkbox_width = 14
      .type = int
    checkbox_width_2 = 18
      .type = int
    combo_width_2 = 50
      .type = int
      .help = Width of a combobox that is to take 2 digits and a decimal point.
    combo_height = 20
      .type = int
    spin_height = 18
      .type = int
    link_colour = #585886
      .type = colour
    table_bg_colour = #eaeaea
      .type = colour
    table_group_bg_colour = #e6e6e6
    .type = colour
    table_group_header_colour = #dedede
      .type = colour
    table_row_bg_colour = #dadada
      .type = colour
    table_firstcol_colour = #dedede
      .type = colour
    table_firstcol_width = 16
      .type = int
    MainToolbarTabButtonActive = None
      .type = str
    code {
      bg_colour = #e9e9e9
        .type = colour
      fg_colour = #6f6f8b
        .type = colour
      html_tag = code
        .type = str
      }
    help{
      bg_colour = #ffffff
        .type = colour
    }
  }

  timage{
    base_colour = #777777
      .type = colour
    grad_colour = #454570
      .type = colour
    font_colour = #a4a4c7
      .type = colour
    grad_step = 0.2
      .type = float
    bg_colour_L = 0.8
      .type = float
    grad_colour_L = 0.7
      .type = float
    font_colour_L = 1.4
      .type = float
    font_name = DefaultFont
      .type = str
    font_size = 12
      .type = int
    adval = 13
      .type = int
    info_size_scale = 4
      .type = int

    snumtitle{
      scale = 2
        .type = int
      base_colour = None
        .type = colour
      grad_colour = #205c90
        .type = colour
      height = 42
        .type = int
      font_colour = '(237, 237, 237)'
        .type = colour
      font_dark = '(40, 40, 40)'
        .type = colour
      font_name = DefaultFont Bold
        .type = str
      font_colour_L = 1.4
        .type = float
      font_size = 23
        .type = int
      top = 1
        .type = int
      left = 5
        .type = int
      bg_colour_L = 1.4
        .type = float
      grad_step = 0.1
        .type = float
      grad_colour_L = 0.75
        .type = float
      filefullinfo_size = 12
        .type = int
      filefullinfo_colour = '(221, 221, 221)'
        .type = colour
      filefullinfo_colour_dark = '(0, 0, 0)'
        .type = colour
      filefullinfo_colour_L = 1.3
        .type = float
      sginfo_scale = 1.0
        .type = float
      sg_L = 1.8
        .type = float
      corner_rad = 5
        .type = int
      rounded = 1100
        .type = str
      shadow = False
        .type = bool
      border = 0
        .type = int
      border_colour = #dedede
        .type = colour
      arrows = None
        .type = str
      buttonmark = None
        .type = str
    }


    tab{
      scale = 2
        .type = int
      base_colour = #aaaaaa
        .type = colour
      grad_colour = #767676
        .type = colour
      font_colour = #ededed
        .type = colour
      height = 30
        .type = int
      corner_rad = 3
        .type = int
      grad_step = 0.3
        .type = float

      bg_colour_L = 0.7
        .type = float
      grad_colour_L = 0.7
        .type = float

      font_colour_L = 1.2
        .type = float
      font_name = DefaultFont Bold
        .type = str
      font_size = 22
        .type = int
      top = 3
        .type = int
      left = 6
        .type = int
      rounded = 1100
        .type = str
      arrows = "bar:top:4"
        .type = str

      off_L = 0.9
        .type = float
      hover_L = 0.8
        .type = float
      on_L = 1.2
        .type = float
      border = 1
        .type = int
      border_colour = #ababab
        .type = colour
      shadow = False
        .type = bool
    }

    cbtn{
      scale = 1
        .type = int
      base_colour = #444444
        .type = colour
      grad_colour = #999999
        .type = colour
      grad_step = 0.2
        .type = float
      font_colour = #ffffff
        .type = colour
      height = 24
        .type = int
      corner_rad = 2
        .type = int
      bg_colour_L = 1.8
        .type = float
      grad_colour_L = 1.8
        .type = float
      font_colour_L = 0.8
        .type = float
      font_name = DefaultFont Bold
        .type = str
      font_size = 17
        .type = int
      top = 3
        .type = int
      left = 4
        .type = int
      rounded = 0101
        .type = str
      arrows = "bar:right:26,arrow_right:onup:offdown:hoverdown:hoveronup"
        .type = str
      buttonmark = None
        .type = str

      off_L = 1.6
        .type = float
      on_L = 1.2
        .type = float
      hover_L = 1.0
        .type = float

      vline = 27
        .type = int
      dot_size = 4
        .type = int
      dot_pad = 1
        .type = int
      dot_left = 1
        .type = int
      dot_colour_off = #dedede
        .type = colour
      dot_colour_on = #444444
        .type = colour
      shadow = False
        .type = bool
      border = 1
        .type = int
      border_colour = #ababab
        .type = colour
    }

    button{
      scale = 1
        .type = int
      base_colour = #e1e1e1
        .type = colour
      grad_colour = #dedede
        .type = colour
      grad_step = 0.3
        .type = float
      height = 21
        .type = int
      corner_rad = 3
        .type = int
      rounded = 0000
        .type = str
      font_name = DefaultFont
        .type = str
      font_size = 12
        .type = int
      halign = left
        .type = str
      top = 3
        .type = int
      left = 4
        .type = int
      bg_colour_L = 1.8
        .type = float
      grad_colour_L = 1.9
        .type = float
      font_colour_L = 1.7
        .type = float
      font_colour = #565656
        .type = colour
      arrows = None
        .type = str
      buttonmark = 2:#999999:6
        .type = str
      off_L = 0.9
        .type = float
      hover_L = 0.8
        .type = float
      on_L = 1.2
        .type = float
      border = 1
        .type = int
      border_colour = #888888
        .type = colour
      shadow = False
        .type = bool
    }

    small_button{
      rounded = 0000
        .type = str
      scale = 1
        .type = int
      width = 65
        .type = int
      height = 20
        .type = int
      buttonmark = 2:#999999:6
        .type = str
    }

    tinybutton{
      scale = 2
        .type = int
      base_colour = #e1e1e1
        .type = colour
      grad_colour = #dedede
        .type = colour
      grad_step = 0.1
        .type = float
      height = 18
        .type = int
      width = 20
        .type = int
      corner_rad = 0
        .type = int
      rounded = 0000
        .type = str
      font_size = 14
        .type = int
      font_name = DefaultFont
        .type = str
      halign = middle
        .type = str
      top = 1
        .type = int
      left = 0
        .type = int
      bg_colour_L = 1.8
        .type = float
      grad_colour_L = 1.9
        .type = float
      font_colour_L = 0.7
        .type = float
      font_colour = #ffffff
        .type = colour
      arrows = None
        .type = str
      border = 1
        .type = int
      border_colour = #ababab
        .type = colour
      shadow = False
        .type = bool
      buttonmark = None
        .type = str
    }

    hos{
      height = 22
        .type = int
      font_size = 16
        .type = int
    }

    h1{
      scale = 1
        .type = int
      base_colour = #aaaaaa
        .type = colour
      grad_colour = #dddddd
        .type = colour
      grad_step = 0.2
        .type = float
      height = 23
        .type = int
      corner_rad = 3
        .type = int
      rounded = 1111
        .type = str
      font_name = DefaultFont
        .type = str
      font_size = 18
        .type = int
      top = 1
        .type = int
      left = 8
        .type = int
      bg_colour_L = 1.3
        .type = float
      grad_colour_L = 1.3
        .type = float
      font_colour_L = 0.2
        .type = float
      font_colour = #555555
        .type = colour
      arrows = "bar:left:5"
        .type = str
      off_L = 1.2
        .type = float
      on_L = 1.2
        .type = float
      hover_L = 0.8
        .type = float
      shadow = True
        .type = bool
      border = 1
        .type = int
      border_colour = #dddddd
        .type = colour
    }

    h3{
      scale = 2
        .type = int
      height = 19
        .type = int
      info_circle = 36
        .type = int
      width_adjust = 7
        .type = int
      base_colour = #aaaaaa
        .type = colour
      grad_colour = #cbcbcb
        .type = colour
      font_colour = #555555
        .type = colour
      font_name = DefaultFont
        .type = str
      bg_colour_L = 1.2
        .type = float
      grad_colour_L = 1.2
        .type = float
      font_colour_L = 0.5
        .type = float

      grad_step = 0.1
        .type = float
      corner_rad = 3
        .type = int
      rounded = 1111
        .type = str
      font_size = 14
        .type = int
      top = 1
        .type = int
      left = 6
        .type = int
      arrows = "bar:left:4"
        .type = str
      off_L = 1.0
        .type = float
      on_L = 1.0
        .type = float
      hover_L = 0.8
        .type = float
      shadow = False
        .type = bool
      border = 1
        .type = int
      border_colour = #dddddd
        .type = colour
    }
  }
  lines_of_cmd_text = 10
    .type = str
  button_colouring = #ababab
    .type = colour
  button_writing = #00ff00
    .type = colour
  button_font_name = Default
    .type = str
  tab_colour = #ff0000
    .type = colour
  tab_font_colour = #ff0000
    .type = colour
  infobox_text = '2053;2143326838;2143979345'
    .type = str
  infobox_plane = '2053;2136422952;2137144606'
    .type = str
  console_font = #olex2.fnt:frb_12
    .type = str
  labels_font = #olex2.fnt:frb_20
    .type = str
  htmlpanelwidth = 500
    .type = int
  htmlpanelwidth_margin_adjust = 21
    .type = int
  htmlpanel_side = right
    .type = str
  grad_top_left = #1f3257
    .type = colour
  grad_top_right = #1f3257
    .type = colour
  grad_bottom_left = #ffffff
    .type = colour
  grad_bottom_right = #ffffff
    .type = colour
  use_fader=False
    .type = bool
  shelx_restraints = None
    .type = strings
  shelx_constraints = None
    .type = strings
  archive_last = None
    .type = strings

  help{
    src = "BaseDir()\etc\help"
      .type = str
    width_fraction = 0.333
      .type = float
    font_size_base = 3
      .type = int
    pop_template = 'md_box'
      .type = str
    bg_colour = '#222222'
      .type = colour
    font_colour = '#ffffff'
      .type = colour
    h1_colour = '#ffffff'
      .type = colour
    h2_colour = '#ffffff'
      .type = colour
    h3_colour = '#ffffff'
      .type = colour
    highlight_colour = '#ff8800'
      .type = colour
    git_url = "https://github.com/Olex2/help/tree/master/gui/"
      .type = str
    language = "EN"
      .type = str
    code_buttons_flat = True
      .type = bool
  }

  help_box{
    width = 450
      .type = int
      .help = Width of the help popup boxes
    height_factor = 60
      .type = int
      .help = A factor that helps estimating the height of the help box by the total number of characters in the help text
    height_constant = 60
      .type = int
      .help = Number of pixels to add per row to the height of a help box
    height_max = 500
      .type = int
      .help = Maximum height of the help popup boxes

    }

  buttons{
    small_buttons{
      width = 60
        .type = int
      rounded = 0000
        .type = str
    }
  }
  report{
    width = 800
      .type = int
    title{
      height = 50
        .type = int
      colour = #326496
        .type = colour
      font_name = Georgia Bold
        .type = str
      font_size = 35
        .type = int
      font_colour = #ffffff
        .type = colour
    }
  }

  graph{
    light_grey = #888888
      .type = colour
    grey = #444444
      .type = colour
    dark_grey = #222222
      .type = colour
    filename_colour = #bbbbbb
      .type = colour
    title_colour = #777777
      .type = colour
    fill_colour = #ffffff
      .type = colour
    outline_colour = #666666
      .type = colour
    fitline_colour = #b40000
      .type = colour
    page_colour = #ffffff
      .type = colour
    graph_bg_colour = #ffffff
      .type = colour
    axislabel_colour = #888888
      .type = colour
  }

  g3{
    task = solve
      .type = str
    top{
      start_new_structure{
        label = start_new_structure
          .type = str
      }
      work_on_existing_structure{
        label = work_on_existing_structure
          .type = str
      }
      analyse_finished_structure{
        label = analyse_finished_structure
          .type = str
      }
    }

    start_new_structure{
      analyse_diffraction_data{
        label = analyse_diffraction_data
          .type = str
      }
      determine_space_group{
        label = determine_space_group
          .type = str
      }
      solve_structure{
        label = solve_structure
          .type = str
      }
    }
  }
}

