FIX:fixed appconfig is not saved when switching dark mode

Change-Id: I77fc3808309a23497000c34b6047a359d12c4622
This commit is contained in:
tao wang 2022-11-29 22:29:44 +08:00 committed by Lane.Wei
parent 4a5c473058
commit eca5897a25
22 changed files with 84 additions and 26 deletions

View file

@ -316,9 +316,9 @@ wxBitmap* BitmapCache::load_svg(const std::string &bitmap_name, unsigned target_
+ (grayscale ? "-gs" : "")
+ new_color;
auto it = m_map.find(bitmap_key);
/*auto it = m_map.find(bitmap_key);
if (it != m_map.end())
return it->second;
return it->second;*/
// map of color replaces
std::map<std::string, std::string> replaces;
@ -329,6 +329,8 @@ wxBitmap* BitmapCache::load_svg(const std::string &bitmap_name, unsigned target_
//replaces["\"#ACACAC\""] = "\"#54545A\"";
replaces["\"#CECECE\""] = "\"#54545B\"";
replaces["\"#6B6B6B\""] = "\"#818182\"";
replaces["\"#909090\""] = "\"#FFFFFF\"";
replaces["\"#00FF00\""] = "\"#FF0000\"";
}
//if (!new_color.empty())
// replaces["\"#ED6B21\""] = "\"" + new_color + "\"";