Skip to content

Portable Tool for an Ideal Windows Setup

fix chipset parsing & storage header alignment in InfoCard

Greedeksb89071ebd5f1
diff --git a/.Source/GTweak/Utilities/Configuration/HardwareProvider.cs b/.Source/GTweak/Utilities/Configuration/HardwareProvider.cs
index 9458cebb..fa2fc55b 100644
--- a/.Source/GTweak/Utilities/Configuration/HardwareProvider.cs
+++ b/.Source/GTweak/Utilities/Configuration/HardwareProvider.cs
@@ -698,8 +698,8 @@ namespace GTweak.Utilities.Configuration
return match.Groups["res"].Value;
}
- string clean = Regex.Replace(rawCaption, @"\([RTMtm]+\)|(?i:\b(Intel|AMD|NVIDIA|VIA|Series|Chipset|Family|LPC|Controller|Interface|Bridge|Host|Standard)\b)", "");
- clean = Regex.Replace(clean, @"[()\[\]\-\s]+", " ").Trim();
+ string clean = Regex.Replace(rawCaption, @"\([RTMtm]+\)|(?i:\b(Intel|AMD|NVIDIA|VIA|Series|Chipset|Family|LPC|eSPI|Controller|Interface|Bridge|Host|Standard)\b)", "");
+ clean = Regex.Replace(clean, @"[()\[\]\-\s/]+", " ").Trim();
return clean.Length > 2 ? clean : rawCaption;
}
diff --git a/.Source/GTweak/View/DataSystemView.xaml b/.Source/GTweak/View/DataSystemView.xaml
index fbe398b5..9badcd2d 100644
--- a/.Source/GTweak/View/DataSystemView.xaml
+++ b/.Source/GTweak/View/DataSystemView.xaml
@@ -473,7 +473,7 @@
<ColumnDefinition Width="Auto" SharedSizeGroup="StorageTypeColumn"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="{DynamicResource label_name_sysinfo}" Style="{StaticResource TextDefault}" Foreground="{StaticResource Brush_Inactive}" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"/>
- <TextBlock Grid.Column="2" Text="{DynamicResource label_itype_sysinfo}" Style="{StaticResource TextDefault}" Foreground="{StaticResource Brush_Inactive}" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"/>
+ <TextBlock Grid.Column="2" Text="{DynamicResource label_itype_sysinfo}" Style="{StaticResource TextDefault}" Foreground="{StaticResource Brush_Inactive}" HorizontalAlignment="Right" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap"/>
</Grid>
<ItemsControl ItemsSource="{Binding [Storage].Items}">