Add color overlay settings for link buttons
- Added link_overlay_enabled, link_overlay_color, link_overlay_opacity to DesignSettings model - Created migration 0008 for new fields - Updated CustomizationPanel with link overlay controls section - Added validation for new overlay settings in serializer - Updated PublicDesignSettingsSerializer to include overlay settings - Applied link overlay to all ExpandableGroup components in public page - Added preview in customization panel for link overlay effect
This commit is contained in:
@@ -149,6 +149,21 @@ class DesignSettings(models.Model):
|
||||
help_text='ID выбранного дизайн-шаблона'
|
||||
)
|
||||
|
||||
# Новые поля для цветового оверлея кнопок ссылок
|
||||
link_overlay_enabled = models.BooleanField(
|
||||
default=False,
|
||||
help_text='Включить цветовое перекрытие кнопок ссылок'
|
||||
)
|
||||
link_overlay_color = models.CharField(
|
||||
max_length=7,
|
||||
default='#000000',
|
||||
help_text='Цвет перекрытия кнопок ссылок (hex)'
|
||||
)
|
||||
link_overlay_opacity = models.FloatField(
|
||||
default=0.2,
|
||||
help_text='Прозрачность перекрытия кнопок ссылок (0.0 - 1.0)'
|
||||
)
|
||||
|
||||
updated_at = models.DateTimeField(
|
||||
auto_now=True,
|
||||
help_text='Дата и время последнего изменения'
|
||||
|
||||
Reference in New Issue
Block a user