From f4ece3172ceac82bf95166ff20b3b09b84a7e01c Mon Sep 17 00:00:00 2001 From: skyloong Date: Wed, 12 Jul 2023 14:07:46 +0800 Subject: [PATCH] update RGB matrix effects --- v3/skyloong/dt40/dt40.json | 70 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 3 deletions(-) diff --git a/v3/skyloong/dt40/dt40.json b/v3/skyloong/dt40/dt40.json index 78295edc72..6673649573 100644 --- a/v3/skyloong/dt40/dt40.json +++ b/v3/skyloong/dt40/dt40.json @@ -4,7 +4,71 @@ "vendorId": "0x1EA7", "productId": "0x6040", "keycodes": ["qmk_lighting"], - "menus": ["qmk_rgb_matrix" ], + "menus": [ + { + "label": "Lighting", + "content": [ + { + "label": "Backlight", + "content": [ + { + "label": "Brightness", + "type": "range", + "options": [0, 255], + "content": ["id_qmk_rgb_matrix_brightness", 3, 1] + }, + { + "label": "Effect", + "type": "dropdown", + "content": ["id_qmk_rgb_matrix_effect", 3, 2], + "options": [ + "0-All Off", + "1-solid_color", + "2-alphas_mods", + "3-gradient_up_down", + "4-gradient_left_right", + "5-breathing", + "6-band_sat", + "7-band_pinwheel_sat", + "8-band_pinwheel_val", + "9-band_spiral_sat", + "10-band_spiral_val", + "11-cycle_all", + "12-cycle_left_right", + "13-cycle_up_down", + "14-cycle_out_in", + "15-cycle_out_in_dual", + "16-rainbow_moving_chevron", + "17-cycle_pinwheel", + "18-cycle_spiral", + "19-dual_beacon", + "20-raindrops", + "jellybean_raindrops", + "22-hue_breathing", + "23-hue_pendulum", + "24-hue_wave", + "25-pixel_rain", + "26-pixel_fractal" + ] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} != 0", + "label": "Effect Speed", + "type": "range", + "options": [0, 255], + "content": ["id_qmk_rgb_matrix_effect_speed", 3, 3] + }, + { + "showIf": "{id_qmk_rgb_matrix_effect} != 0 && {id_qmk_rgb_matrix_effect} != 21", + "label": "Color", + "type": "color", + "content": ["id_qmk_rgb_matrix_color", 3, 4] + } + ] + } + ] + } + ], "matrix": {"rows": 4, "cols": 11}, "layouts": { "keymap": [ @@ -88,13 +152,13 @@ "w": 1.25 }, "3,0", + "3,3", "3,1", - "3,2", { "c": "#aaaaaa", "w": 1.25 }, - "3,3", + "3,2", { "c": "#777777", "w": 3