Merge pull request #1 from Assistant/feature/themes-lolpants

Fixes
This commit is contained in:
Jack Baron 2020-02-16 21:22:23 +00:00 committed by GitHub
commit d2c4bcd435
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -37,8 +37,8 @@ namespace ModAssistant
foreach (string file in Directory.EnumerateFiles(ThemeDirectory))
{
FileInfo info = new FileInfo(file);
//FileInfo includes the extension in its Name field, so we have to split the string and select only the actual name.
string name = info.Name.Split('.').First();
//FileInfo includes the extension in its Name field, so we have to select only the actual name.
string name = Path.GetFileNameWithoutExtension(info.Name);
//Ignore Themes without the xaml extension and ignore themes with the same names as others.
//If requests are made I can instead make a Theme class that splits the pre-installed themes from
//user-made ones so that one more user-made Light/Dark theme can be added.

View file

@ -9,6 +9,7 @@
<ControlTemplate TargetType="{x:Type GridViewColumnHeader}">
<Grid SnapsToDevicePixels="True">
<Border Name="HeaderBorder" BorderThickness="0,1,0,1"
Margin="-2,-1,-1,0"
BorderBrush="{DynamicResource ModColumnBorderBrush}"
Background="{DynamicResource ModColumnBackground}">
<Grid>