From 7cffc413c28ff188383d4f9c92a8d3868c1858da Mon Sep 17 00:00:00 2001 From: Stefan Antonelli Date: Fri, 21 Jun 2024 15:39:14 +0200 Subject: [PATCH] remove icon selection from settings --- CHANGES.rst | 3 +++ src/collective/sidebar/controlpanel/config.py | 13 ------------- .../sidebar/controlpanel/controlpanel.py | 17 ----------------- 3 files changed, 3 insertions(+), 30 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 68fa599..a0420fd 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -51,6 +51,9 @@ Changed: - Fix link colors to add support for color modes. [santonelli] +- Remove icon selection in settings. + [santonelli] + Bugfixes: - Nothing fixed yet. diff --git a/src/collective/sidebar/controlpanel/config.py b/src/collective/sidebar/controlpanel/config.py index baf0956..620ae58 100644 --- a/src/collective/sidebar/controlpanel/config.py +++ b/src/collective/sidebar/controlpanel/config.py @@ -17,16 +17,3 @@ ] PositionVocabulary = SimpleVocabulary(positionTerms) - - -fonts = [ - SimpleTerm(value=u'Bootstrap', title=u'Bootstrap'), - SimpleTerm(value=u'Glyphicons', title=u'Glyphicons'), - SimpleTerm(value=u'Fontello', title=u'Fontello'), - SimpleTerm(value=u'Font Awesome', title=u'Font Awesome'), - SimpleTerm(value=u'Font Awesome Pro', title=u'Font Awesome Pro'), - SimpleTerm(value=u'Font Awesome Light', title=u'Font Awesome Light'), - SimpleTerm(value=u'Font Awesome Duotone', title=u'Font Awesome Duotone'), -] - -IconFontVocabulary = SimpleVocabulary(fonts) diff --git a/src/collective/sidebar/controlpanel/controlpanel.py b/src/collective/sidebar/controlpanel/controlpanel.py index ebf4d9f..9c43767 100644 --- a/src/collective/sidebar/controlpanel/controlpanel.py +++ b/src/collective/sidebar/controlpanel/controlpanel.py @@ -1,7 +1,6 @@ # -*- coding: utf-8 -*- from collective.sidebar import _ -from collective.sidebar.controlpanel.config import IconFontVocabulary from collective.sidebar.controlpanel.config import PositionVocabulary from plone.app.registry.browser.controlpanel import ControlPanelFormWrapper from plone.app.registry.browser.controlpanel import RegistryEditForm @@ -73,22 +72,6 @@ class IControlPanel(Interface): default=True, ) - icon_font = schema.Choice( - title=_(u'controlpanel_sidebar_choose_icon_font_title', - default=u'Choose Icon Font'), - description=_( - u'controlpanel_sidebar_choose_icon_font_description', - default=( - u'When a different icon font is installed, you can tell the ' - u'sidebar to use it. For Fontello we assume you have set ' - u'\"icon\" as the font prefix. ' - u'Note: This does not install the icon font!'), - ), - vocabulary=IconFontVocabulary, - default='Glyphicons', - required=True, - ) - sidebar_position = schema.Choice( title=_( u'controlpanel_sidebar_sidebar_position_title',