# Path: spyder_notebook/utils/localization.py



from qtpy.QtWidgets import QGridLayout, QGroupBox, QVBoxLayout
from spyder.api.preferences import PluginConfigPage
from spyder_notebook.utils.localization import _
# -*- coding: utf-8 -*-
#
# Copyright (c) Spyder Project Contributors
# Licensed under the terms of the MIT License

"""Spyder configuration page for notebook plugin."""

# Qt imports

# Spyder imports

# Local imports


class NotebookConfigPage(PluginConfigPage):
    """Widget with configuration options for notebook plugin."""

    def setup_page(self):
        """Fill configuration page with widgets."""
        themes = ['Same as Spyder', 'Light', 'Dark']
        theme_choices = list(zip(themes,
                                 [theme.lower() for theme in themes]))
        theme_combo = self.create_combobox(
            _('Notebook theme'), theme_choices, 'theme', restart=True)

        interface_layout = QGridLayout()
        interface_layout.addWidget(theme_combo.label, 0, 0)
        interface_layout.addWidget(theme_combo.combobox, 0, 1)

# Path: spyder_notebook/utils/localization.py



# Path: spyder_notebook/config.py
from qtpy.QtWidgets import QGridLayout, QGroupBox, QVBoxLayout
from spyder.api.preferences import PluginConfigPage
from spyder_notebook.utils.localization import _

# -*- coding: utf-8 -*-
#
# Copyright (c) Spyder Project Contributors
# Licensed under the terms of the MIT License

"""Spyder configuration page for notebook plugin."""

# Qt imports

# Spyder imports

# Local imports


class NotebookConfigPage(PluginConfigPage):
    """Widget with configuration options for notebook plugin."""

    def setup_page(self):
        """Fill configuration page with widgets."""
        themes = ['Same as Spyder', 'Light', 'Dark']
        theme_choices = list(zip(themes,
                                 [theme.lower() for theme in themes]))
        theme_combo = self.create_combobox(
            _('Notebook theme'), theme_choices, 'theme', restart=True)

        interface_layout = QGridLayout()
        interface_layout.addWidget(theme_combo.label, 0, 0)
        interface_layout.addWidget(theme_combo.combobox, 0, 1)

        interface_group = QGroupBox(_('Interface'))