Skip to content

Portable Tool for an Ideal Windows Setup

add refresh rate display & ref

Greedeks7ca9ecc3e4e5
diff --git a/.Source/GTweak/Core/ViewModel/DataSystemViewModel.cs b/.Source/GTweak/Core/ViewModel/DataSystemViewModel.cs
index 1a2b1bfa..35c8f0c8 100644
--- a/.Source/GTweak/Core/ViewModel/DataSystemViewModel.cs
+++ b/.Source/GTweak/Core/ViewModel/DataSystemViewModel.cs
@@ -12,6 +12,7 @@ namespace GTweak.Core.ViewModel
{
private readonly DataSystemModel _model = new DataSystemModel();
private ObservableCollection<DataSystemModel> _collection;
+ private enum FallbackState { None, Unknown, NoDevice, NoDriver, ConnectionLost }
public ObservableCollection<DataSystemModel> DisplayData
{
@@ -63,38 +64,54 @@ namespace GTweak.Core.ViewModel
}
}
+ private string GetFallbackResourceString(FallbackState state)
+ {
+ string key = state switch
+ {
+ FallbackState.Unknown => "unknown_information_sysinfo",
+ FallbackState.NoDevice => "no_device_information_sysinfo",
+ FallbackState.NoDriver => "driver_not_installed_sysinfo",
+ FallbackState.ConnectionLost => "connection_lose_sysinfo",
+ _ => null
+ };
+
+ return key == null ? string.Empty : (string)Application.Current.Resources[key];
+ }
+
public DataSystemViewModel()
{
DisplayData = new ObservableCollection<DataSystemModel>
{
- CreateModelCollection("OSName", HardwareData.OS.Name, "unknown_information_sysinfo"),
- CreateModelCollection("OSVersion", HardwareData.OS.Version, "unknown_information_sysinfo"),
+ CreateModelCollection("OSName", HardwareData.OS.Name, FallbackState.Unknown),
+ CreateModelCollection("OSVersion", HardwareData.OS.Version, FallbackState.Unknown),
CreateModelCollection("Processes", HardwareData.RunningProcessesCount),
CreateModelCollection("Services", HardwareData.RunningServicesCount),
- CreateModelCollection("Bios", HardwareData.Bios.Data, "no_device_information_sysinfo"),
- CreateModelCollection("Mode", HardwareData.Bios.Mode, "unknown_information_sysinfo"),
- CreateModelCollection("Motherboard", HardwareData.Motherboard, "no_device_information_sysinfo"),
- CreateModelCollection("Processor", HardwareData.Processor.Data, "no_device_information_sysinfo"),
- CreateModelCollection("Cores", HardwareData.Processor.Cores, "unknown_information_sysinfo"),
- CreateModelCollection("Threads", HardwareData.Processor.Threads, "unknown_information_sysinfo"),
- CreateModelCollection("Graphics", HardwareData.Graphics, "driver_not_installed_sysinfo"),
- CreateModelCollection("Memory", HardwareData.Memory.Data, "no_device_information_sysinfo"),
- CreateModelCollection("Type", HardwareData.Memory.Type, "unknown_information_sysinfo"),
- CreateModelCollection("Storage", HardwareData.Storage, "no_device_information_sysinfo"),
- CreateModelCollection("Audio", HardwareData.AudioDevice, "driver_not_installed_sysinfo"),
- CreateModelCollection("Network", HardwareData.NetworkAdapter, "driver_not_installed_sysinfo"),
- CreateModelCollection("IpAddress", HardwareData.UserIPAddress, "connection_lose_sysinfo")
+ CreateModelCollection("Bios", HardwareData.Bios.Data, FallbackState.NoDevice),
+ CreateModelCollection("Mode", HardwareData.Bios.Mode, FallbackState.Unknown),
+ CreateModelCollection("Motherboard", HardwareData.Motherboard, FallbackState.NoDevice),
+ CreateModelCollection("Processor", HardwareData.Processor.Data, FallbackState.NoDevice),
+ CreateModelCollection("Cores", HardwareData.Processor.Cores, FallbackState.Unknown),
+ CreateModelCollection("Threads", HardwareData.Processor.Threads, FallbackState.Unknown),
+ CreateModelCollection("Graphics", HardwareData.Graphics, FallbackState.NoDriver),
+ CreateModelCollection("RefreshRate", HardwareData.MonitorRefreshRate, FallbackState.Unknown),
+ CreateModelCollection("Memory", HardwareData.Memory.Data, FallbackState.NoDevice),
+ CreateModelCollection("Type", HardwareData.Memory.Type, FallbackState.Unknown),
+ CreateModelCollection("Storage", HardwareData.Storage, FallbackState.NoDevice),
+ CreateModelCollection("Audio", HardwareData.AudioDevice, FallbackState.NoDriver),
+ CreateModelCollection("Network", HardwareData.NetworkAdapter, FallbackState.NoDriver),
+ CreateModelCollection("IpAddress", HardwareData.UserIPAddress, FallbackState.ConnectionLost)
};
RefreshStates();
}
- public void Update()
+ internal void Update()
{
- UpdateModelData("Storage", HardwareData.Storage, "no_device_information_sysinfo");
- UpdateModelData("Audio", HardwareData.AudioDevice, "driver_not_installed_sysinfo");
- UpdateModelData("Network", HardwareData.NetworkAdapter, "driver_not_installed_sysinfo");
- UpdateModelData("IpAddress", HardwareData.UserIPAddress, "connection_lose_sysinfo");
+ UpdateModelData("RefreshRate", HardwareData.MonitorRefreshRate, FallbackState.Unknown);
+ UpdateModelData("Storage", HardwareData.Storage, FallbackState.NoDevice);
+ UpdateModelData("Audio", HardwareData.AudioDevice, FallbackState.NoDriver);
+ UpdateModelData("Network", HardwareData.NetworkAdapter, FallbackState.NoDriver);
+ UpdateModelData("IpAddress", HardwareData.UserIPAddress, FallbackState.ConnectionLost);
RefreshStates();
}
@@ -117,21 +134,21 @@ namespace GTweak.Core.ViewModel
}
}
- private void UpdateModelData(string name, string newData, string fallbackResourceKey)
+ private void UpdateModelData(string name, string newData, FallbackState fallbackState = FallbackState.None)
{
DataSystemModel model = this[name];
if (model != null)
{
- model.Data = !string.IsNullOrEmpty(newData) ? newData : (string)Application.Current.Resources[fallbackResourceKey];
+ model.Data = (fallbackState == FallbackState.None) ? newData : (!string.IsNullOrEmpty(newData) ? newData : GetFallbackResourceString(fallbackState));
}
}
- private DataSystemModel CreateModelCollection(string name, object data, string fallbackResourceKey = null)
+ private DataSystemModel CreateModelCollection(string name, string data, FallbackState fallbackState = FallbackState.None)
{
return new DataSystemModel
{
Name = name,
- Data = (string)(fallbackResourceKey == null ? data : (!string.IsNullOrEmpty(data as string) ? data : (string)Application.Current.Resources[fallbackResourceKey]))
+ Data = (fallbackState == FallbackState.None) ? data : (!string.IsNullOrEmpty(data) ? data : GetFallbackResourceString(fallbackState))
};
}
}
diff --git a/.Source/GTweak/Languages/en/Localize.xaml b/.Source/GTweak/Languages/en/Localize.xaml
index 8d9d94a6..55015311 100644
--- a/.Source/GTweak/Languages/en/Localize.xaml
+++ b/.Source/GTweak/Languages/en/Localize.xaml
@@ -517,6 +517,7 @@
<v:String x:Key="title_cores_sysinfo">Cores:</v:String>
<v:String x:Key="title_threads_sysinfo">Threads:</v:String>
<v:String x:Key="title_gpu_sysinfo">Graphics:</v:String>
+ <v:String x:Key="title_refreshrate_sysinfo">Refresh Rate:</v:String>
<v:String x:Key="title_ram_sysinfo">Memory:</v:String>
<v:String x:Key="title_mtype_sysinfo">Memory Type:</v:String>
<v:String x:Key="title_storage_sysinfo">Storage devices:</v:String>
diff --git a/.Source/GTweak/Languages/fr/Localize.xaml b/.Source/GTweak/Languages/fr/Localize.xaml
index c0a55501..af353096 100644
--- a/.Source/GTweak/Languages/fr/Localize.xaml
+++ b/.Source/GTweak/Languages/fr/Localize.xaml
@@ -518,6 +518,7 @@
<v:String x:Key="title_cores_sysinfo">Cœurs :</v:String>
<v:String x:Key="title_threads_sysinfo">Threads :</v:String>
<v:String x:Key="title_gpu_sysinfo">Carte graphique :</v:String>
+ <v:String x:Key="title_refreshrate_sysinfo">Taux de rafraîchissement:</v:String>
<v:String x:Key="title_ram_sysinfo">Mémoire :</v:String>
<v:String x:Key="title_mtype_sysinfo">Type de mémoire :</v:String>
<v:String x:Key="title_storage_sysinfo">Périphériques de stockage :</v:String>
@@ -544,3 +545,4 @@
+
diff --git a/.Source/GTweak/Languages/hu/Localize.xaml b/.Source/GTweak/Languages/hu/Localize.xaml
index 7960f94e..57c04a9c 100644
--- a/.Source/GTweak/Languages/hu/Localize.xaml
+++ b/.Source/GTweak/Languages/hu/Localize.xaml
@@ -517,6 +517,7 @@
<v:String x:Key="title_cores_sysinfo">Magok:</v:String>
<v:String x:Key="title_threads_sysinfo">Szálak:</v:String>
<v:String x:Key="title_gpu_sysinfo">Grafika:</v:String>
+ <v:String x:Key="title_refreshrate_sysinfo">Refresh Rate:</v:String>
<v:String x:Key="title_ram_sysinfo">Memória:</v:String>
<v:String x:Key="title_mtype_sysinfo">Memória típusa:</v:String>
<v:String x:Key="title_storage_sysinfo">Tárolóeszközök:</v:String>
@@ -546,3 +547,4 @@
+
diff --git a/.Source/GTweak/Languages/it/Localize.xaml b/.Source/GTweak/Languages/it/Localize.xaml
index 2b5f167c..07cf32ca 100644
--- a/.Source/GTweak/Languages/it/Localize.xaml
+++ b/.Source/GTweak/Languages/it/Localize.xaml
@@ -517,6 +517,7 @@
<v:String x:Key="title_cores_sysinfo">Core:</v:String>
<v:String x:Key="title_threads_sysinfo">Thread:</v:String>
<v:String x:Key="title_gpu_sysinfo">Grafica:</v:String>
+ <v:String x:Key="title_refreshrate_sysinfo">Frequenza di aggiornamento:</v:String>
<v:String x:Key="title_ram_sysinfo">Memoria:</v:String>
<v:String x:Key="title_mtype_sysinfo">Tipo di memoria:</v:String>
<v:String x:Key="title_storage_sysinfo">Dispositivi di archiviazione:</v:String>
@@ -541,3 +542,4 @@
</ResourceDictionary>
+
diff --git a/.Source/GTweak/Languages/ko/Localize.xaml b/.Source/GTweak/Languages/ko/Localize.xaml
index a32a11d0..127637b1 100644
--- a/.Source/GTweak/Languages/ko/Localize.xaml
+++ b/.Source/GTweak/Languages/ko/Localize.xaml
@@ -517,6 +517,7 @@
<v:String x:Key="title_cores_sysinfo">코어:</v:String>
<v:String x:Key="title_threads_sysinfo">스레드:</v:String>
<v:String x:Key="title_gpu_sysinfo">그래픽:</v:String>
+ <v:String x:Key="title_refreshrate_sysinfo">Refresh Rate:</v:String>
<v:String x:Key="title_ram_sysinfo">메모리:</v:String>
<v:String x:Key="title_mtype_sysinfo">메모리 유형:</v:String>
<v:String x:Key="title_storage_sysinfo">저장소 장치:</v:String>
@@ -541,3 +542,4 @@
</ResourceDictionary>
+
diff --git a/.Source/GTweak/Languages/pl/Localize.xaml b/.Source/GTweak/Languages/pl/Localize.xaml
index 04ddc4d1..3ca6b28a 100644
--- a/.Source/GTweak/Languages/pl/Localize.xaml
+++ b/.Source/GTweak/Languages/pl/Localize.xaml
@@ -517,6 +517,7 @@
<v:String x:Key="title_cores_sysinfo">Rdzenie:</v:String>
<v:String x:Key="title_threads_sysinfo">Wątki:</v:String>
<v:String x:Key="title_gpu_sysinfo">Karta graficzna:</v:String>
+ <v:String x:Key="title_refreshrate_sysinfo">Częstotliwość odświeżania:</v:String>
<v:String x:Key="title_ram_sysinfo">Pamięć:</v:String>
<v:String x:Key="title_mtype_sysinfo">Typ pamięci:</v:String>
<v:String x:Key="title_storage_sysinfo">Urządzenia pamięci masowej:</v:String>
@@ -550,3 +551,4 @@
+
diff --git a/.Source/GTweak/Languages/pt-BR/Localize.xaml b/.Source/GTweak/Languages/pt-BR/Localize.xaml
index a210ab93..06c2d3a5 100644
--- a/.Source/GTweak/Languages/pt-BR/Localize.xaml
+++ b/.Source/GTweak/Languages/pt-BR/Localize.xaml
@@ -517,6 +517,7 @@
<v:String x:Key="title_cores_sysinfo">Núcleos:</v:String>
<v:String x:Key="title_threads_sysinfo">Threads:</v:String>
<v:String x:Key="title_gpu_sysinfo">Gráficos:</v:String>
+ <v:String x:Key="title_refreshrate_sysinfo">Taxa de atualização:</v:String>
<v:String x:Key="title_ram_sysinfo">Memória:</v:String>
<v:String x:Key="title_mtype_sysinfo">Tipo de Memória:</v:String>
<v:String x:Key="title_storage_sysinfo">Dispositivos de armazenamento:</v:String>
@@ -553,3 +554,4 @@
+
diff --git a/.Source/GTweak/Languages/ru/Localize.xaml b/.Source/GTweak/Languages/ru/Localize.xaml
index c5d7652e..d9ceca57 100644
--- a/.Source/GTweak/Languages/ru/Localize.xaml
+++ b/.Source/GTweak/Languages/ru/Localize.xaml
@@ -516,7 +516,8 @@
<v:String x:Key="title_cpu_sysinfo">Процессор:</v:String>
<v:String x:Key="title_cores_sysinfo">Ядра:</v:String>
<v:String x:Key="title_threads_sysinfo">Потоки:</v:String>
- <v:String x:Key="title_gpu_sysinfo">Видеокарта:</v:String>
+ <v:String x:Key="title_gpu_sysinfo">Графика:</v:String>
+ <v:String x:Key="title_refreshrate_sysinfo">Частота обновления:</v:String>
<v:String x:Key="title_ram_sysinfo">Оперативная память:</v:String>
<v:String x:Key="title_mtype_sysinfo">Тип памяти:</v:String>
<v:String x:Key="title_storage_sysinfo">Устройства хранения данных:</v:String>
@@ -550,3 +551,4 @@
+
diff --git a/.Source/GTweak/Languages/uk/Localize.xaml b/.Source/GTweak/Languages/uk/Localize.xaml
index 188f703f..c334afc7 100644
--- a/.Source/GTweak/Languages/uk/Localize.xaml
+++ b/.Source/GTweak/Languages/uk/Localize.xaml
@@ -516,7 +516,8 @@
<v:String x:Key="title_cpu_sysinfo">Процесор:</v:String>
<v:String x:Key="title_cores_sysinfo">Ядра:</v:String>
<v:String x:Key="title_threads_sysinfo">Потоки:</v:String>
- <v:String x:Key="title_gpu_sysinfo">Відеокарта:</v:String>
+ <v:String x:Key="title_gpu_sysinfo">Графіка:</v:String>
+ <v:String x:Key="title_refreshrate_sysinfo">Частота оновлення:</v:String>
<v:String x:Key="title_ram_sysinfo">Оперативна пам’ять:</v:String>
<v:String x:Key="title_mtype_sysinfo">Тип пам'яті:</v:String>
<v:String x:Key="title_storage_sysinfo">Пристрої зберігання даних:</v:String>
@@ -550,3 +551,4 @@
+
diff --git a/.Source/GTweak/Languages/zh-CN/Localize.xaml b/.Source/GTweak/Languages/zh-CN/Localize.xaml
index 338b432f..5f675acb 100644
--- a/.Source/GTweak/Languages/zh-CN/Localize.xaml
+++ b/.Source/GTweak/Languages/zh-CN/Localize.xaml
@@ -517,6 +517,7 @@
<v:String x:Key="title_cores_sysinfo">核心数:</v:String>
<v:String x:Key="title_threads_sysinfo">运行绪数:</v:String>
<v:String x:Key="title_gpu_sysinfo">显卡:</v:String>
+ <v:String x:Key="title_refreshrate_sysinfo">刷新率:</v:String>
<v:String x:Key="title_ram_sysinfo">内存:</v:String>
<v:String x:Key="title_mtype_sysinfo">内存类型:</v:String>
<v:String x:Key="title_storage_sysinfo">存储设备:</v:String>
@@ -550,3 +551,4 @@
+
diff --git a/.Source/GTweak/Languages/zh-TW/Localize.xaml b/.Source/GTweak/Languages/zh-TW/Localize.xaml
index 0ae08b66..4038ab25 100644
--- a/.Source/GTweak/Languages/zh-TW/Localize.xaml
+++ b/.Source/GTweak/Languages/zh-TW/Localize.xaml
@@ -517,6 +517,7 @@
<v:String x:Key="title_cores_sysinfo">核心數:</v:String>
<v:String x:Key="title_threads_sysinfo">執行緒數:</v:String>
<v:String x:Key="title_gpu_sysinfo">顯示卡:</v:String>
+ <v:String x:Key="title_refreshrate_sysinfo">螢幕刷新率:</v:String>
<v:String x:Key="title_ram_sysinfo">記憶體:</v:String>
<v:String x:Key="title_mtype_sysinfo">記憶體類型:</v:String>
<v:String x:Key="title_storage_sysinfo">儲存裝置:</v:String>
@@ -552,3 +553,4 @@
+
diff --git a/.Source/GTweak/Utilities/Configuration/HardwareData.cs b/.Source/GTweak/Utilities/Configuration/HardwareData.cs
index f99e0bc5..61ac5a58 100644
--- a/.Source/GTweak/Utilities/Configuration/HardwareData.cs
+++ b/.Source/GTweak/Utilities/Configuration/HardwareData.cs
@@ -44,6 +44,7 @@ namespace GTweak.Utilities.Configuration
internal static ProcessorInfo Processor { get; set; } = new ProcessorInfo();
internal static string Motherboard { get; set; } = string.Empty;
internal static string Graphics { get; set; } = string.Empty;
+ internal static string MonitorRefreshRate { get; set; } = string.Empty;
internal static MemoryInfo Memory { get; set; } = new MemoryInfo();
internal static string Storage { get; set; } = string.Empty;
internal static string AudioDevice { get; set; } = string.Empty;
diff --git a/.Source/GTweak/Utilities/Configuration/HardwareProvider.cs b/.Source/GTweak/Utilities/Configuration/HardwareProvider.cs
index d008b987..a447a207 100644
--- a/.Source/GTweak/Utilities/Configuration/HardwareProvider.cs
+++ b/.Source/GTweak/Utilities/Configuration/HardwareProvider.cs
@@ -86,6 +86,7 @@ namespace GTweak.Utilities.Configuration
() => GetMotherboardInfo(),
() => GetProcessorInfo(),
() => GetGraphicsInfo(),
+ () => GetPrimaryRefreshRate(),
() => GetMemoryInfo(),
() => RefreshDevicesData(),
() => GetUserIpAddress().GetAwaiter().GetResult()
diff --git a/.Source/GTweak/Utilities/Configuration/MonitoringProvider.cs b/.Source/GTweak/Utilities/Configuration/MonitoringProvider.cs
index 98b3c5d9..41ab2c09 100644
--- a/.Source/GTweak/Utilities/Configuration/MonitoringProvider.cs
+++ b/.Source/GTweak/Utilities/Configuration/MonitoringProvider.cs
@@ -8,6 +8,7 @@ using System.ServiceProcess;
using System.Threading;
using System.Threading.Tasks;
using GTweak.Utilities.Controls;
+using Microsoft.Win32;
namespace GTweak.Utilities.Configuration
{
@@ -19,6 +20,43 @@ namespace GTweak.Utilities.Configuration
internal enum DeviceType { All, Storage, Audio, Network }
+ [StructLayout(LayoutKind.Sequential)]
+ private struct DEVMODE
+ {
+ private const int CCHDEVICENAME = 32;
+ private const int CCHFORMNAME = 32;
+
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = CCHDEVICENAME)]
+ internal string dmDeviceName;
+ internal short dmSpecVersion;
+ internal short dmDriverVersion;
+ internal short dmSize;
+ internal short dmDriverExtra;
+ internal int dmFields;
+
+ internal int dmPositionX;
+ internal int dmPositionY;
+ internal int dmDisplayOrientation;
+ internal int dmDisplayFixedOutput;
+
+ internal short dmColor;
+ internal short dmDuplex;
+ internal short dmYResolution;
+ internal short dmTTOption;
+ internal short dmCollate;
+
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = CCHFORMNAME)]
+ internal string dmFormName;
+
+ internal short dmLogPixels;
+ internal int dmBitsPerPel;
+ internal int dmPelsWidth;
+ internal int dmPelsHeight;
+
+ internal int dmDisplayFlags;
+ internal int dmDisplayFrequency;
+ }
+
[StructLayout(LayoutKind.Sequential)]
private struct SystemTime
{
@@ -41,6 +79,9 @@ namespace GTweak.Utilities.Configuration
internal MemoryStatus() => dwLength = (uint)Marshal.SizeOf(typeof(MemoryStatus));
}
+ [DllImport("user32.dll")]
+ private static extern bool EnumDisplaySettings(string deviceName, int modeNum, ref DEVMODE devMode);
+
[DllImport("psapi.dll", SetLastError = true)]
private static extern bool EnumProcesses([Out] uint[] lpidProcess, uint cb, out uint lpcbNeeded);
@@ -171,6 +212,16 @@ namespace GTweak.Utilities.Configuration
}
}
+ internal void GetPrimaryRefreshRate()
+ {
+ DEVMODE vDevMode = new DEVMODE
+ {
+ dmSize = (short)Marshal.SizeOf(typeof(DEVMODE))
+ };
+
+ MonitorRefreshRate = EnumDisplaySettings(null, -1, ref vDevMode) && vDevMode.dmDisplayFrequency > 0 ? $"{vDevMode.dmDisplayFrequency} Hz" : string.Empty;
+ }
+
internal async Task StartDeviceMonitoring()
{
await Task.WhenAll(new List<(string filter, DeviceType type, string scope)>
@@ -179,8 +230,12 @@ namespace GTweak.Utilities.Configuration
("TargetInstance ISA 'Win32_SoundDevice'", DeviceType.Audio, null),
("TargetInstance ISA 'Win32_NetworkAdapter' AND TargetInstance.NetConnectionStatus IS NOT NULL", DeviceType.Network, null)
}.Select(device => Task.Run(() => SubscribeToDeviceEvents(device.filter, device.type, device.scope))).ToArray());
+
+ SystemEvents.DisplaySettingsChanged += OnDisplaySettingsChanged;
}
+ private void OnDisplaySettingsChanged(object sender, EventArgs e) => GetPrimaryRefreshRate();
+
private async Task SubscribeToDeviceEvents(string filter, DeviceType type, string scope)
{
try
@@ -215,6 +270,7 @@ namespace GTweak.Utilities.Configuration
catch (Exception ex) { ErrorLogging.LogDebug(ex); }
}
_watcherHandler.Clear();
+ SystemEvents.DisplaySettingsChanged -= OnDisplaySettingsChanged;
}
}
}
diff --git a/.Source/GTweak/View/DataSystemView.xaml b/.Source/GTweak/View/DataSystemView.xaml
index a4603cc9..3ec1349f 100644
--- a/.Source/GTweak/View/DataSystemView.xaml
+++ b/.Source/GTweak/View/DataSystemView.xaml
@@ -234,7 +234,11 @@
</StackPanel>
</Grid>
</Border>
- <TextBlock Text="{Binding [Graphics].Data}" Style="{StaticResource TextDefault}" HorizontalAlignment="Left" Margin="5,1,0,0" Foreground="{StaticResource Brush_Highlighted}" Height="Auto" Width="Auto" PreviewMouseLeftButtonDown="HandleCopyingData_PreviewMouseDown" Cursor="Hand"/>
+ <TextBlock Style="{StaticResource TextDefault}" HorizontalAlignment="Left" Margin="5,1,0,0" Foreground="{StaticResource Brush_Highlighted}" Height="Auto" Width="Auto">
+ <Run Text="{Binding [Graphics].Data}" PreviewMouseDown="HandleCopyingData_PreviewMouseDown" Cursor="Hand"/><LineBreak/>
+ <Run Text="{DynamicResource title_refreshrate_sysinfo}" Foreground="{StaticResource Brush_Accent}"/>
+ <Run Text="{Binding [RefreshRate].Data}"/>
+ </TextBlock>
</StackPanel>
<StackPanel Orientation="Vertical" Margin="0,20,0,0">
diff --git a/.Source/GTweak/Windows/MainWindow.xaml b/.Source/GTweak/Windows/MainWindow.xaml
index e7ffe69c..39dc82a9 100644
--- a/.Source/GTweak/Windows/MainWindow.xaml
+++ b/.Source/GTweak/Windows/MainWindow.xaml
@@ -148,11 +148,7 @@
<uc:FlowPanel ContentAlignment="Left" Orientation="Horizontal" HorizontalSpacing="10" VerticalSpacing="5" Margin="40,10,5,0">
<TextBlock Style="{StaticResource TextDefault}" Text="{DynamicResource cmbox_lang_main}" Margin="0,5,0,0"/>
- <ComboBox Style="{StaticResource CustomComboBoxStyle}" Height="32" ItemsSource="{Binding Languages}" SelectedValue="{Binding SelectedLanguage, Mode=TwoWay}" SelectedValuePath="Code" DisplayMemberPath="Display">
- <ComboBox.CacheMode>
- <BitmapCache RenderAtScale="2" EnableClearType="True"/>
- </ComboBox.CacheMode>
- </ComboBox>
+ <ComboBox Style="{StaticResource CustomComboBoxStyle}" Height="32" ItemsSource="{Binding Languages}" SelectedValue="{Binding SelectedLanguage, Mode=TwoWay}" SelectedValuePath="Code" DisplayMemberPath="Display"/>
</uc:FlowPanel>
<Border Background="{StaticResource Brush_Separator}" Height="1.2" Width="330" VerticalAlignment="Bottom" CornerRadius="10" Margin="0,10,0,0"/>