Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local availableThemes = {
- "Water (Default)",
- "Fire",
- "Sublime Text 2",
- "Midnight",
- "TheOriginalBIT",
- "Superaxander",
- "Forest",
- "Night",
- "Original"
- }
- local function changeTheme()
- title("LuaIDE - Theme")
- if isAdvanced() then
- local disThemes = {"Back"}
- for k, v in pairs(availableThemes) do
- table.insert(disThemes, v)
- end
- local t = scrollingPrompt(disThemes)
- if t == "Dawn (Default)" then
- gpu.setBackground(theme.backgroundHighlight)
- term.setCursor(3, 3)
- term.clearLine()
- term.write("LuaIDE - Loaded Theme!")
- sleep(1.6)
- theme = defaultTheme
- else
- theme = t
- end
- return "settings"
- else
- term.setCursor(1, 8)
- centerPrint("Themes are not available on")
- centerPrint("normal computers!")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement