Skip to content

Commit

Permalink
BattCheck (Analog) -> BattAnalog due to 10 char length constraint (#37)
Browse files Browse the repository at this point in the history
* horus widget BattCheck(Analog): changing name to BattAnalog

* cosmetics

Co-authored-by: Shmuely <[email protected]>
  • Loading branch information
offer-shmuely and offer-shmuely-cognyte authored Dec 19, 2021
1 parent 3e27d75 commit f6f1772
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,10 @@ local function refresh(wgt, event, touchState)
end


-- debug
--lcd.setColor(CUSTOM_COLOR, lcd.RGB(0, 150, 0))
--lcd.drawRectangle(wgt.zone.x, wgt.zone.y, wgt.zone.w, wgt.zone.h, BLACK)

if (event ~= nil) then
refreshFullScreen(wgt, event, touchState)
elseif wgt.zone.w > 380 and wgt.zone.h > 165 then
Expand All @@ -572,4 +576,5 @@ local function refresh(wgt, event, touchState)

end

return { name = "BattCheck (Analog)", options = _options, create = create, update = update, background = background, refresh = refresh }
-- return { name = "BattCheck (Analog)", options = _options, create = create, update = update, background = background, refresh = refresh }
return { name = "BattAnalog", options = _options, create = create, update = update, background = background, refresh = refresh }
2 changes: 1 addition & 1 deletion sdcard/horus/WIDGETS/Timer2/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ local function refresh(wgt, event, touchState)
local dx = (zone_w - ts_w) /2
local dy = timer_info_h -1
if (timer_info_h + ts_h > zone_h) and (zone_h < 50) then
log(string.format("--- not enough height, force minimal soaces "))
log(string.format("--- not enough height, force minimal spaces"))
dy = 10
end

Expand Down

0 comments on commit f6f1772

Please sign in to comment.