mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-04 08:46:09 +00:00
Don't reload the theme when the palette is modified
This was needed in the old days for 8bpp screens.
This commit is contained in:
parent
15a3b6ac2c
commit
b7de0a9547
@ -156,8 +156,6 @@ static void save_gui_config();
|
||||
|
||||
static bool button_with_icon_msg_proc(Widget* widget, Message* msg);
|
||||
|
||||
static void on_palette_change_signal();
|
||||
|
||||
// Initializes GUI.
|
||||
int init_module_gui()
|
||||
{
|
||||
@ -213,9 +211,6 @@ int init_module_gui()
|
||||
// Set graphics options for next time
|
||||
save_gui_config();
|
||||
|
||||
// Hook for palette change to regenerate the theme
|
||||
App::instance()->PaletteChange.connect(&on_palette_change_signal);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -900,11 +895,4 @@ void CustomizedGuiManager::saveLayout(Widget* widget, const std::string& str)
|
||||
set_config_string(("layout:"+rootId).c_str(), widgetId.c_str(), str.c_str());
|
||||
}
|
||||
|
||||
// Slot for App::PaletteChange to regenerate graphics when the App palette is changed
|
||||
static void on_palette_change_signal()
|
||||
{
|
||||
// Regenerate the theme
|
||||
CurrentTheme::get()->regenerate();
|
||||
}
|
||||
|
||||
} // namespace app
|
||||
|
Loading…
Reference in New Issue
Block a user