Minor updates for lightbar dimming

This commit is contained in:
Travis Nickles 2017-05-27 07:05:46 -07:00
parent f5f0b8fe93
commit ba4bd72755
3 changed files with 3 additions and 3 deletions

View File

@ -153,7 +153,7 @@ namespace DS4Windows
double botratio = timeratio.TotalMilliseconds;
double topratio = TimeSpan.FromSeconds(idleDisconnectTimeout).TotalMilliseconds;
double ratio = 100.0 * (botratio / topratio);
if (ratio >= 50.0 && ratio <= 100.0)
if (ratio >= 50.0 && ratio < 100.0)
color = getTransitionedColor(color, new DS4Color(0, 0, 0), (uint)((ratio - 50) * 2));
else if (ratio >= 100.0)
color = getTransitionedColor(color, new DS4Color(0, 0, 0), 100.0);

View File

@ -1121,7 +1121,7 @@ namespace DS4Windows.Properties {
}
/// <summary>
/// Looks up a localized string similar to Also dim light by idle timeout if on.
/// Looks up a localized string similar to Also dim light by idle timeout if enabled when DS4 is fully charged.
/// </summary>
internal static string LightByBatteryTip {
get {

View File

@ -614,7 +614,7 @@
<value>Use Sixaxis to help calculate touchpad movement</value>
</data>
<data name="LightByBatteryTip" xml:space="preserve">
<value>Also dim light by idle timeout if on</value>
<value>Also dim light by idle timeout if enabled when DS4 is fully charged</value>
</data>
<data name="Macro" xml:space="preserve">
<value>Macro</value>