Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add colors for event types in pickers #492

Merged
merged 4 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading