This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 \ |