#ifndef NEWSBOAT_COLORMANAGER_H_ #define NEWSBOAT_COLORMANAGER_H_ #include #include #include namespace podboat { class pb_view; } class view; namespace newsboat { class colormanager : public config_action_handler { public: colormanager(); ~colormanager() override; void register_commands(configparser& cfgparser); void handle_action(const std::string& action, const std::vector& params) override; void dump_config(std::vector& config_output) override; bool colors_loaded() { return colors_loaded_; } void set_pb_colors(podboat::pb_view * v); std::map& get_fgcolors() { return fg_colors; } std::map& get_bgcolors() { return bg_colors; } std::map>& get_attributes() { return attributes; } private: bool colors_loaded_; std::map fg_colors; std::map bg_colors; std::map> attributes; }; } #endif /* NEWSBOAT_COLORMANAGER_H_ */