--- a/src/pyams_portal/portlets/spacer/interfaces.py Fri Nov 30 14:42:57 2018 +0100
+++ b/src/pyams_portal/portlets/spacer/interfaces.py Fri Dec 07 12:21:32 2018 +0100
@@ -10,8 +10,33 @@
# FOR A PARTICULAR PURPOSE.
#
+from zope.interface import Interface
+from zope.schema import Bool
+
from pyams_portal.interfaces import IPortletSettings
+from pyams_utils.schema import ColorField
+
+from pyams_portal import _
class ISpacerPortletSettings(IPortletSettings):
"""Spacer portlet settings interface"""
+
+
+class ISpacerPortletRendererSettings(Interface):
+ """Spacer portlet renderer settings"""
+
+ transparent = Bool(title=_("Transparent spacer?"),
+ description=_("If 'no', spacer background will be defined by selected color"),
+ required=True,
+ default=True)
+
+ background_color = ColorField(title=_("Background color"),
+ description=_("Color selected for background, if transparency is disabled"),
+ required=False,
+ default='fff')
+
+ with_ruler = Bool(title=_("Horizontal ruler?"),
+ description=_("If 'yes', an horizontal ruler will be displayed in the middle of the spacer"),
+ required=True,
+ default=False)