Skip to content

Commit

Permalink
remove icon selection from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
santonelli committed Jun 21, 2024
1 parent 5db9e5f commit 7cffc41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 30 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
13 changes: 0 additions & 13 deletions src/collective/sidebar/controlpanel/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
17 changes: 0 additions & 17 deletions src/collective/sidebar/controlpanel/controlpanel.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 7cffc41

Please sign in to comment.