Themes - kartFr/Asset-Reuploader GitHub Wiki

Overview

its just json vro... Make sure file extension is .json otherwise face the consequences

Themes are designed to be backwards/forwards compatible. Hopefully this doesn't change so you shouldn't worry too much.

Example

This is what the current default theme as of 1.2.0 looks like:

{
    "Name": "Studio",

    "Font": "SourceSansPro",
    "TextSize": 15,
    "TextColor": ["MainText"],
    "DimmedTextColor": ["DimmedText"],
    "StrokeColor": [0, 0, 0],
    "StrokeTransparency": 0.75,

    "BorderColor": ["Border"],

    "BackgroundColor": ["Light"],
    "BackgroundImage": "",

    "ForegroundColor": ["MainBackground"],
    "ForegroundImage": "",

    "UnselectedColor": ["Button"],
    "SelectedColor": ["Button", "Pressed"],

    "ToggleBackgroundColor": ["DialogMainButton"],
    "ToggleImage": "rbxassetid://97413807029185",

    "TipColor": ["MainText"],
    "TipImage": "rbxassetid://110240163333510",

    "XColor": ["MainText"],
    "XImage": "rbxassetid://116654648035158",

    "NotificationTransparency": 0,
    "NotificationImage": "",
    "NotificationBackgroundImage": "",
}

Types

Color [Number, Number, Number]

[Red, Green, Blue]

just an array...

colors are numbers on a scale of 0-255. (not clamped)

Font [String, String, String]

[Font, FontWeight, FontStyle]

StudioThemeColor [String, String]

[StudioStyleGuideColor, StudioStyleGuideModifier?]

Color from current studio theme.

Fields

Name String

Required

TextSize Number

Default=15

Font String | Font

Default="SourceSansPro"

If String must use Font name

TextColor Color | StudioThemeColor

Default=["MainText"]

DimmedTextColor Color | StudioThemeColor

Default=["DimmedText"]

Currently only used in list input box when it's empty.

StrokeColor Color | StudioThemeColor

Default=[0,0,0]

StrokeTransparency Number

Default=0.75|1

Has range of 0-1.

If not set then it will be 0.75 in in dark mode and 1 in light mode.

BorderColor Color | StudioThemeColor

Default=["Border"]

BackgroundColor Color | StudioThemeColor

Default=["Light"]

BackgroundImage String

Recommended 500x250 image

ForegroundColor Color | StudioThemeColor

Default=["MainBackground"]

ForegroundImage String

Recommended 488x208 image

UnselectedColor Color | StudioThemeColor

Default=["Button"]

Colors for buttons and toggles when unselected.

SelectedColor Color | StudioThemeColor

Default=["Button", "Pressed"]

Color for buttons when pressed.

ToggleBackgroundColor Color | StudioThemeColor

Default=["DialogMainButton"]

Color for toggles when its toggled.

ToggleImage Color | StudioThemeColor

Default="rbxassetid://97413807029185"

16x16 Image

TipColor Color | StudioThemeColor

Default=["MainText"]

TipColor

TipImage String

Default="rbxassetid://110240163333510"

15x15 Image

XColor Color | StudioThemeColor

Default=["MainText"]

12x12 Image

Used in list elements to remove it.

XImage String

Default="rbxassetid://116654648035158"

12x12 Image

NotificationTransparency Number

Default=0

NotificationImage String

Recommended 150x100 image

NotificationImage

NotificationBackgroundImage String

Recommended 500x250

NotificationBackgroundImage