242d29c3a6
Allows custom colors to be dictated to RunView directly from CayaRenderView. Some colors that were reliant on hard-coded theme have been replaced with system colors.
35 lines
578 B
C++
35 lines
578 B
C++
#ifndef _Emoticor_h_
|
|
#define _Emoticor_h_
|
|
|
|
|
|
#include <String.h>
|
|
#include "RunView.h"
|
|
#include "Emoconfig.h"
|
|
|
|
class Emoticor
|
|
{
|
|
public:
|
|
|
|
static Emoticor* Get(); //singleton
|
|
|
|
|
|
void AddText(RunView* fTextView, const char* text, rgb_color cols,
|
|
rgb_color font, rgb_color cols2, rgb_color font2);
|
|
void LoadConfig(const char*);
|
|
|
|
Emoconfig* Config();
|
|
|
|
~Emoticor();
|
|
|
|
private:
|
|
Emoticor();
|
|
Emoconfig* fConfig;
|
|
void _findTokens(RunView* fTextView, BString text, int tokenstart,
|
|
rgb_color cols, rgb_color font, rgb_color cols2,
|
|
rgb_color font2);
|
|
|
|
};
|
|
|
|
#endif
|
|
|