Bablo ResourcesDocs

Theme

The theme is the set of colours of the UI: the work order menu, the invitation pop-up, the mission panel, the tips and the route creator. It is set with Config.Theme in config.lua and is the same for every player.

After you change a colour, run restart bablo-electricjob. The UI reads the colours from config.lua, so nothing has to be rebuilt.


Config.Theme

LUA
Config.Theme = {
    accent = '#7aadff',
    accentDark = '#5596ff',
    accentSoft = '#d9e8ff',
    accentText = '#0e0f11',
    panel = '#0e0f11',
    panelOpacity = 0.95,
    text = '#fafafa',
    mutedText = '#afafaf',
    border = '#ffffff',
    borderOpacity = 0.10,
    row = '#ffffff',
    rowOpacity = 0.02,
    success = '#a4ff7a',
    danger = '#ff7a7a',
}

Colours

KeyUsed forDefault
accentThe main colour: the selected tab and region filter, the number of the selected route, the top of buttons, progress bars, the end of gradient titles and highlights.#7aadff
accentDarkThe bottom of buttons and the end of progress bars. Buttons fade from accent to accentDark.#5596ff
accentSoftHeadings and selected options in the route creator, and the outline around a focused button or field.#d9e8ff
accentTextText and icons on accent buttons, tabs and filters.#0e0f11
panelThe background of the menu, the pop-ups, the mission panel, the tips and the route creator.#0e0f11
textThe main text, and the start of gradient titles.#fafafa
mutedTextDescriptions, labels and hints.#afafaf
borderBorders and divider lines.#ffffff
rowThe background of rows, cards, fields and key hints.#ffffff
successFinished steps in the mission panel, sent invitations and other things that went well.#a4ff7a
dangerDecline, cancel, leave and delete buttons, and errors.#ff7a7a

Opacity

KeyUsed forDefault
panelOpacityHow solid panel is. The mission panel, the route creator and notices use it as it is. The menu and the tips use 90% of it. Pop-ups such as the invitation are always fully solid.0.95
borderOpacityHow strong border is. Stronger lines, such as the outline of the menu and the mission panel, use twice this value.0.10
rowOpacityHow strong row is.0.02

border and row are white by default with a low opacity, so they show as a light tint on the dark panel. Raise the opacity to make lines and rows stand out more.


Formats

ValueFormat
Colours#RRGGBB or #RGB, for example '#ff7a7a' or '#fff'. Capital letters and spaces around the value don’t matter.
OpacitiesA number from 0 (invisible) to 1 (fully solid). A number outside that range is set to 0 or 1.

A colour in any other format (rgb(...), a colour name, #RRGGBBAA) and a key that is missing use the default of that key.

Keep enough contrast. If text is too close to panel, or accentText too close to accent, texts become hard to read. Nothing checks this for you.


What the theme does not change

PartWhere its look comes from
The screens on the breaker cabinets and fuse boxesFixed in the script.
Target options and the built-in [E] promptYour target resource, or GTA’s help text.
NotificationsYour framework, ox_lib or the GTA feed, see Notifications.
The depot blipsprite, colour and scale in the depot blip.