What is the color & transparency of the topbar?

Hi!

I’m trying to find the color & transparency of the top bar to make a GUI match with it.
What are the topbar’s settings?

Thanks in advance,
Mehdi

5 Likes

Color3.fromRGB(31,31,31) with transparency of 0.5

8 Likes

They are set in a module! Here are the lines that you might need:

TopbarConstants.TOPBAR_BACKGROUND_COLOR = Color3.fromRGB(31,31,31)
TopbarConstants.TOPBAR_OPAQUE_TRANSPARENCY = 0
TopbarConstants.TOPBAR_TRANSLUCENT_TRANSPARENCY = 0.5

Location: game.CoreGui.RobloxGui.Modules.TopBarConstants. It have some stuff of the TopBar.

I hope this helps you! :+1:

5 Likes

Sorry for the revive but it seems like this method is outdated;

  1. Not sure if their message had a typo but it looks like the path to the config file is now different,

  2. It seems like now we get a runtime error for even attempting to access game.CoreGui within a script.
    image

Searching “topbar coregui colour roblox” on Google only really shows this post + this post, supposedly explaining how to manually read transparency/colour properties, which obviously isn’t ideal for futureproofing.

Does anyone know if there’s an updated way to read the topbar constants within a script like this user mentioned was possible 5 years ago? (yikes) I’m attempting to do the exact same thing as the original post :sweat_smile:


EDIT: Searched “color transparency topbar coregui roblox”, all I found was this method for transparency… which is deprecated;

The only thing the doc page mentions that I can see is just disabling the topbar entirely with StarterGui’s SetCore method.

1 Like

After the Roblox UI revamp, the topbar is always fully transparent, so getting or setting the topbar’s transparency is redundant.

1 Like

sorry, I recognise you’re definitely correct, I meant to say the colour/transparency of the buttons/trays that now exist in the topbar to create my own.

I remembered TopbarPlus exists and I’ll try seeing how/if they actually automatically update the colour/transparencies of the gui you can make with their module, or just use their module for my usecase instead.

2 Likes