From 48af2e273ed344f7a0d9eb1c695e09a1b118ea36 Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Sun, 20 Mar 2016 17:27:42 +0100 Subject: [PATCH] Update sID.lua --- src/apps/system/sID.lua | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/apps/system/sID.lua b/src/apps/system/sID.lua index 9de0dde..0fe1fad 100644 --- a/src/apps/system/sID.lua +++ b/src/apps/system/sID.lua @@ -11,8 +11,8 @@ if not sPhone then end local function clear() - term.setBackgroundColor(colors.white) - term.setTextColor(colors.black) + term.setBackgroundColor(sPhone.theme["backgroundColor"]) + term.setTextColor(sPhone.theme["text"]) term.clear() term.setCursorPos(1,1) end @@ -28,11 +28,13 @@ end local function login() term.setBackgroundColor(colors.white) term.clear() - term.setCursorPos(1,1) - local w, h = term.getSize() - paintutils.drawLine(1,1,w,1,colors.blue) - term.setTextColor(colors.black) - term.setBackgroundColor(colors.white) + if sPhone.firstBoot then + sPhone.header("Setup") + else + sPhone.header() + end + term.setTextColor(sPhone.theme["text"]) + term.setBackgroundColor(sPhone.theme["backgroundColor"]) visum.align("center"," Setup Sertex ID",false,3) visum.align("center"," Your Username",false,7) term.setCursorPos(3,8) @@ -60,11 +62,13 @@ end local function register() term.setBackgroundColor(colors.white) term.clear() - term.setCursorPos(1,1) - local w, h = term.getSize() - paintutils.drawLine(1,1,w,1,colors.blue) - term.setTextColor(colors.black) - term.setBackgroundColor(colors.white) + if sPhone.firstBoot then + sPhone.header("Setup") + else + sPhone.header() + end + term.setTextColor(sPhone.theme["text"]) + term.setBackgroundColor(sPhone.theme["backgroundColor"]) visum.align("center"," Setup Sertex ID",false,3) visum.align("center"," Your Username",false,7) term.setCursorPos(3,8)