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 botratio = timeratio.TotalMilliseconds;
double topratio = TimeSpan.FromSeconds(idleDisconnectTimeout).TotalMilliseconds; double topratio = TimeSpan.FromSeconds(idleDisconnectTimeout).TotalMilliseconds;
double ratio = 100.0 * (botratio / topratio); 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)); color = getTransitionedColor(color, new DS4Color(0, 0, 0), (uint)((ratio - 50) * 2));
else if (ratio >= 100.0) else if (ratio >= 100.0)
color = getTransitionedColor(color, new DS4Color(0, 0, 0), 100.0); color = getTransitionedColor(color, new DS4Color(0, 0, 0), 100.0);

View File

@ -1121,7 +1121,7 @@ namespace DS4Windows.Properties {
} }
/// <summary> /// <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> /// </summary>
internal static string LightByBatteryTip { internal static string LightByBatteryTip {
get { get {

View File

@ -614,7 +614,7 @@
<value>Use Sixaxis to help calculate touchpad movement</value> <value>Use Sixaxis to help calculate touchpad movement</value>
</data> </data>
<data name="LightByBatteryTip" xml:space="preserve"> <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>
<data name="Macro" xml:space="preserve"> <data name="Macro" xml:space="preserve">
<value>Macro</value> <value>Macro</value>