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
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
| Key | Used for | Default |
|---|---|---|
accent | The 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 |
accentDark | The bottom of buttons and the end of progress bars. Buttons fade from accent to accentDark. | #5596ff |
accentSoft | Headings and selected options in the route creator, and the outline around a focused button or field. | #d9e8ff |
accentText | Text and icons on accent buttons, tabs and filters. | #0e0f11 |
panel | The background of the menu, the pop-ups, the mission panel, the tips and the route creator. | #0e0f11 |
text | The main text, and the start of gradient titles. | #fafafa |
mutedText | Descriptions, labels and hints. | #afafaf |
border | Borders and divider lines. | #ffffff |
row | The background of rows, cards, fields and key hints. | #ffffff |
success | Finished steps in the mission panel, sent invitations and other things that went well. | #a4ff7a |
danger | Decline, cancel, leave and delete buttons, and errors. | #ff7a7a |
Opacity
| Key | Used for | Default |
|---|---|---|
panelOpacity | How 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 |
borderOpacity | How strong border is. Stronger lines, such as the outline of the menu and the mission panel, use twice this value. | 0.10 |
rowOpacity | How 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
| Value | Format |
|---|---|
| Colours | #RRGGBB or #RGB, for example '#ff7a7a' or '#fff'. Capital letters and spaces around the value don’t matter. |
| Opacities | A 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
| Part | Where its look comes from |
|---|---|
| The screens on the breaker cabinets and fuse boxes | Fixed in the script. |
Target options and the built-in [E] prompt | Your target resource, or GTA’s help text. |
| Notifications | Your framework, ox_lib or the GTA feed, see Notifications. |
| The depot blip | sprite, colour and scale in the depot blip. |

