code: def load_app_settings(config):
      if config is None:
          return
      curr_app_settings = global_state.get_app_settings()
      theme = get_config_val(
          config, curr_app_settings, "theme", section="app"
      )
      pin_menu = get_config_val(
          config,
          curr_app_settings,
          "pin_menu",
          section="app",
          getter="getboolean",
      )
      language = get_config_val(
          config, curr_app_settings, "language", section="app"
      )
      github_fork = get_config_val(
          config,
          curr_app_settings,
          "github_fork",
          section="app",
          getter="getboolean",
      )
      hide_shutdown = get_config_val(
          config,
          curr_app_settings,
          "hide_shutdown",
          section="app",
          getter="getboolean",
      )
      max_column_width = get_config_val(
          config,
          curr_app_settings,
          "max_column_width",
          section="app",
          getter="getint",
      )
      max_row_height = get_config_val(
          config,
          curr_app_settings,
          "max_row_height",
          section="app",
          getter="getint",
      )
      main_title = get_config_val(
          config, curr_app_settings, "main_title", section="app"
      )
      main_title_font = get_config_val(
          config, curr_app_settings, "main_title_font", section="app"
      )
      query_engine = get_config_val(
          config, curr_app_settings, "query_engine", section="app"
      )
      hide_header_editor = get_config_val(
          config,
          curr_app_settings,
          "hide_header_editor",
          section="app",
          getter="getboolean",
      )
      hide_header_menu = get_config_val(
          config,
          curr_app_settings,
          "hide_header_menu",
          section="app",
          getter="getboolean",
      )
      hide_main_menu = get_config_val(
          config,
          curr_app_settings,
          "hide_main_menu",
          section="app",
          getter="getboolean",
      )
      hide_column_menus = get_config_val(
          config,
          curr_app_settings,
          "hide_column_menus",
          section="app",
          getter="getboolean",
      )
      lock_header_menu = get_config_val(
          config,
          curr_app_settings,
          "lock_header_menu",
          section="app",
          getter="getboolean",
      )
      enable_custom_filters = get_config_val(
          config,
          curr_app_settings,
          "enable_custom_filters",
          section="app",
          getter="getboolean",
      )
      enable_web_uploads = get_config_val(
          config,
          curr_app_settings,
          "enable_web_uploads",
          section="app",
          getter="getboolean",
      )
      open_custom_filter_on_startup = get_config_val(
          config,
          curr_app_settings,
          "open_custom_filter_on_startup",
          section="app",
          getter="getboolean",
      )
      open_predefined_filters_on_startup = get_config_val(
          config,
          curr_app_settings,
          "open_predefined_filters_on_startup",
          section="app",
          getter="getboolean",
      )
      hide_drop_rows = get_config_val(
          config,
          curr_app_settings,
          "hide_drop_rows",
          section="app",
          getter="getboolean",
      )
  
      global_state.set_app_settings(
          dict(
              theme=theme,
              pin_menu=pin_menu,
              language=language,
              github_fork=github_fork,
              hide_shutdown=hide_shutdown,
              max_column_width=max_column_width,
              max_row_height=max_row_height,
              main_title=main_title,
              main_title_font=main_title_font,
              query_engine=query_engine,
              open_custom_filter_on_startup=open_custom_filter_on_startup,
              open_predefined_filters_on_startup=open_predefined_filters_on_startup,
              hide_drop_rows=hide_drop_rows,
              hide_header_editor=hide_header_editor,
              lock_header_menu=lock_header_menu,
              hide_header_menu=hide_header_menu,
              hide_main_menu=hide_main_menu,
              hide_column_menus=hide_column_menus,
              enable_custom_filters=enable_custom_filters,
              enable_web_uploads=enable_web_uploads,
          )
      )
  
file_path: dtale/dtale/config.py
imports: import json
  import os
  from six import string_types
  from six.moves.configparser import ConfigParser
  import dtale.global_state
  from dtale.utils import dict_merge
label_desc: Use image node_id 5 for calling a global function with example usage: load_app_settings(config) without return types