Skip to content

Commit

Permalink
Merge pull request #492 from humhub/enh/270-topic-overview
Browse files Browse the repository at this point in the history
Add colors for event types in pickers
  • Loading branch information
luke- authored Jul 1, 2024
2 parents 9d65d2f + 3bcb4e8 commit 5db53b0
Show file tree
Hide file tree
Showing 15 changed files with 122 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: PHP CS Fixer
on: push

jobs:
tests:
fixers:
uses: humhub/actions/.github/workflows/module-php-cs-fixer.yml@main
3 changes: 2 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Changelog
=========

1.5.13 (Unreleased)
1.6.0 (Unreleased)
----------------------
- Enh #489: Use PHP CS Fixer
- Enh #492: Add colors for event types in pickers

1.5.12 (June 25, 2024)
----------------------
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"name": "Calendar",
"description": "Create one-time or recurring events, invite and manage attendees, and keep track of all your events with the Calendar module.",
"keywords": ["calendar"],
"version": "1.5.13",
"version": "1.6.0",
"humhub": {
"minVersion": "1.14"
"minVersion": "1.16.1"
},
"homepage": "https://github.com/humhub/calendar",
"authors": [
Expand Down
23 changes: 23 additions & 0 deletions resources/css/calendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -834,3 +834,26 @@ tbody,
float: left;
}
}

/* Calendar type legend */
.calendar-type-legend .calendar-type-item {
display: inline-block;
background: var(--background-color-secondary);
color: var(--text-color-main);
border-radius: 4px;
padding: 4px 16px;
margin-right: 8px;
margin-bottom: 8px;
font-size: 14px;
font-weight: 500;
}
.calendar-type-legend .calendar-type-color {
display: inline-block;
width: 16px;
height: 16px;
border: 1px solid var(--text-color-soft3);
border-radius: 4px;
margin-right: 6px;
position: relative;
top: 2px;
}
2 changes: 1 addition & 1 deletion resources/css/calendar.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/humhub.calendar.Calendar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions resources/js/humhub.calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ humhub.module('calendar', function (module, require, $) {

Form.prototype.changeEventType = function (evt) {
var $selected = evt.$trigger.find(':selected');
if ($selected.data('type-color')) {
$('.colorpicker-element').data('colorpicker').color.setColor($selected.data('type-color'));
if ($selected.data('color')) {
$('.colorpicker-element').data('colorpicker').color.setColor($selected.data('color'));
$('.colorpicker-element').data('colorpicker').update();
}
};
Expand Down
Loading

0 comments on commit 5db53b0

Please sign in to comment.