mirror of
https://github.com/clockworkpi/launcher.git
synced 2026-03-22 20:02:43 +01:00
add GiveWallpaper to allow the custom wallpaper from any Theme/skin
This commit is contained in:
@@ -7,6 +7,8 @@ from UI.constants import RUNSYS
|
||||
from UI.keys_def import CurKeys, IsKeyStartOrA, IsKeyMenuOrB
|
||||
from UI.confirm_page import ConfirmPage
|
||||
from UI.lang_manager import MyLangManager
|
||||
from UI.skin_manager import MySkinManager
|
||||
|
||||
import config
|
||||
|
||||
class PowerOffConfirmPage(ConfirmPage):
|
||||
@@ -48,9 +50,9 @@ class PowerOffConfirmPage(ConfirmPage):
|
||||
|
||||
if IsKeyStartOrA(event.key):
|
||||
if self.CheckBattery() < 20:
|
||||
cmdpath = "feh --bg-center gameshell/wallpaper/gameover.png;"
|
||||
cmdpath = "feh --bg-center %s;" % MySkinManager.GiveWallpaper("gameover.png")
|
||||
else:
|
||||
cmdpath = "feh --bg-center gameshell/wallpaper/seeyou.png;"
|
||||
cmdpath = "feh --bg-center %s;" % MySkinManager.GiveWallpaper("seeyou.png")
|
||||
|
||||
cmdpath += "sleep 3;"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user