Skip to content

Commit

Permalink
Fix inconsistent naming
Browse files Browse the repository at this point in the history
  • Loading branch information
sirdoombox committed Mar 16, 2020
1 parent 221416f commit bf44aa1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions PostScriptumMortarCalculator/Models/UserConfigModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ public class UserConfigModel
[JsonProperty] public double GridOpacity { get; set; } = 0.25d;
[JsonProperty] public string LastMapName { get; set; }
[JsonProperty] public string LastMortarName { get; set; }
[JsonProperty] public Color MortarIndicatorColor { get; set; } = Colors.Blue;
[JsonProperty] public Color TargetIndicatorColor { get; set; } = Colors.Red;
[JsonProperty] public Color MortarIndicatorColour { get; set; } = Colors.Blue;
[JsonProperty] public Color TargetIndicatorColour { get; set; } = Colors.Red;

}
}
12 changes: 6 additions & 6 deletions PostScriptumMortarCalculator/ViewModels/UserConfigViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public UserConfigViewModel(ConfigService configService, IEventAggregator eventAg
.Select(x => x.BaseColorScheme));
SelectedTheme = m_configModel.Theme;
SelectedAccent = m_configModel.Accent;
MortarIndicatorColour = m_configModel.MortarIndicatorColor;
TargetIndicatorColour = m_configModel.TargetIndicatorColor;
MortarIndicatorColour = m_configModel.MortarIndicatorColour;
TargetIndicatorColour = m_configModel.TargetIndicatorColour;
}

protected override void OnPropertyChanged(string propertyName)
Expand All @@ -61,15 +61,15 @@ public void OnSelectedThemeChanged()
ThemeManager.ChangeThemeBaseColor(Application.Current, SelectedTheme);
}

public void OnMortarIndicatorColorChanged()
public void OnMortarIndicatorColourChanged()
{
m_configModel.MortarIndicatorColor = MortarIndicatorColour;
m_configModel.MortarIndicatorColour = MortarIndicatorColour;
m_eventAggregator.Publish(new ColorChangedEvent(ColorChangedEvent.Type.Mortar, MortarIndicatorColour));
}

public void OnTargetIndicatorColorChanged()
public void OnTargetIndicatorColourChanged()
{
m_configModel.TargetIndicatorColor = TargetIndicatorColour;
m_configModel.TargetIndicatorColour = TargetIndicatorColour;
m_eventAggregator.Publish(new ColorChangedEvent(ColorChangedEvent.Type.Target, TargetIndicatorColour));
}
}
Expand Down
2 changes: 1 addition & 1 deletion PostScriptumMortarCalculator/Views/UserConfigView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<Setter Property="Margin" Value="{StaticResource ControlMargin}" />
<Style.Resources>
<Style TargetType="Label">
<Setter Property="MinWidth" Value="200"/>
<Setter Property="MinWidth" Value="175"/>
<Setter Property="DockPanel.Dock" Value="Left" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="VerticalAlignment" Value="Top" />
Expand Down

0 comments on commit bf44aa1

Please sign in to comment.