Skip to content

Commit

Permalink
update to 1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
greyaz committed Nov 3, 2022
1 parent e388a18 commit da024c7
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 15 deletions.
2 changes: 2 additions & 0 deletions Asset/dev/css/basics.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
/*--alert-border-color-success: var(--color-success-secd);*/

--activity-title-color: var(--color-greyscale-1);
--user-mention-color: var(--color-greyscale-1);
--board-task-limit-color: var(--color-warning-prim);

--button-default-color: var(--color-greyscale-1);
--button-default-background-color: var(--color-greyscale-6);
Expand Down
17 changes: 17 additions & 0 deletions Asset/dev/css/form-components.css
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,23 @@ ul.dropdown-submenu-open a {
color: var(--color-greyscale-1);
vertical-align: middle;
}
body.TR #suggest-menu{
padding: 1rem 1rem 0 0;
border-radius: var(--size-radius-def);
border: var(--style-border);
box-shadow: var(--style-shadow-heavy);
background: var(--color-greyscale-6);
}
body.TR #suggest-menu > .suggest-menu-item {
padding: 0.5rem;
}
body.TR #suggest-menu > .suggest-menu-item.active {
color: var(--color-greyscale-6);
background: var(--color-brand-prim);
}
body.TR #suggest-menu > .suggest-menu-item.active small{
color: var(--color-greyscale-6);
}

/*hover and focus*/
input[type=date]:focus, input[type=email]:focus, input[type=number]:focus, input[type=password]:focus, input[type=text]:focus, input[type=checkbox]:focus, input[type=radio]:focus, input[type=file]:focus, textarea:focus, .text-editor textarea:focus, select:focus, .select2-container--focus,
Expand Down
10 changes: 10 additions & 0 deletions Asset/dev/css/plugins.css
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,13 @@
width: calc(1rem + 2px);
height: auto;
}

/* color picker */
.TR .tr-color-picker .sp-replacer{
border: 0;
background: none;
color: var(--color-greyscale-1);
}
.TR .tr-color-picker .sp-preview{
border: 1px solid var(--color-greyscale-1);
}
18 changes: 10 additions & 8 deletions Asset/dev/js/settings.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
(function(window, document, KB, $){
document.addEventListener('DOMContentLoaded', (event) => {
$(".tr-color-picker > input[type='text']").spectrum({
preferredFormat: "rgb",
showInput: true,
showAlpha: true
});
if ($(".tr-color-picker > input[type='text']").length > 0){
$(".tr-color-picker > input[type='text']").spectrum({
preferredFormat: "rgb",
showInput: true,
showAlpha: true
});

$(".overwrite-checkbox").change(function(event) {
$(event.target).val($(event.target).is(':checked'))
});
$(".overwrite-checkbox").change(function(event) {
$(event.target).val($(event.target).is(':checked'))
});
}
});
})(window, document, KB, jQuery);
2 changes: 1 addition & 1 deletion Asset/main.min.css

Large diffs are not rendered by default.

28 changes: 27 additions & 1 deletion Asset/material-symbols/index.css
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
.TR .task-board .task-date i.fa,
.TR .table-list .task-date i.fa,
.TR .file-thumbnail-content i.fa,
.TR ul.dropdown-submenu-open li a i.fa {
.TR ul.dropdown-submenu-open li a i.fa,
.TR a.dropdown-menu-link-icon i.fa {
vertical-align: text-top;
}

Expand Down Expand Up @@ -329,6 +330,31 @@
.TR i.fa-vcard-o:before, .TR i.fa-address-card-o:before {
content: "\e0d0";
}
.TR i.fa-floppy-o:before{
content: "\e161";
}
.TR i.fa-file-image-o:before{
content: "\e3f4";
}
.TR i.fa-file-excel-o:before,
.TR i.fa-file-word-o:before,
.TR i.fa-file-powerpoint-o:before,
.TR i.fa-file-archive-o:before {
content: "\e66d";
}
.TR i.fa-file-audio-o:before{
content: "\eb82";
}
.TR i.fa-file-video-o:before{
content: "\eb87";
}
.TR i.fa-file-code-o:before{
content: "\f84d";
}
.TR i.fa-file-pdf-o:before{
content: "\e415";
}


@media (max-width: 768px){
.TR #modal-close-button i.fa-times:before {
Expand Down
2 changes: 1 addition & 1 deletion Asset/material-symbols/index.min.css
100644 → 100755

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

2 changes: 1 addition & 1 deletion Asset/settings.min.js

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

3 changes: 2 additions & 1 deletion Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function initialize()
$this->template->hook->attach('template:config:sidebar', 'ThemeRevision:settings/sidebar');
$this->hook->on('template:layout:css', array('template' => 'plugins/ThemeRevision/Asset/spectrum/min.css'));
$this->hook->on('template:layout:js', array('template' => 'plugins/ThemeRevision/Asset/spectrum/min.js'));
$this->hook->on('template:layout:js', array('template' => 'plugins/ThemeRevision/Asset/settings.min.js'));

// icons replacement
if (!isset($themeRevisionConfig['enable_google_material_icons']) || $themeRevisionConfig['enable_google_material_icons']) {
Expand Down Expand Up @@ -108,7 +109,7 @@ public function getPluginAuthor() {
}

public function getPluginVersion() {
return '1.1.4';
return '1.1.5';
}

public function getPluginDescription() {
Expand Down
2 changes: 0 additions & 2 deletions Template/settings/configs.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@
<input type="submit" class="btn btn-red" value="<?= t('Reset') ?>">
</fieldset>
</form>

<script defer type="text/javascript" src="/plugins/ThemeRevision/Asset/settings.min.js"></script>
<?php else: ?>
<p class="alert alert-error"><?= t('Access Forbidden') ?></p>
<?php endif ?>

0 comments on commit da024c7

Please sign in to comment.