Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local colors = {
- Color3.new(0.423529,0.768628,1),
- Color3.new(0.576471,0.831373,1),
- Color3.new(212,175,55),
- Color3.fromRGB(84,170,255),
- }
- local module = {}
- module.DarkTheme = function()
- for i,v in pairs(game.CoreGui.Venyx:GetDescendants()) do
- if v.BackgroundColor3 == Color3.fromRGB(255,255,255) then
- v.BackgroundColor3 = Color3.fromRGB(25,25,25)
- end
- end
- for i,v in pairs(game.CoreGui["Venyx Extension"]:GetDescendants()) do
- if v.BackgroundColor3 == Color3.fromRGB(255,255,255) then
- v.BackgroundColor3 = Color3.fromRGB(25,25,25)
- end
- end
- end
- function isColor(color)
- for i,v in pairs(colors) do
- if v == color then
- return v
- end
- end
- return false
- end
- module.setColor = function(color)
- for i,v in pairs(game.CoreGui.Venyx:GetDescendants()) do
- if isColor(v.BackgroundColor3) or isColor(v.BorderColor3) then
- v.BackgroundColor3 = color
- v.BorderColor3 = color
- elseif v:IsA("TextLabel") and isColor(v.TextColor3) then
- v.TextColor3 = color
- end
- end
- for i,v in pairs(game.CoreGui["Venyx Extension"]:GetDescendants()) do
- if isColor(v.BackgroundColor3) or isColor(v.BorderColor3) then
- v.BackgroundColor3 = color
- v.BorderColor3 = color
- elseif v:IsA("TextLabel") and isColor(v.TextColor3) then
- v.TextColor3 = color
- end
- end
- end
- module.setTextColor = function(color)
- for i,v in pairs(game.CoreGui.Venyx:GetDescendants()) do
- if v:IsA("TextLabel") or v:IsA("TextBox") or v:IsA("TextButton") then
- v.TextColor3 = color
- end
- end
- for i,v in pairs(game.CoreGui["Venyx Extension"]:GetDescendants()) do
- if v:IsA("TextLabel") or v:IsA("TextBox") or v:IsA("TextButton") then
- v.TextColor3 = color
- end
- end
- end
- return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement