aboutsummaryrefslogtreecommitdiffstats
path: root/users/xulkal/custom_rgb.c
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-09-17 12:28:02 -0500
committerDrashna Jaelre <drashna@live.com>2019-09-17 10:28:02 -0700
commitc427023b31f544771391b4cd22d797ee14cadac3 (patch)
tree25076e5bad3a6ab568280cd39feee3c731c99c7e /users/xulkal/custom_rgb.c
parent2493eecc7b318193263dc410fae9a010a6dde574 (diff)
downloadfirmware-c427023b31f544771391b4cd22d797ee14cadac3.tar.gz
firmware-c427023b31f544771391b4cd22d797ee14cadac3.tar.bz2
firmware-c427023b31f544771391b4cd22d797ee14cadac3.zip
[Keymap][Xulkal] User code update (#6752)
* Updating rgb menu behavior * Fixing toggle keycode to work how I want it * Enabling auto scroll timeout
Diffstat (limited to 'users/xulkal/custom_rgb.c')
-rw-r--r--users/xulkal/custom_rgb.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/users/xulkal/custom_rgb.c b/users/xulkal/custom_rgb.c
index 11bfad1d7..f68a7c56c 100644
--- a/users/xulkal/custom_rgb.c
+++ b/users/xulkal/custom_rgb.c
@@ -10,17 +10,17 @@ void rgb_matrix_increase_flags(void)
}
break;
case LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER: {
- rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
- rgb_matrix_set_color_all(0, 0, 0);
+ rgb_matrix_set_flags(LED_FLAG_NONE);
+ rgb_matrix_disable_noeeprom();
}
break;
case LED_FLAG_UNDERGLOW: {
- rgb_matrix_set_flags(LED_FLAG_NONE);
- rgb_matrix_disable_noeeprom();
+ rgb_matrix_set_flags(LED_FLAG_ALL);
+ rgb_matrix_set_color_all(0, 0, 0);
}
break;
default: {
- rgb_matrix_set_flags(LED_FLAG_ALL);
+ rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
rgb_matrix_enable_noeeprom();
}
break;
@@ -31,8 +31,8 @@ void rgb_matrix_decrease_flags(void)
{
switch (rgb_matrix_get_flags()) {
case LED_FLAG_ALL: {
- rgb_matrix_set_flags(LED_FLAG_NONE);
- rgb_matrix_disable_noeeprom();
+ rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
+ rgb_matrix_set_color_all(0, 0, 0);
}
break;
case LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER: {
@@ -41,12 +41,12 @@ void rgb_matrix_decrease_flags(void)
}
break;
case LED_FLAG_UNDERGLOW: {
- rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER);
- rgb_matrix_set_color_all(0, 0, 0);
+ rgb_matrix_set_flags(LED_FLAG_NONE);
+ rgb_matrix_disable_noeeprom();
}
break;
default: {
- rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
+ rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER);
rgb_matrix_enable_noeeprom();
}
break;