Put all colors into single xml file. Accessing colors is handled via the singleton class ColorScheme. The default scheme "bright.xml" holds the original colors. The scheme "dark.xml" is a start, but still a poor alternative. Color schemes can be switched via the View menu.
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
#ifndef APPLICATION_SETTINGS_H
|
|
#define APPLICATION_SETTINGS_H
|
|
|
|
#include <memory>
|
|
|
|
#include "settings/CommonSettings.h"
|
|
|
|
class ApplicationSettings
|
|
: public CommonSettings
|
|
{
|
|
public:
|
|
static std::shared_ptr<ApplicationSettings> getInstance();
|
|
~ApplicationSettings();
|
|
|
|
std::string getStartupProjectFilePath() const;
|
|
bool filterUndefinedNodesFromGraph() const;
|
|
|
|
// application
|
|
std::string getFontName() const;
|
|
void setFontName(const std::string& fontName);
|
|
|
|
int getFontSize() const;
|
|
void setFontSize(int fontSize);
|
|
|
|
std::string getColorSchemePath() const;
|
|
void setColorSchemePath(const std::string& colorSchemePath);
|
|
|
|
// code
|
|
int getCodeTabWidth() const;
|
|
void setCodeTabWidth(int codeTabWidth);
|
|
|
|
int getCodeSnippetSnapRange() const;
|
|
void setCodeSnippetSnapRange(int range);
|
|
|
|
int getCodeSnippetExpandRange() const;
|
|
void setCodeSnippetExpandRange(int range);
|
|
|
|
private:
|
|
ApplicationSettings();
|
|
ApplicationSettings(const ApplicationSettings&);
|
|
void operator=(const ApplicationSettings&);
|
|
|
|
static std::shared_ptr<ApplicationSettings> s_instance;
|
|
};
|
|
|
|
#endif // APPLICATION_SETTINGS_H
|