Added toggle switch widget.
This commit is contained in:
@@ -29,7 +29,7 @@ void DrawBox(uint32_t topleft_x_loc, uint32_t topleft_y_loc, uint32_t width, uin
|
||||
|
||||
void draw_toggle_switch(volatile pixel_t *const framebuffer, const toggle_switch_t *const toggle_switch)
|
||||
{
|
||||
const uint16_t default_width = 50;
|
||||
const uint16_t default_width = 40;
|
||||
const uint16_t default_height = 20;
|
||||
const pixel_t default_on_color = MAKE_PIXEL(0, 255, 0);
|
||||
const pixel_t default_off_color = MAKE_PIXEL(160, 20, 20);
|
||||
|
||||
Reference in New Issue
Block a user