Skip to content

Instantly share code, notes, and snippets.

View unwieldycat's full-sized avatar

Alex Yates unwieldycat

  • 11:37 (UTC -04:00)
View GitHub Profile
@unwieldycat
unwieldycat / turnin.css
Created December 7, 2023 13:24
Stylesheet to make the Google Docs Turn-in button consistent with Material UI 3
/*
Stylesheet to make the Google Docs "Turn In" button Material UI 3
By default, the button will be made an outline button, but you can also make
it a tonal button by commenting out the outline button blocks and
uncommenting the tonal button blocks.
This can be used with a css injector or as an Arc boost.
*/
@unwieldycat
unwieldycat / dropdownstyle.cpp
Created October 17, 2023 14:33
Macro to add a style to the main part of an LVGL dropdown list
#define DROPDOWN_ADD_STYLE(dropdown, style) \
{ \
lv_obj_add_event_cb( \
dropdown, \
[](lv_event_t *event) { \
lv_obj_t *listobj = lv_dropdown_get_list(dropdown); \
if (!listobj) return; \
lv_obj_add_style(listobj, style, LV_PART_MAIN); \
}, \
LV_EVENT_FOCUSED, NULL \