Skip to content

Commit

Permalink
Merge pull request #79 from humhub-contrib/enh/360-replace-theme-vari…
Browse files Browse the repository at this point in the history
…ables

Replace theme variables with CSS variables
  • Loading branch information
luke- committed Sep 13, 2024
2 parents baa1f29 + 127da23 commit f75ef6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Changelog
- Fix #71: After module disabling, Content for ExternalCalendarEntry are not deleted
- Fix #76: Disabling the module in a container (Space or User)
- Fix #78: Remove module name translation
- Enh #79: Replace theme variables with CSS variables

1.4.2 (January 19, 2023)
-----------------------
Expand Down
2 changes: 1 addition & 1 deletion widgets/views/wallEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/* @var $calendarEntry \humhub\modules\external_calendar\models\ExternalCalendarEntry */
/* @var $stream boolean */

$color = $calendarEntry->calendar->color ?: $this->theme->variable('info');
$color = $calendarEntry->calendar->color ?: 'var(--info)';

$description = $calendarEntry->description;

Expand Down
2 changes: 1 addition & 1 deletion widgets/views/wallEntryCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/* @var $calendar ExternalCalendar */
/* @var $stream boolean */

$color = $calendar->color ?: $this->theme->variable('info');
$color = $calendar->color ?: 'var(--info)';

$description = $calendar->description;

Expand Down

0 comments on commit f75ef6a

Please sign in to comment.