Skip to content

Commit

Permalink
Merge pull request #74 from Nakurai/app/low-battery
Browse files Browse the repository at this point in the history
added low battery app
  • Loading branch information
paxo-rch authored May 22, 2024
2 parents d7e25c5 + 6e940b5 commit 7eabde9
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions storage/apps/battery/app.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

function run()
win=gui:window()

local icon = gui:image(win, "low-battery.png", 110, 137, 100, 177)

local alert = gui:label(win, 99, 362, 180, 20)
alert:setText("Merci de recharger")
alert:setFontSize(16)

gui:setWindow(win)
end
Binary file added storage/apps/battery/low-battery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions storage/apps/battery/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"access": [
"gui",
"files"
]
}
1 change: 1 addition & 0 deletions storage/system/auth.list
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
./storage/apps/messages/app.lua
./storage/apps/snake/app.lua
./storage/apps/contacts/app.lua
./storage/apps/battery/app.lua
6 changes: 6 additions & 0 deletions storage/system/battery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"access": [
"gui",
"files"
]
}

0 comments on commit 7eabde9

Please sign in to comment.