Jump to content

Does anyone know CSS code to force my dashboard to use "Same as main theme" settings by default?


Recommended Posts

ZanderKeen
Posted

One little thing that has always bothered me is why the dashboard settings theme doesn't default to the Settings theme option "Same as main theme"...

Does anyone know CSS code I can use that will force this?

 

It really messes with my eyes when going from my black theme into a white af screen every day.

Also can this be considered a feature request as well? Can we get that default changed from the Light always being default on the Dashboard settings theme?

Thanks.

Screenshot_20250406_141052.png.7bcbbf0a44d10cc7010d2838f3cdcf48.png

  • Agree 1
visproduction
Posted

Hi, I have an admin area css section in my custom theme.  On the latest version 1.05, these styles are at /* =========== Admin Pages - Dashboard - Settings  === */ , on lines 1534 - 1742.  Each style has a comment.  Be sure to scroll all the way down the post to find the latest version. 
Hope that helps.

 

  • Thanks 1
Happy2Play
Posted (edited)

What you want is in one of the js files as default settings are tied to Premiere and are sort of not changeable on none Premiere.  But yes you can use custom css to override both theme/settings theme.

 

 

Edited by Happy2Play
  • Thanks 1
ZanderKeen
Posted

Oh yeah, I forget about the non-premiere versions limitations. Thanks I will look for the js file & try that. Thanks @Happy2Play

I will also check out your CSS code & see what you have in there too @visproductionthanks! I always like looking at what CSS others are using. 😺

Thanks guys! 😺

Happy2Play
Posted (edited)
17 minutes ago, Zander3768 said:

Oh yeah, I forget about the non-premiere versions limitations. Thanks I will look for the js file & try that. Thanks @Happy2Play

I will also check out your CSS code & see what you have in there too @visproductionthanks! I always like looking at what CSS others are using. 😺

Thanks guys! 😺

Look at the usersettingbuilder.js and change to this.  I change theme to "black" and set settings to same as theme in this example so all users will start with black as it is by default null.

    UserSettings.prototype.settingsTheme = function (val) {
        return null != val ? this.set("settingsTheme", val, !0) : this.get("settingsTheme", !0) || "maintheme"
    },
    UserSettings.prototype.theme = function (val) {
        return null != val ? this.set("appTheme", val, !0) : this.get("appTheme", !0) || "black"

 

Edited by Happy2Play
  • Thanks 1
ZanderKeen
Posted

@Happy2PlayI can't seem to locate that .js file. I tried to run a  find . -name  command & also manually looked thru the system/dashboard-ui filepath. Do you know the filepath for linux by chance? Thanks. 😺

Happy2Play
Posted
35 minutes ago, Zander3768 said:

@Happy2PlayI can't seem to locate that .js file. I tried to run a  find . -name  command & also manually looked thru the system/dashboard-ui filepath. Do you know the filepath for linux by chance? Thanks. 😺

system\dashboard-ui\modules\common\usersettings

  • Thanks 1
ZanderKeen
Posted

@Happy2Playthanks, not sure why i missed that one. 

WORKS! Thank-you so much!

It would still be nice to have the settings>display>SettingsTheme default to "same as main theme" drop-down option and just force the "Theme" to Light for non-premier users, this work around works for me. At least until the next server update. I'm not sure how persistent between updates this work-around change will be.

Thanks again! 😺

Happy2Play
Posted

All file updates have to be redone with every update as the entire system folder gets replaced.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...