ui: Moved color scheme selection to preferences
* removed 'Switch Color Scheme' action from View menu * added dropdown with all fetched color schemes to preferences bug id = 114
This commit is contained in:
+12
-1
@@ -71,7 +71,12 @@ void Application::loadSettings()
|
||||
{
|
||||
ApplicationSettings::getInstance()->load(FilePath(UserPaths::getAppSettingsPath()));
|
||||
|
||||
ColorScheme::getInstance()->load(ApplicationSettings::getInstance()->getColorSchemePath());
|
||||
loadStyle(ApplicationSettings::getInstance()->getColorSchemePath());
|
||||
}
|
||||
|
||||
void Application::loadStyle(const FilePath& colorSchemePath)
|
||||
{
|
||||
ColorScheme::getInstance()->load(colorSchemePath);
|
||||
GraphViewStyle::loadStyleSettings();
|
||||
}
|
||||
|
||||
@@ -323,6 +328,12 @@ void Application::handleMessage(MessageRefresh* message)
|
||||
}
|
||||
}
|
||||
|
||||
void Application::handleMessage(MessageSwitchColorScheme* message)
|
||||
{
|
||||
loadStyle(message->colorSchemePath);
|
||||
m_componentManager->refreshViews();
|
||||
}
|
||||
|
||||
void Application::startMessagingAndScheduling()
|
||||
{
|
||||
TaskScheduler::getInstance()->startSchedulerLoopThreaded();
|
||||
|
||||
Reference in New Issue
Block a user