reimplemented opacity without blending modes

This commit is contained in:
itsmattkc
2019-02-02 12:31:42 +11:00
parent b557979fb8
commit 064d1f229e
11 changed files with 60 additions and 50 deletions
+6
View File
@@ -10,6 +10,7 @@
#include "debug.h"
Config config;
RuntimeConfig runtime_config;
Config::Config()
: saved_layout(false),
@@ -262,3 +263,8 @@ void Config::save(QString path) {
stream.writeEndDocument(); // doc
f.close();
}
RuntimeConfig::RuntimeConfig() :
shaders_are_enabled(true),
disable_blending(false)
{}
+10
View File
@@ -26,6 +26,7 @@
struct Config {
Config();
bool saved_layout;
bool show_track_lines;
bool scroll_zooms;
@@ -74,6 +75,15 @@ struct Config {
void save(QString path);
};
struct RuntimeConfig {
RuntimeConfig();
bool shaders_are_enabled;
bool disable_blending;
QString external_translation_file;
};
extern Config config;
extern RuntimeConfig runtime_config;
#endif // CONFIG_H