convertTheme = (themeTxt) => {
  return themeTxt.split('\n').reduce((prev, line) => {
    let [key = '', value = ''] = line.split('=')
    key = key.trim()
    value = value.trim()
    if (!key || !value) {
      return prev
    }
    if (key === 'themeName') {
      prev.name = value.slice(0, 50)
    } else {
      const isTerminal = key.startsWith(terminalPrefix)
      key = key.replace(terminalPrefix, '')
      if (key.includes('selection')) {
        key = 'selectionBackground'
      }
      if (isTerminal) {
        prev.themeConfig[key] = value
      } else {
        prev.uiThemeConfig[key] = value
      }
    }
    return prev
  }, {
    themeConfig: {},
    uiThemeConfig: {}
  })
}
convert themeText to themeConfig object
@param {string} themeTxt
@return {object}