-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have ColormapOverlay behave more like Colormap #1427
Conversation
Signed-off-by: Evy Bongers <[email protected]>
Signed-off-by: Evy Bongers <[email protected]>
Signed-off-by: Evy Bongers <[email protected]>
Signed-off-by: Evy Bongers <[email protected]>
plugins/Kaleidoscope-Colormap-Overlay/src/kaleidoscope/plugin/Colormap-Overlay.h
Outdated
Show resolved
Hide resolved
plugins/Kaleidoscope-Colormap-Overlay/src/kaleidoscope/plugin/Colormap-Overlay.h
Outdated
Show resolved
Hide resolved
#define COLORMAP_OVERLAYS_MAP(layers...) \ | ||
namespace kaleidoscope { \ | ||
namespace plugin { \ | ||
const uint8_t overlays_[][kaleidoscope_internal::device.matrix_rows * kaleidoscope_internal::device.matrix_columns] = { \ | ||
layers \ | ||
}; \ | ||
ColormapOverlay.configureOverlays(overlays_); \ | ||
} /* plugin */ \ | ||
} /* kaleidoscope */ | ||
|
||
#define __IDENTITY__(X) X | ||
|
||
#ifdef PER_KEY_DATA_STACKED | ||
#define COLORMAP_OVERLAY_STACKED(...) \ | ||
{ \ | ||
MAP_LIST(__IDENTITY__, PER_KEY_DATA_STACKED(0, __VA_ARGS__)) \ | ||
} | ||
#endif | ||
|
||
#ifdef PER_KEY_DATA | ||
#define COLORMAP_OVERLAY(...) \ | ||
{ \ | ||
MAP_LIST(__IDENTITY__, PER_KEY_DATA(0, __VA_ARGS__)) \ | ||
} | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is mostly copy/paste from DefaultColormap. I'm wondering if the namespaces need to be specified like they are 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm. I guess test it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't felt motivated to pursue this and messing with it could open a can of worms, so I just marked the PR ready to be merged. If I end up pursuing this, I'll do so in a separate PR.
Signed-off-by: Evy Bongers <[email protected]>
Signed-off-by: Evy Bongers <[email protected]>
plugins/Kaleidoscope-Colormap-Overlay/src/kaleidoscope/plugin/Colormap-Overlay.h
Outdated
Show resolved
Hide resolved
Signed-off-by: Evy Bongers <[email protected]>
Signed-off-by: Evy Bongers <[email protected]>
Adding support for specifying color overlays in a similar was as Colormap
Yet to do:
Fixes #1424