HomeDocumentationAPI Reference
Getting StartedAPI ReferenceHelp CenterVideo Tours

Set Theme

By default, the Instabug SDK uses a light theme. This, however, can be changed to use a dark theme. To do this, you can use this API while passing the relevant enum to it.

Method

Instabug.setColorTheme(.dark)
[Instabug setColorTheme:IBGColorThemeDark];
Instabug.setColorTheme(InstabugColorTheme.InstabugColorThemeLight);
Instabug.setColorTheme(Instabug.colorTheme.dark);
//Can be done through the activate method properties
cordova.plugins.instabug.activate(
    {
        ios: 'MY_IOS_TOKEN'
    },
    cordova.plugins.bugReporting.invocationEvents.shake,
    {
        colorTheme: 'dark'
    },
    function () {
        console.log('Instabug initialized.');
    },
    function (error) {
        console.log('Instabug could not be initialized - ' + error);
    }
);
//iOS
Instabug.SetColorTheme(IBGColorTheme.Light);

//Android
Instabug.SetColorTheme(InstabugColorTheme.InstabugColorThemeLight);
Instabug.setColorTheme(ColorTheme.dark);
Theme Parameters:

//Light
.light
//Dark
.dark
//Light
IBGColorThemeLight
//Dark
IBGColorThemeDark
//Light
IBGColorThemeLight
//Dark
IBGColorThemeDark
//Light
Instabug.colorTheme.light
//Dark
Instabug.colorTheme.dark
//Light
'light'
//Dark
'dark'
//iOS
//Light
IBGColorTheme.Light
//Dark
IBGColorTheme.Dark

//Android
//Light
InstabugColorTheme.InstabugColorThemeLight
//Dark
InstabugColorTheme.InstabugColorThemeDark
//Light
ColorTheme.light
//Dark
ColorTheme.dark