summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-10-28 09:50:14 +1100
committerGitHub <noreply@github.com>2022-10-27 23:50:14 +0100
commit7407347be1df69928d27ea9b6a4fe094429f2a55 (patch)
treee511be10ad74c60b54ce1839cbf3db767466275a /users
parenta96a9fd5f8d1db141bc4d5083b63267aac035adf (diff)
Remove rgblight_list.h (#18878)
* Remove rgblight_list defines with no usage * Remove rgblight_setrgb_*[_at] defines * Remove rgblight_sethsv_* defines * Remove rgblight_sethsv_noeeprom_* defines * Delete rgblight_list.h and remove all references
Diffstat (limited to 'users')
-rw-r--r--users/brandonschlack/rgb_theme.h1
-rw-r--r--users/curry/curry.c2
-rw-r--r--users/greatwizard/underglow.c16
-rw-r--r--users/kuchosauronad0/kuchosauronad0.c2
-rw-r--r--users/kuchosauronad0/leader.c2
-rw-r--r--users/kuchosauronad0/rgblight_user.c18
-rw-r--r--users/peej/peej.c2
-rw-r--r--users/twschum/twschum.c1
-rw-r--r--users/wanleg/wanleg.c2
9 files changed, 22 insertions, 24 deletions
diff --git a/users/brandonschlack/rgb_theme.h b/users/brandonschlack/rgb_theme.h
index 7c8b2923fc..cf9b681de6 100644
--- a/users/brandonschlack/rgb_theme.h
+++ b/users/brandonschlack/rgb_theme.h
@@ -17,7 +17,6 @@
#include "brandonschlack.h"
#include "color.h"
-#include "rgblight_list.h"
/*TODO Update as RGBLIGHT Mode */
#ifndef RGB_THEME_COLORS_MAX
diff --git a/users/curry/curry.c b/users/curry/curry.c
index a9f9f79870..f29b9c3ff7 100644
--- a/users/curry/curry.c
+++ b/users/curry/curry.c
@@ -58,7 +58,7 @@ void shutdown_user(void) {
#if defined(RGBLIGHT_ENABLE)
rgblight_enable_noeeprom();
rgblight_mode_noeeprom(1);
- rgblight_setrgb_red();
+ rgblight_setrgb(RGB_RED);
#endif
#if defined(RGB_MATRIX_ENABLE)
diff --git a/users/greatwizard/underglow.c b/users/greatwizard/underglow.c
index db31290acd..c23fb5bc51 100644
--- a/users/greatwizard/underglow.c
+++ b/users/greatwizard/underglow.c
@@ -22,7 +22,7 @@ void keyboard_post_init_rgb(void) {
return;
}
rgblight_enable_noeeprom();
- rgblight_sethsv_noeeprom_orange();
+ rgblight_sethsv_noeeprom(HSV_ORANGE);
rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);
}
@@ -64,31 +64,31 @@ layer_state_t layer_state_set_rgb(layer_state_t state) {
#ifdef LAYERS_PROGRAMMER
case _PROGRAMMER_SHIFTED:
#endif
- rgblight_sethsv_noeeprom_orange();
+ rgblight_sethsv_noeeprom(HSV_ORANGE);
break;
#ifdef LAYERS_ORTHO
case _LOWER:
- rgblight_sethsv_noeeprom_red();
+ rgblight_sethsv_noeeprom(HSV_RED);
break;
case _RAISE:
- rgblight_sethsv_noeeprom_blue();
+ rgblight_sethsv_noeeprom(HSV_BLUE);
break;
case _ADJUST:
- rgblight_sethsv_noeeprom_purple();
+ rgblight_sethsv_noeeprom(HSV_PURPLE);
break;
#endif
#ifdef LAYER_FN
case _FN:
- rgblight_sethsv_noeeprom_chartreuse();
+ rgblight_sethsv_noeeprom(HSV_CHARTREUSE);
break;
#endif
#ifdef LAYER_GIT
case _GIT:
- rgblight_sethsv_noeeprom_teal();
+ rgblight_sethsv_noeeprom(HSV_TEAL);
break;
#endif
default:
- rgblight_sethsv_noeeprom_white();
+ rgblight_sethsv_noeeprom(HSV_WHITE);
break;
}
return state;
diff --git a/users/kuchosauronad0/kuchosauronad0.c b/users/kuchosauronad0/kuchosauronad0.c
index 820d84daad..4e9e856107 100644
--- a/users/kuchosauronad0/kuchosauronad0.c
+++ b/users/kuchosauronad0/kuchosauronad0.c
@@ -69,7 +69,7 @@ void shutdown_user (void) {
#ifdef RGBLIGHT_ENABLE
rgblight_enable_noeeprom();
rgblight_mode_noeeprom(1);
- rgblight_setrgb_teal();
+ rgblight_setrgb(RGB_TEAL);
#endif // RGBLIGHT_ENABLE
#ifdef RGB_MATRIX_ENABLE
// uint16_t timer_start = timer_read();
diff --git a/users/kuchosauronad0/leader.c b/users/kuchosauronad0/leader.c
index 22674eef05..ac2a6599a1 100644
--- a/users/kuchosauronad0/leader.c
+++ b/users/kuchosauronad0/leader.c
@@ -97,7 +97,7 @@ void leader_start(void) {
#ifdef RGBLIGHT_ENABLE
rgblight_savebase();
rgblight_mode_noeeprom(1);
- rgblight_sethsv_noeeprom_goldenrod();
+ rgblight_sethsv_noeeprom(HSV_GOLDENROD);
#endif
}
diff --git a/users/kuchosauronad0/rgblight_user.c b/users/kuchosauronad0/rgblight_user.c
index feea0c412f..77a8ac6df8 100644
--- a/users/kuchosauronad0/rgblight_user.c
+++ b/users/kuchosauronad0/rgblight_user.c
@@ -86,36 +86,36 @@ layer_state_t layer_state_set_rgb(layer_state_t state) {
if (userspace_config.rgb_layer_change) {
switch (get_highest_layer(state)) { // _RAISE, _LOWER and _ADJUST use a custom color and the breathing effect
case _RAISE:
- rgblight_sethsv_noeeprom_green();
+ rgblight_sethsv_noeeprom(HSV_GREEN);
rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING + 3);
break;
case _LOWER:
- rgblight_sethsv_noeeprom_red();
+ rgblight_sethsv_noeeprom(HSV_RED);
rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING + 3);
break;
case _ADJUST:
- rgblight_sethsv_noeeprom_white();
+ rgblight_sethsv_noeeprom(HSV_WHITE);
rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING + 2);
break;
default: // Use a solid color for normal layers
switch (get_highest_layer(default_layer_state)) {
case _QWERTY:
- rgblight_sethsv_noeeprom_magenta();
+ rgblight_sethsv_noeeprom(HSV_MAGENTA);
break;
case _COLEMAK:
- rgblight_sethsv_noeeprom_green();
+ rgblight_sethsv_noeeprom(HSV_GREEN);
break;
case _DVORAK:
- rgblight_sethsv_noeeprom_blue();
+ rgblight_sethsv_noeeprom(HSV_BLUE);
break;
case _WORKMAN:
- rgblight_sethsv_noeeprom_goldenrod();
+ rgblight_sethsv_noeeprom(HSV_GOLDENROD);
break;
case _PLOVER:
- rgblight_sethsv_noeeprom_pink();
+ rgblight_sethsv_noeeprom(HSV_PINK);
break;
default:
- rgblight_sethsv_noeeprom_white();
+ rgblight_sethsv_noeeprom(HSV_WHITE);
break;
}
get_highest_layer(state) == _MODS ? rgblight_mode_noeeprom(RGBLIGHT_MODE_BREATHING) : rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); // if _MODS layer is on, then breath to denote it
diff --git a/users/peej/peej.c b/users/peej/peej.c
index c4ea4f87b1..bd9264ea60 100644
--- a/users/peej/peej.c
+++ b/users/peej/peej.c
@@ -57,7 +57,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#ifdef RGBLIGHT_ENABLE
rgblight_enable_noeeprom();
rgblight_mode_noeeprom(1);
- rgblight_setrgb_red();
+ rgblight_setrgb(RGB_RED);
#endif
reset_keyboard();
break;
diff --git a/users/twschum/twschum.c b/users/twschum/twschum.c
index 7f1cb3de78..f0ae1e65a9 100644
--- a/users/twschum/twschum.c
+++ b/users/twschum/twschum.c
@@ -97,7 +97,6 @@ static inline bool tap_ctrl_other_pressed(void) {
/* Use RGB underglow to indicate layer
* https://docs.qmk.fm/reference/customizing-functionality
*/
-// add to quantum/rgblight_list.h
#ifdef RGBLIGHT_ENABLE
static bool rgb_layers_enabled = true;
static bool rgb_L0_enabled = false;
diff --git a/users/wanleg/wanleg.c b/users/wanleg/wanleg.c
index aa7b1c9a4c..b056f5dd96 100644
--- a/users/wanleg/wanleg.c
+++ b/users/wanleg/wanleg.c
@@ -129,7 +129,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#if defined(RGBLIGHT_ENABLE)
rgblight_enable_noeeprom(); // enables Rgb, without saving settings
rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT);
- rgblight_sethsv_noeeprom_red();
+ rgblight_sethsv_noeeprom(HSV_RED);
#endif
}
return true; // Let QMK send the press/release events as normal