feature: allow user to select the chart fill color

This commit is contained in:
leo 2024-09-24 12:14:51 +08:00
parent de15cb1ff2
commit c0f59c441b
No known key found for this signature in database
6 changed files with 88 additions and 13 deletions

View file

@ -337,6 +337,12 @@ namespace SourceGit.ViewModels
}
}
public uint StatisticsSampleColor
{
get => _statisticsSampleColor;
set => SetProperty(ref _statisticsSampleColor, value);
}
public List<RepositoryNode> RepositoryNodes
{
get;
@ -621,5 +627,7 @@ namespace SourceGit.ViewModels
private int _shellOrTerminal = -1;
private int _externalMergeToolType = 0;
private string _externalMergeToolPath = string.Empty;
private uint _statisticsSampleColor = 0xFF00FF00;
}
}

View file

@ -47,18 +47,12 @@ namespace SourceGit.ViewModels
if (_data == null)
return;
switch (_selectedIndex)
SelectedReport = _selectedIndex switch
{
case 0:
SelectedReport = _data.All;
break;
case 1:
SelectedReport = _data.Month;
break;
default:
SelectedReport = _data.Week;
break;
}
0 => _data.All,
1 => _data.Month,
_ => _data.Week,
};
}
private bool _isLoading = true;