From 44277cb26533fd934e9842b2fbc18a5beaca55ab Mon Sep 17 00:00:00 2001 From: Rory Hayes Date: Mon, 16 Jul 2018 23:39:34 -0700 Subject: [PATCH] add battery icon to powerbutton menu --- 8bkc-components/powerbtn_menu/component.mk | 2 +- 8bkc-components/powerbtn_menu/graphics.xcf | Bin 38206 -> 38843 bytes 8bkc-components/powerbtn_menu/powerbtn_menu.c | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/8bkc-components/powerbtn_menu/component.mk b/8bkc-components/powerbtn_menu/component.mk index 10493e4..63bdffb 100644 --- a/8bkc-components/powerbtn_menu/component.mk +++ b/8bkc-components/powerbtn_menu/component.mk @@ -13,5 +13,5 @@ COMPONENTS_EXTRA_CLEAN := graphics.inc graphics.rgba powerbtn_menu.o: graphics.inc graphics.inc: $(COMPONENT_PATH)/graphics.xcf - convert $^ -background none -layers flatten -crop 80x142+0+0 graphics.rgba + convert $^ -background none -layers flatten -crop 80x150+0+0 graphics.rgba cat graphics.rgba | xxd -i > graphics.inc diff --git a/8bkc-components/powerbtn_menu/graphics.xcf b/8bkc-components/powerbtn_menu/graphics.xcf index e865e32bba32f5cd17fc4ea1ce35b536ae7db6a3..832084a5bfab7c36ad67a5872c7a00c17878da8d 100644 GIT binary patch literal 38843 zcmeHv349erwtjWp1VRWB9o$hbo8kfl2WOBGz1_%&8$=Ox6g2??L?Pip5O8o3cb~G2 z%jlcu{3r9~_uhyiB5o*)5dlHAC_5r1gq=V_faK=p-rMgxb-KFyCaBEf{O2hRo&Ngt zSEo)@ovJ!j-N}gD(PM%WhYk-8&mEN`aNL6PcLZ>piqkOg<0m*%tQkVkiK7k9B%CEU z&u}pD&J^N`$+*%%&s$ozUVmM`+xqt%IM9`WC+S%LC#CrrT|>K}I|B$0L-oZjHj~nU zi%4#mDJ8<{uCO#)%@Ee*6G<-3bfo=hn6RNRY1HzbX^e?~r81uN^io(V{l9oxaa6un z5p?WfER}5<7b7pt@vsav##|Od$r&?8W3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^Zt&Kcl^j G(EkD1j*U?O diff --git a/8bkc-components/powerbtn_menu/powerbtn_menu.c b/8bkc-components/powerbtn_menu/powerbtn_menu.c index f5c9d13..298ad2c 100644 --- a/8bkc-components/powerbtn_menu/powerbtn_menu.c +++ b/8bkc-components/powerbtn_menu/powerbtn_menu.c @@ -171,6 +171,20 @@ int powerbtn_menu_show(uint16_t *fb) { if (v>255) v=255; renderGfx(fb, 14, 25+16, 14, 130, (v*60)/256, 4); } + + // draw empty battery cell + renderGfx(fb, KC_SCREEN_W-16, 0, 0, 142, 16, 7); + + // fill in the battery with appropriate color + int batPct = kchal_get_bat_pct(); + if (batPct < 20) renderGfx(fb, KC_SCREEN_W-15, 1, 17, 143, (batPct*12)/100, 5); + else if (batPct < 50) renderGfx(fb, KC_SCREEN_W-15, 1, 33, 143, (batPct*12)/100, 5); + else renderGfx(fb, KC_SCREEN_W-15, 1, 49, 143, (batPct*12)/100, 5); + + // add lightning bolt icon if applicable + if (kchal_get_chg_status() > 0) { + renderGfx(fb, KC_SCREEN_W-11, 0, 64, 142, 6, 8); + } if (doRefresh) { kchal_send_fb(fb);