diff --git a/include/etree.hpp b/include/etree.hpp index cf51a72..fac2b5f 100644 --- a/include/etree.hpp +++ b/include/etree.hpp @@ -7,6 +7,7 @@ #include #include #include +#include "../include/basic.hpp" #include "json.hpp" #include @@ -21,32 +22,6 @@ std::string currentDirectory = fs::current_path().string(); vector inner_pointers = { "├── ", "│ " }; vector final_pointers = { "└── ", " " }; -namespace Colours { - const std::string greenColour = "\033[1;32m"; - const std::string endColour = "\033[0m"; - const std::string redColour = "\033[1;31m"; - const std::string blueColour = "\033[1;34m"; - const std::string yellowColour = "\033[1;33m"; - const std::string purpleColour = "\033[1;35m"; - const std::string turquoiseColour = "\033[1;36m"; - const std::string grayColour = "\033[1;37m"; -} - -namespace Paths { - inline std::string getConfigFolderPath() { - std::string homeDir = getenv("HOME"); - return homeDir + "/.config/"; - } - - inline std::string getEtreeFolderPath() { - return getConfigFolderPath() + "etree/"; - } - - inline std::string getLanguageFilePath(const std::string& languageCode) { - return getEtreeFolderPath() + "locales/" + languageCode + ".json"; - } -} - //RelativePath inline std::string relativePath(const fs::path& entryPath) { return fs::relative(entryPath, fs::current_path()).string(); @@ -118,4 +93,4 @@ const std::vector> iconsWithEx {"󰨊 ", ".ps1", ""} }; -#endif +#endif \ No newline at end of file