reimplemented opacity without blending modes
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user