[
    {
        "id": "core",
        "text": "Core",
        "headertext": "Core Settings",
        "settings": [
            {
                "id": "default",
                "settings": [
                    {
                        "id": "voice-disconnect",
                        "type": "bool",
                        "text": "Voice Disconnect",
                        "hint": "Disconnect from voice server when Discord closes",
                        "value": false
                    },
                    {
                        "id": "menu-keybind",
                        "type": "keybind",
                        "text": "Menu keybind",
                        "value": "mod+b"
                    }
                ]
            },
            {
                "id": "advanced",
                "name": "Advanced",
                "type": "drawer",
                "settings": [
                    {
                        "id": "developer-mode",
                        "type": "bool",
                        "text": "Developer mode",
                        "hint": "Adds some of BetterDiscord's internal modules to `global._bd`.",
                        "value": false
                    },
                    {
                        "id": "debugger-keybind",
                        "type": "keybind",
                        "text": "Debugger keybind",
                        "hint": "Open developer tools and pause"
                    },
                    {
                        "id": "ignore-content-manager-errors",
                        "type": "bool",
                        "text": "Ignore content manager errors",
                        "hint": "Only when starting Discord. It gets annoying when you're reloading Discord often and have plugins that are meant to fail.",
                        "value": false
                    },
                    {
                        "id": "react-devtools",
                        "type": "bool",
                        "text": "React Developer Tools",
                        "hint": "Place extension in ext/extensions/rdt",
                        "value": false
                    },
                    {
                        "id": "vue-devtools",
                        "type": "bool",
                        "text": "Vue Developer Tools",
                        "hint": "Place extension in ext/extensions/vdt",
                        "value": false
                    }
                ]
            },
            {
                "id": "window-preferences",
                "name": "Window Preferences",
                "type": "drawer",
                "settings": [
                    {
                        "id": "window-preferences",
                        "type": "custom",
                        "component": "WindowPreferences"
                    }
                ]
            }
        ]
    },
    {
        "id": "ui",
        "text": "UI",
        "headertext": "UI Settings",
        "settings": [
            {
                "id": "default",
                "settings": [
                    {
                        "id": "hide-button",
                        "type": "bool",
                        "text": "Hide the BetterDiscord button",
                        "hint": "When this is enabled you can use Ctrl/Cmd + B to open the BetterDiscord settings menu.",
                        "value": false,
                        "disabled": false
                    },
                    {
                        "id": "enable-toasts",
                        "type": "bool",
                        "text": "Enable Toasts",
                        "hint": "Allows plugins to show toasts.",
                        "value": true
                    },
                    {
                        "id": "colored-text",
                        "type": "bool",
                        "text": "Colored Text",
                        "hint": "Colors messages to match the user's role color.",
                        "value": false
                    },
                    {
                        "id": "24-hour",
                        "type": "bool",
                        "text": "24 Hour Timestamps",
                        "hint": "Replaces 12 hour timestamps with proper ones.",
                        "value": false
                    },
                    {
                        "id": "kill-clyde",
                        "type": "bool",
                        "text": "Kill Clyde",
                        "hint": "Prevents Clyde from sending you error messages.",
                        "value": false
                    },
                    {
                        "id": "blocked-messages",
                        "type": "bool",
                        "text": "Prevent Blocked Messages",
                        "hint": "Hides blocked messages in chat and even hides the new message notification.",
                        "value": false
                    }
                ]
            },
            {
                "id": "advanced",
                "name": "Advanced",
                "type": "drawer",
                "settings": [
                    {
                        "id": "colored-text-intensity",
                        "type": "slider",
                        "text": "Colored Text Intensity",
                        "hint": "Intensity of the colored text setting.",
                        "value": 100,
                        "min": 0,
                        "max": 100,
                        "step": 1,
                        "unit": "%"
                    }
                ]
            }
        ]
    },
    {
        "id": "emotes",
        "text": "Emotes",
        "headertext": "Emote Settings",
        "settings": [
            {
                "id": "default",
                "settings": [
                    {
                        "id": "enable",
                        "type": "bool",
                        "text": "Enable emotes",
                        "value": true
                    },
                    {
                        "id": "emoteasimage",
                        "type": "bool",
                        "text": "Image Emote",
                        "hint": "Send single emotes as images if you have the permission",
                        "value": true
                    },
                    {
                        "id": "emoteac",
                        "type": "bool",
                        "text": "Emote Autocomplete",
                        "hint": "Autocomplete emotes when typing with ; prefix",
                        "value": true
                    },
                    {
                        "id": "emoteactype",
                        "type": "bool",
                        "text": "Show most used instead of favourites",
                        "hint": "Toggle with arrow keys in autocomplete menu",
                        "value": true
                    }
                ]
            }
        ]
    },
    {
        "id": "css",
        "text": "CSS Editor",
        "settings": [
            {
                "id": "default",
                "settings": [
                    {
                        "id": "live-update",
                        "type": "bool",
                        "text": "Live update",
                        "hint": "Automatically recompile custom CSS when typing in the custom CSS editor.",
                        "value": true
                    },
                    {
                        "id": "watch-files",
                        "type": "bool",
                        "text": "Watch included files",
                        "hint": "Automatically recompile theme and custom CSS when a file it imports is changed.",
                        "value": true
                    }
                ]
            }
        ]
    },
    {
        "id": "security",
        "text": "Security and Privacy",
        "headertext": "Security and Privacy Settings",
        "settings": [
            {
                "id": "default",
                "settings": [
                    {
                        "id": "unsafe-content",
                        "type": "bool",
                        "text": "Allow unverified content",
                        "hint": "Allow loading unverified plugins/themes",
                        "value": "false"
                    },
                    {
                        "id": "tracking-protection",
                        "type": "bool",
                        "text": "Tracking Protection",
                        "hint": "Disable any Discord tracking",
                        "value": false
                    },
                    {
                        "id": "e2ee",
                        "type": "bool",
                        "text": "E2EE",
                        "hint": "End-to-end encryption",
                        "value": false
                    },
                    {
                        "id": "use-keytar",
                        "type": "bool",
                        "text": "Use system keychain",
                        "hint": "Store the master password in the system keychain",
                        "value": true
                    }
                ]
            },
            {
                "id": "e2eedb",
                "name": "E2EE Database",
                "type": "drawer",
                "settings": [
                    {
                        "id": "e2ekvps",
                        "type": ["securekvp"],
                        "value": []
                    }
                ]
            },
            {
                "id": "e2ee-popout",
                "name": "E2EE Popout",
                "type": "drawer",
                "settings": [
                    {
                        "id": "position",
                        "type": "radio",
                        "text": "Position",
                        "value": "above",
                        "fullwidth": true,
                        "options": [
                            {
                                "text": "Above the lock icon",
                                "value": "above"
                            },
                            {
                                "text": "Over the lock icon",
                                "value": "over"
                            }
                        ]
                    },
                    {
                        "id": "trigger",
                        "type": "radio",
                        "text": "Trigger",
                        "hint": "Only applies when the popout is over the lock icon",
                        "value": "click",
                        "fullwidth": true,
                        "options": [
                            {
                                "text": "After clicking the lock icon",
                                "value": "click"
                            },
                            {
                                "text": "When hovering over the lock icon",
                                "value": "hover"
                            }
                        ]
                    }
                ]
            }
        ]
    }
]
