-
-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate all light effects from whole keyboard effects
- Loading branch information
1 parent
68f341e
commit 048f6fe
Showing
7 changed files
with
80 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
LenovoLegionToolkit.Lib/Extensions/SpectrumKeyboardBacklightEffectTypeExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace LenovoLegionToolkit.Lib.Extensions; | ||
|
||
public static class SpectrumKeyboardBacklightEffectTypeExtensions | ||
{ | ||
|
||
public static bool IsAllLightsEffect(this SpectrumKeyboardBacklightEffectType type) => type switch | ||
{ | ||
SpectrumKeyboardBacklightEffectType.AudioBounce => true, | ||
SpectrumKeyboardBacklightEffectType.AudioRipple => true, | ||
SpectrumKeyboardBacklightEffectType.AuroraSync => true, | ||
_ => false | ||
}; | ||
|
||
public static bool IsWholeKeyboardEffect(this SpectrumKeyboardBacklightEffectType type) => type switch | ||
{ | ||
SpectrumKeyboardBacklightEffectType.Type => true, | ||
SpectrumKeyboardBacklightEffectType.Ripple => true, | ||
_ => false | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters