fix crash on theme change

This commit is contained in:
Vadim Lopatin 2016-03-29 10:28:54 +03:00
parent 22fe2de1fa
commit 0eaeb24995
2 changed files with 2 additions and 2 deletions

View File

@ -35,11 +35,11 @@ class CompilerLogWidget : LogWidget {
/// handle theme change: e.g. reload some themed resources
override void onThemeChanged() {
super.onThemeChanged();
_filenameColor = style.customColor("build_log_filename_color", 0x0000C0);
_errorColor = style.customColor("build_log_error_color", 0xFF0000);
_warningColor = style.customColor("build_log_warning_color", 0x606000);
_deprecationColor = style.customColor("build_log_deprecation_color", 0x802040);
super.onThemeChanged();
}
/**

View File

@ -38,11 +38,11 @@ class SearchLogWidget : LogWidget {
/// handle theme change: e.g. reload some themed resources
override void onThemeChanged() {
super.onThemeChanged();
_filenameColor = style.customColor("build_log_filename_color", 0x0000C0);
_errorColor = style.customColor("build_log_error_color", 0xFF0000);
_warningColor = style.customColor("build_log_warning_color", 0x606000);
_deprecationColor = style.customColor("build_log_deprecation_color", 0x802040);
super.onThemeChanged();
}
override protected CustomCharProps[] handleCustomLineHighlight(int line, dstring txt, ref CustomCharProps[] buf) {