mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Update settings
This commit is contained in:
@@ -63,11 +63,11 @@ void Settings::Save()
|
|||||||
XMLElement *applicationNode = xmlDoc.NewElement( "Application" );
|
XMLElement *applicationNode = xmlDoc.NewElement( "Application" );
|
||||||
applicationNode->SetAttribute("scale", application.scale);
|
applicationNode->SetAttribute("scale", application.scale);
|
||||||
applicationNode->SetAttribute("accent_color", application.accent_color);
|
applicationNode->SetAttribute("accent_color", application.accent_color);
|
||||||
applicationNode->SetAttribute("pannel_stick", application.pannel_stick);
|
|
||||||
applicationNode->SetAttribute("smooth_transition", application.smooth_transition);
|
applicationNode->SetAttribute("smooth_transition", application.smooth_transition);
|
||||||
applicationNode->SetAttribute("smooth_cursor", application.smooth_cursor);
|
applicationNode->SetAttribute("smooth_cursor", application.smooth_cursor);
|
||||||
applicationNode->SetAttribute("action_history_follow_view", application.action_history_follow_view);
|
applicationNode->SetAttribute("action_history_follow_view", application.action_history_follow_view);
|
||||||
applicationNode->SetAttribute("accept_connections", application.accept_connections);
|
applicationNode->SetAttribute("accept_connections", application.accept_connections);
|
||||||
|
applicationNode->SetAttribute("pannel_history_mode", application.pannel_history_mode);
|
||||||
pRoot->InsertEndChild(applicationNode);
|
pRoot->InsertEndChild(applicationNode);
|
||||||
|
|
||||||
// Widgets
|
// Widgets
|
||||||
@@ -254,11 +254,11 @@ void Settings::Load()
|
|||||||
if (applicationNode != nullptr) {
|
if (applicationNode != nullptr) {
|
||||||
applicationNode->QueryFloatAttribute("scale", &application.scale);
|
applicationNode->QueryFloatAttribute("scale", &application.scale);
|
||||||
applicationNode->QueryIntAttribute("accent_color", &application.accent_color);
|
applicationNode->QueryIntAttribute("accent_color", &application.accent_color);
|
||||||
applicationNode->QueryBoolAttribute("pannel_stick", &application.pannel_stick);
|
|
||||||
applicationNode->QueryBoolAttribute("smooth_transition", &application.smooth_transition);
|
applicationNode->QueryBoolAttribute("smooth_transition", &application.smooth_transition);
|
||||||
applicationNode->QueryBoolAttribute("smooth_cursor", &application.smooth_cursor);
|
applicationNode->QueryBoolAttribute("smooth_cursor", &application.smooth_cursor);
|
||||||
applicationNode->QueryBoolAttribute("action_history_follow_view", &application.action_history_follow_view);
|
applicationNode->QueryBoolAttribute("action_history_follow_view", &application.action_history_follow_view);
|
||||||
applicationNode->QueryBoolAttribute("accept_connections", &application.accept_connections);
|
applicationNode->QueryBoolAttribute("accept_connections", &application.accept_connections);
|
||||||
|
applicationNode->QueryIntAttribute("pannel_history_mode", &application.pannel_history_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Widgets
|
// Widgets
|
||||||
|
|||||||
@@ -178,14 +178,14 @@ struct Application
|
|||||||
// Global settings Application interface
|
// Global settings Application interface
|
||||||
float scale;
|
float scale;
|
||||||
int accent_color;
|
int accent_color;
|
||||||
bool pannel_stick;
|
|
||||||
bool smooth_transition;
|
bool smooth_transition;
|
||||||
bool smooth_cursor;
|
bool smooth_cursor;
|
||||||
bool action_history_follow_view;
|
bool action_history_follow_view;
|
||||||
|
|
||||||
|
int pannel_history_mode;
|
||||||
|
|
||||||
// connection settings
|
// connection settings
|
||||||
bool accept_connections;
|
bool accept_connections;
|
||||||
// std::map<int, std::string> instance_names;
|
|
||||||
|
|
||||||
// Settings of widgets
|
// Settings of widgets
|
||||||
WidgetsConfig widget;
|
WidgetsConfig widget;
|
||||||
@@ -221,11 +221,11 @@ struct Application
|
|||||||
Application() : fresh_start(false), instance_id(0), name(APP_NAME), executable(APP_NAME) {
|
Application() : fresh_start(false), instance_id(0), name(APP_NAME), executable(APP_NAME) {
|
||||||
scale = 1.f;
|
scale = 1.f;
|
||||||
accent_color = 0;
|
accent_color = 0;
|
||||||
pannel_stick = false;
|
|
||||||
smooth_transition = true;
|
smooth_transition = true;
|
||||||
smooth_cursor = false;
|
smooth_cursor = false;
|
||||||
action_history_follow_view = false;
|
action_history_follow_view = false;
|
||||||
accept_connections = false;
|
accept_connections = false;
|
||||||
|
pannel_history_mode = 0;
|
||||||
current_view = 1;
|
current_view = 1;
|
||||||
current_workspace= 1;
|
current_workspace= 1;
|
||||||
brush = glm::vec3(0.5f, 0.1f, 0.f);
|
brush = glm::vec3(0.5f, 0.1f, 0.f);
|
||||||
|
|||||||
Reference in New Issue
Block a user