Skip to content

Commit

Permalink
Support importing Alacritty themes in the format of TOML
Browse files Browse the repository at this point in the history
  • Loading branch information
eranif committed Mar 21, 2024
1 parent b782d55 commit 6eebb46
Show file tree
Hide file tree
Showing 4 changed files with 209 additions and 127 deletions.
10 changes: 4 additions & 6 deletions CodeLite/clIniFile.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "clIniFile.h"

#include "cl_standard_paths.h"

clIniFile::clIniFile(const wxFileName& iniFullPath)
Expand All @@ -7,13 +8,10 @@ clIniFile::clIniFile(const wxFileName& iniFullPath)
}

clIniFile::clIniFile(const wxString& fullname)
: wxFileConfig("",
"",
: wxFileConfig("", "",
clStandardPaths::Get().GetUserDataDir() + wxFileName::GetPathSeparator() + "config" +
wxFileName::GetPathSeparator() +
fullname,
"",
wxCONFIG_USE_LOCAL_FILE)
wxFileName::GetPathSeparator() + fullname,
"", wxCONFIG_USE_LOCAL_FILE)
{
}

Expand Down
7 changes: 4 additions & 3 deletions CodeLite/clIniFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
#ifndef CLINIFILE_H
#define CLINIFILE_H

#include "codelite_exports.h"

#include <wx/fileconf.h>
#include <wx/filename.h>
#include <wx/string.h>
#include "codelite_exports.h"

class WXDLLIMPEXP_CL clIniFile : public wxFileConfig
{
Expand All @@ -38,13 +39,13 @@ class WXDLLIMPEXP_CL clIniFile : public wxFileConfig
* @brief create a INI file under iniFullPath.GetFullPath()
*/
clIniFile(const wxFileName& iniFullPath);

/**
* @brief create a INI file under ~/.codelite/config/fullname
* note that the fullname should include the file suffix
*/
clIniFile(const wxString& fullname);

virtual ~clIniFile();
};

Expand Down
Loading

0 comments on commit 6eebb46

Please sign in to comment.