logmeow/config.h

21 lines
483 B
C
Raw Normal View History

#pragma once
#include <string>
#include <nlohmann/json.hpp>
#include "filters.h"
struct Config {
std::string logcat_command;
2023-01-08 16:12:22 +00:00
float normal_font_size = 13.0f;
float monospace_font_size = 13.0f;
Filters filters;
};
std::string get_config_folder();
void create_config_folders_if_necessary();
void from_json(const nlohmann::json& j, Config& config);
Config load_config();
void to_json(nlohmann::json& j, const Config& config);
void write_config(const Config& config);