Splunk Search

How to add dark theme compatibility to custom app?

chartastic
Explorer

We use a custom app in our Splunk Cloud instance to segregate dashboards and searches from other teams. With the recent update to allow dark theme compatibility in Splunk 9 to the search view in "Searching and Reporting" I was wondering if there was a way we could enable that in our custom app as well?

Currently while in this custom app and trying to switch the them to dark I get this error message:

"The Theme setting is not supported by your current app context."

Labels (1)
Tags (2)
0 Karma

lindonmorris
Explorer

I have the same question and I can see all of the replies are referring to Splunk WEB not Splunk CLOUD.

 

From what I can tell, the only option is to do this by deploying your private app (requires Victoria Experience)

https://dev.splunk.com/enterprise/docs/releaseapps/manageprivatecloud/

 

To clarify for all of the other responders;

 - This is Splunk Cloud

 - We have no access to the app.conf of any app

 - We have no access to the file structure on the Search Head

 - We can only use the UI and REST apis (ACS)

 

0 Karma

knc
Splunk Employee
Splunk Employee

Hello, https://dev.splunk.com/enterprise/docs/developapps/createapps/adduithemes/ details the guidance for app developers to update their app(s) to support dark theme (in addition to light theme) for their app. App consumers should not make an attempt to support dark theme for an installed app themselves.

Currently if someone installs an app which supports dark theme, they will only see the benefit of this in Splunk Cloud per the above doc. The next Splunk Enterprise release once it is available will support dark theme the same as the current Splunk Cloud release.

0 Karma

lshatzer
Path Finder

I am on Classic and was able to modify a app.conf in private app that you can deploy. See https://dev.splunk.com/enterprise/docs/releaseapps/manageprivatecloud/ for some more info as well.

0 Karma

lshatzer
Path Finder
0 Karma

knc
Splunk Employee
Splunk Employee

Hello, guidance on adopting the theming framework for your app can be found at: https://dev.splunk.com/enterprise/docs/developapps/createapps/adduithemes/

0 Karma

lshatzer
Path Finder

https://docs.splunk.com/Documentation/Splunk/latest/Admin/Appconf#.5Bui.5D suggests you need to add an entry to your app.conf file in the ui stanza of supported_themes.

[ui]
supported_themes=enterprise,dark

 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @chartastic,

did you tried to go in the Edit mode of each dashboard and set the Dark Theme?

Ciao.

Giuseppe

0 Karma

chartastic
Explorer

I am not trying to apply dark theme to a dashboard, but to the search ui like I now can in "Search & Reporting". See the screen shot.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @chartastic,

you should try to copy the CSS that you have in the Search & Reporting App (Dark Theme) App in your custom App.

You should find it in $SPLUNK_HOME/etc/apps/search/appserver/static and copy in $SPLUNK_HOME/etc/apps/<your_app>/appserver/static.

Ciao.

Giuseppe

0 Karma

yuanliu
SplunkTrust
SplunkTrust

You want to move this question to Dashboards & Visualizations forum and get better answer.

0 Karma

chartastic
Explorer

See my other reply, this is about the search ui and not about a dashboard.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...