Skip to content

Commit

Permalink
Merge branch 'robin840211-master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskohl committed Jul 6, 2021
2 parents 423f7ef + ae4ae43 commit 910e621
Show file tree
Hide file tree
Showing 7 changed files with 356 additions and 11 deletions.
1 change: 1 addition & 0 deletions CapsLockIndicatorV3/CapsLockIndicatorV3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
<EmbeddedResource Include="strings.ru.resx" />
<EmbeddedResource Include="strings.tr-TR.resx" />
<EmbeddedResource Include="strings.zh-CN.resx" />
<EmbeddedResource Include="strings.zh-TW.resx" />
<EmbeddedResource Include="UpdateDialog.resx">
<DependentUpon>UpdateDialog.cs</DependentUpon>
</EmbeddedResource>
Expand Down
4 changes: 2 additions & 2 deletions CapsLockIndicatorV3/MColorPicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,15 @@ protected override IntPtr HookProc(IntPtr hWnd, int msg, IntPtr wparam, IntPtr l

private void PrepareDarkMode(IntPtr hWnd)
{
if (!SettingsManager.Get<bool>("beta_enableDarkMode"))
if (!SettingsManager.Get<bool>("darkMode"))
return;

Native.UseImmersiveDarkModeColors(hWnd, true);
}

private void DarkMode()
{
if (!SettingsManager.Get<bool>("beta_enableDarkMode"))
if (!SettingsManager.Get<bool>("darkMode"))
return;

Native.SetDarkMode(hWndOK, true);
Expand Down
8 changes: 4 additions & 4 deletions CapsLockIndicatorV3/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,10 @@ private void AddCultures()
else
{
localeComboBox.Items.Add(new DropDownLocale(c.Name, c.NativeName));

if (c.TwoLetterISOLanguageName == Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName)
if (c.Name.Length > 2 ? c.Name == Thread.CurrentThread.CurrentUICulture.Name : c.TwoLetterISOLanguageName == Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName)
selectIndex = index;

// if (c.TwoLetterISOLanguageName == Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName)
index++;
}
}
Expand All @@ -252,7 +252,7 @@ private void AddCultures()
selectIndex = legacySelectedUICulture;
}

var cultureCodes = cultures.Select(c => c.TwoLetterISOLanguageName);
var cultureCodes = cultures.Select(c => c.Name.Length > 2 ? c.Name : c.TwoLetterISOLanguageName);
var selLang = SettingsManager.Get<string>("selectedLanguage");

if (selLang == "")
Expand Down
4 changes: 2 additions & 2 deletions CapsLockIndicatorV3/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("3.11.1.0")]
[assembly: AssemblyFileVersion("3.11.1.0")]
[assembly: AssemblyVersion("3.11.1.1")]
[assembly: AssemblyFileVersion("3.11.1.1")]
[assembly: Guid ("6f54c357-0542-4d7d-9225-338bc3cd7834")]
3 changes: 1 addition & 2 deletions CapsLockIndicatorV3/Resources/defaultSettings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ c:indFgColourInactive=255;255;255;255
c:indBdColourInactive=255;180;52;77
f:indFont=Segoe UI; 12pt
i:indDisplayTime=500
i:selectedUICulture=0
i:indOpacity=100
i:bdSize=4
s:versionNo=3.10.0.0
s:versionNo=3.11.1.1
s:overlayPosition=BottomRight
s:customMessageCapsOn=
s:customMessageCapsOff=
Expand Down
2 changes: 1 addition & 1 deletion CapsLockIndicatorV3/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<value>77, 180, 52</value>
</setting>
<setting name="versionNo" serializeAs="String">
<value>3.8.0.1</value>
<value>3.11.1.1</value>
</setting>
<setting name="hideOnStartup" serializeAs="String">
<value>False</value>
Expand Down
Loading

0 comments on commit 910e621

Please sign in to comment.