Add comprehensive group customization features
- Add group overlay color and opacity settings - Add font customization (body and heading fonts) - Add group description text color control - Add option to hide 'Groups' title - Update frontend DesignSettings interface - Update CustomizationPanel with new UI controls - Update Django model with new fields - Create migration for new customization options - Update DRF serializer with validation
This commit is contained in:
@@ -102,6 +102,44 @@ class DesignSettings(models.Model):
|
||||
help_text='Прозрачность перекрытия (0.0 - 1.0)'
|
||||
)
|
||||
|
||||
# Новые поля для кастомизации групп
|
||||
group_overlay_enabled = models.BooleanField(
|
||||
default=False,
|
||||
help_text='Включить цветовое перекрытие групп'
|
||||
)
|
||||
group_overlay_color = models.CharField(
|
||||
max_length=7,
|
||||
default='#000000',
|
||||
help_text='Цвет перекрытия групп (hex)'
|
||||
)
|
||||
group_overlay_opacity = models.FloatField(
|
||||
default=0.3,
|
||||
help_text='Прозрачность перекрытия групп (0.0 - 1.0)'
|
||||
)
|
||||
show_groups_title = models.BooleanField(
|
||||
default=True,
|
||||
help_text='Показывать заголовок "Группы ссылок"'
|
||||
)
|
||||
group_description_text_color = models.CharField(
|
||||
max_length=7,
|
||||
default='#666666',
|
||||
help_text='Цвет текста описаний групп (hex)'
|
||||
)
|
||||
|
||||
# Новые поля для шрифтов
|
||||
body_font_family = models.CharField(
|
||||
max_length=100,
|
||||
default='',
|
||||
blank=True,
|
||||
help_text='Шрифт для основного текста'
|
||||
)
|
||||
heading_font_family = models.CharField(
|
||||
max_length=100,
|
||||
default='',
|
||||
blank=True,
|
||||
help_text='Шрифт для заголовков'
|
||||
)
|
||||
|
||||
updated_at = models.DateTimeField(
|
||||
auto_now=True,
|
||||
help_text='Дата и время последнего изменения'
|
||||
|
||||
Reference in New Issue
Block a user