<!-- Aseprite -->
<!-- Copyright (C) 2001-2017 by David Capello -->
<gui>
  <window id="options" text="@.title">
  <vbox>
    <hbox expansive="true">
      <view maxsize="true">
        <listbox id="section_listbox">
          <listitem text="@.section_general" value="section_general" />
          <listitem text="@.section_editor" value="section_editor" />
          <listitem text="@.section_selection" value="section_selection" />
          <listitem text="@.section_timeline" value="section_timeline" />
          <listitem text="@.section_cursors" value="section_cursors" />
          <listitem text="@.section_background" value="section_bg" />
          <listitem text="@.section_grid" value="section_grid" />
          <listitem text="@.section_guides_and_slices" value="section_guides_and_slices" />
          <listitem text="@.section_undo" value="section_undo" />
          <listitem text="@.section_theme" value="section_theme" />
          <listitem text="@.section_extensions" value="section_extensions" />
          <listitem text="@.section_experimental" value="section_experimental" />
        </listbox>
      </view>

      <panel id="panel" expansive="true">
        <vbox id="section_general">
          <separator text="@.section_general" horizontal="true" />
          <hbox>
            <grid columns="2">
              <label text="@.screen_scaling" />
              <combobox id="screen_scale">
                <listitem text="100%" value="1" />
                <listitem text="200%" value="2" />
                <listitem text="300%" value="3" />
                <listitem text="400%" value="4" />
              </combobox>
              <label text="@.ui_scaling" />
              <combobox id="ui_scale">
                <listitem text="100%" value="1" />
                <listitem text="200%" value="2" />
                <listitem text="300%" value="3" />
                <listitem text="400%" value="4" />
              </combobox>
            </grid>
          </hbox>
          <check id="gpu_acceleration"
                 text="@.gpu_acceleration"
                 tooltip="@.gpu_acceleration_tooltip" />
          <check id="show_menu_bar"
		 text="@.show_menu_bar" />
          <check id="show_home"
		 text="@.show_home" />
          <check id="expand_menubar_on_mouseover"
                 text="@.expand_menu_bar_items_on_mouseover"
                 tooltip="@.expand_menu_bar_items_on_mouseover" />
          <hbox>
            <check id="enable_data_recovery"
                   text="@.auto_save_recovery_data"
                   tooltip="@.auto_save_recovery_data_tooltip" />
            <combobox id="data_recovery_period">
              <listitem text="@.10_seconds" value="0.33" />
              <listitem text="@.30_seconds" value="0.5" />
              <listitem text="@.1_minute" value="1" />
              <listitem text="@.2_minutes" value="2" />
              <listitem text="@.5_minutes" value="5" />
              <listitem text="@.10_minutes" value="10" />
              <listitem text="@.15_minutes" value="15" />
              <listitem text="@.30_minutes" value="30" />
            </combobox>
          </hbox>
          <check id="show_full_path"
		 text="@.show_full_path"
		 tooltip="@.show_full_path_tooltip" />
          <separator horizontal="true" />
          <link id="locate_file" text="@.locate_file" />
          <link id="locate_crash_folder" text="@.locate_crash_folder" />
        </vbox>

        <!-- Editor -->
        <vbox id="section_editor">
          <separator text="@.section_editor" horizontal="true" />
          <check text="@.wheel_zoom" id="wheel_zoom" />
          <check text="@.slide_zoom" id="slide_zoom" />
          <check text="@.zoom_from_center_with_wheel" id="zoom_from_center_with_wheel" />
          <check text="@.zoom_from_center_with_keys" id="zoom_from_center_with_keys" />
          <check text="@.show_scrollbars" id="show_scrollbars" tooltip="@.show_scrollbars_tooltip" />
          <check text="@.auto_scroll" id="auto_scroll" />
          <check text="@.straight_line_preview" id="straight_line_preview" tooltip="@.straight_line_preview_tooltip" />
          <hbox>
            <label text="@.right_click" />
            <combobox id="right_click_behavior" expansive="true" />
          </hbox>
        </vbox>

        <!-- Selection -->
        <vbox id="section_selection">
          <separator text="@.editor_selection" horizontal="true" />
          <check text="@.auto_opaque" id="auto_opaque" tooltip="@.auto_opaque_tooltip" />
          <check text="@.keep_selection_after_clear" id="keep_selection_after_clear" tooltip="@.keep_selection_after_clear_tooltip" />
          <check text="@.move_edges" id="move_edges" tooltip="@.move_edges_tooltip" />
          <check text="@.modifiers_disable_handles" id="modifiers_disable_handles" tooltip="@.modifiers_disable_handles_tooltip" />
        </vbox>

        <!-- Timeline -->
        <vbox id="section_timeline">
          <separator text="@.section_timeline" horizontal="true" />
          <check text="@.autotimeline" id="autotimeline" tooltip="@.autotimeline_tooltip" />
          <check text="@.rewind_on_stop" id="rewind_on_stop" tooltip="@.rewind_on_stop_tooltip" />
	  <hbox>
	    <label text="@.default_first_frame" />
	    <entry id="first_frame" maxsize="3" />
	  </hbox>
	</vbox>

        <!-- Cursors -->
        <vbox id="section_cursors">
          <separator text="@.ui_mouse_cursor" horizontal="true" />
          <check id="native_cursor" text="@.native_cursor" />
          <hbox>
            <label id="cursor_scale_label" text="@.cursor_scale_label" />
            <combobox id="cursor_scale">
              <listitem text="100%" value="1" />
              <listitem text="200%" value="2" />
              <listitem text="300%" value="3" />
              <listitem text="400%" value="4" />
            </combobox>
          </hbox>

          <separator text="@.painting_cursors" horizontal="true" />

          <grid columns="2">
            <label text="@.crosshair_type" />
            <combobox id="painting_cursor_type">
	      <listitem text="@.simple_crosshair" value="0" />
	      <listitem text="@.crosshair_on_sprite" value="1" />
            </combobox>

	    <label text="@.brush_preview" />
            <combobox id="brush_preview">
              <listitem text="@.brush_preview_none" value="0" />
              <listitem text="@.brush_preview_edges" value="1" />
              <listitem text="@.brush_preview_full" value="2" />
            </combobox>

	    <label text="@.cursor_color_type" />
	    <combobox group="1" id="cursor_color_type">
	      <listitem text="@.cursor_neg_bw" value="0" />
	      <listitem text="@.cursor_specific_color" value="1" />
	    </combobox>

	    <boxfiller />
	    <colorpicker id="cursor_color" rgba="true" />
	  </grid>
        </vbox>

        <!-- Background -->
        <vbox id="section_bg">
          <combobox id="bg_scope" />

          <separator text="@.bg_checked" horizontal="true" />
          <grid columns="2">
            <label text="@.bg_size" />
	    <hbox>
              <combobox id="checked_bg_size" />
              <check text="@.bg_apply_zoom" id="checked_bg_zoom" />
	    </hbox>

            <label text="@.bg_colors" />
	    <hbox>
              <colorpicker id="checked_bg_color1" rgba="true" />
              <colorpicker id="checked_bg_color2" rgba="true" />
	    </hbox>
          </grid>

	  <hbox>
	    <hbox expansive="true" />
            <button id="reset_bg" text="@.reset_bg" width="60" />
	  </hbox>
        </vbox>

        <!-- Grid -->
        <vbox id="section_grid">
          <combobox id="grid_scope" />
	  <hbox>
            <check id="grid_visible" text="@.grid_visible" />
            <separator horizontal="true" expansive="true" />
	  </hbox>

	  <grid columns="5">
	    <label text="@.grid_x" />
	    <entry id="grid_x" text="" maxsize="4" />
	    <label text="@.grid_y" />
	    <entry id="grid_y" text="" maxsize="4" />
	    <hbox />

	    <label text="@.grid_width" />
	    <entry id="grid_w" text="" maxsize="4" />
	    <label text="@.grid_height" />
	    <entry id="grid_h" text="" maxsize="4" />
	    <hbox />

            <label text="@.grid_color" />
            <colorpicker id="grid_color" rgba="true" cell_hspan="3" />
	    <hbox />

	    <label text="@.grid_opacity" />
            <slider id="grid_opacity" cell_hspan="3" min="1" max="255" width="128" />
            <check id="grid_auto_opacity" text="@.grid_auto" />
	  </grid>

	  <hbox>
            <check id="pixel_grid_visible" text="@.grid_pixel_grid_visible" />
            <separator horizontal="true" expansive="true" />
	  </hbox>
          <grid columns="3">
            <label text="@.grid_color" />
            <colorpicker id="pixel_grid_color" rgba="true" />
	    <hbox />

	    <label text="@.grid_opacity" />
            <slider id="pixel_grid_opacity" min="1" max="255" width="128" />
            <check id="pixel_grid_auto_opacity" text="@.grid_auto" />
          </grid>

	  <hbox>
	    <hbox expansive="true" />
            <button id="reset_grid" text="@.reset_grid" width="60" />
	  </hbox>
        </vbox>

        <!-- Guides -->
        <vbox id="section_guides_and_slices">
          <separator text="@.guides" horizontal="true" />
          <grid columns="2">
            <label text="@.layer_edges_color" />
            <colorpicker id="layer_edges_color" rgba="true" />
            <label text="@.auto_guides_color" />
            <colorpicker id="auto_guides_color" rgba="true" />
          </grid>

          <separator text="@.slices" horizontal="true" />
          <hbox>
            <label text="@.default_slice_color" />
            <colorpicker id="default_slice_color" rgba="true" />
          </hbox>
        </vbox>

        <!-- Undo -->
        <vbox id="section_undo">
          <separator text="@.section_undo" horizontal="true" />
          <hbox>
            <label text="@.undo_size_limit" />
            <entry id="undo_size_limit" maxsize="4" tooltip="@.undo_size_limit_tooltip" />
            <label text="@.undo_mb" />
          </hbox>

          <vbox>
            <check id="undo_goto_modified"
                   text="@.undo_goto_modified"
                   tooltip="@.undo_goto_modified_tooltip" />
            <check id="undo_allow_nonlinear_history"
                   text="@.undo_allow_nonlinear_history" />
          </vbox>
        </vbox>

        <!-- Theme -->
        <vbox id="section_theme">
          <separator text="@.available_themes" horizontal="true" />
          <view expansive="true" maxsize="true">
            <listbox id="theme_list" />
	  </view>
          <hbox>
	    <button id="select_theme" text="@.select_theme" width="60" />
	    <boxfiller />
	    <button id="open_theme_folder" text="@.open_theme_folder" width="100" />
          </hbox>
        </vbox>

        <!-- Extensions -->
        <vbox id="section_extensions">
          <view expansive="true" maxsize="true">
            <listbox id="extensions_list" />
	  </view>
          <hbox>
	    <button id="add_extension" text="@.add_extension" minwidth="60" />
	    <boxfiller />
	    <button id="disable_extension" text="@.disable_extension" minwidth="60" />
	    <button id="uninstall_extension" text="@.uninstall_extension" minwidth="60" />
	    <button id="open_extension_folder" text="@.open_extension_folder" minwidth="60" />
          </hbox>
        </vbox>

        <!-- Experimental -->
        <vbox id="section_experimental">
          <separator text="@.user_interface" horizontal="true" />
          <check id="native_file_dialog" text="@.native_file_dialog" />
          <check id="flash_layer" text="@.flash_selected_layer" />
	  <hbox>
            <label text="@.non_active_layer_opacity" />
            <slider id="nonactive_layers_opacity" min="0" max="255" width="128" />
          </hbox>
        </vbox>

      </panel>
    </hbox>
    <separator horizontal="true" />
    <hbox>
      <boxfiller />
      <hbox homogeneous="true">
        <button text="@.ok" closewindow="true" id="button_ok" magnet="true" width="60" />
        <button text="@.apply" id="button_apply" />
        <button text="@.cancel" closewindow="true" />
      </hbox>
    </hbox>
  </vbox>
  </window>
</gui>
