Dark Theme For Graph Control (#1106)
* Added dark them to graph control, started dark theme for the controls on the graph * Dark theme for graphing mode updated to use event model, diagnostics added, cleaned up code that wasn't needed * Updated prepare-release-internalonly.yaml internal package version * Updated Theme Settings properties, removed version change, other small changes from PR feedback> * Updated the localSettings check and updated the GraphTheme event to send bool instead of string * Updated the equation line color to change with the graph theme * Rebased onto master and issues created during the rebase * Updates per code review feedback * Update settings properties to just have IsMatchAppTheme property and updated the high contrast settings for the graph control * Match version to current in master * Updated per PR feedback * Fix resetting the m_lastLineColorIndex to only happen when reassignColors is true * Changed second if to else if in the OnPropertyChanged method * fixed control button and equation line colors
This commit is contained in:
@@ -29,6 +29,7 @@ namespace MockGraphingImpl
|
||||
, m_asymptotesColor()
|
||||
, m_axisColor()
|
||||
, m_boxColor()
|
||||
, m_gridColor()
|
||||
, m_fontColor()
|
||||
, m_showAxis(true)
|
||||
, m_showGrid(true)
|
||||
@@ -251,6 +252,19 @@ namespace MockGraphingImpl
|
||||
m_boxColor = Graphing::Color();
|
||||
}
|
||||
|
||||
virtual Graphing::Color GetGridColor() const
|
||||
{
|
||||
return m_gridColor;
|
||||
}
|
||||
virtual void SetGridColor(const Graphing::Color& value)
|
||||
{
|
||||
m_gridColor = value;
|
||||
}
|
||||
virtual void ResetGridColor()
|
||||
{
|
||||
m_gridColor = Graphing::Color();
|
||||
}
|
||||
|
||||
virtual Graphing::Color GetFontColor() const
|
||||
{
|
||||
return m_fontColor;
|
||||
@@ -404,6 +418,7 @@ namespace MockGraphingImpl
|
||||
Graphing::Color m_asymptotesColor;
|
||||
Graphing::Color m_axisColor;
|
||||
Graphing::Color m_boxColor;
|
||||
Graphing::Color m_gridColor;
|
||||
Graphing::Color m_fontColor;
|
||||
bool m_showAxis;
|
||||
bool m_showGrid;
|
||||
|
Reference in New Issue
Block a user