private void VSColorTheme_ThemeChanged(ThemeChangedEventArgs e)
        {
            var newColours = GetReportColours();

            if (lastReportColours == null || !SameColours(lastReportColours, newColours))
            {
                lastReportColours = newColours;
                ColoursChanged?.Invoke(this, newColours);
            }
        }
        private void SetColors(
            System.Windows.Media.Color coverageTouchedArea,
            System.Windows.Media.Color coverageNotTouchedArea,
            System.Windows.Media.Color coveragePartiallyTouchedArea
            )
        {
            var fontsAndColorsChanged = FontsAndColorsChanged(coverageTouchedArea, coverageNotTouchedArea, coveragePartiallyTouchedArea);

            if (fontsAndColorsChanged)
            {
                CoverageTouchedArea          = coverageTouchedArea;
                CoverageNotTouchedArea       = coverageNotTouchedArea;
                CoveragePartiallyTouchedArea = coveragePartiallyTouchedArea;

                ColoursChanged?.Invoke(this, EventArgs.Empty);
            }
        }
Exemple #3
0
 public static void RaiseColoursChangedEvent()
 {
     ColoursChanged?.Invoke(null, null);
 }