Skip to content

Commit

Permalink
Add Section Icons
Browse files Browse the repository at this point in the history
  • Loading branch information
aljawaid committed Dec 25, 2022
1 parent de840a5 commit 901338f
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Assets/color-palette.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Assets/css/color-manager.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ a:hover { color: var(--pp-red-alt-2) !important; }
margin-top: 20px;
}


.color-manager-section-icon {
width: 1.2em;
vertical-align: text-bottom;
}
.colour-section {
margin-bottom: 20px;
}
Expand Down
71 changes: 71 additions & 0 deletions Assets/palette-print-bordered.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions Assets/palette-print.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 12 additions & 3 deletions Template/config/colors.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
</h2>
<hr>
<div class="color-manager-section">
<h3 class=""><?= t('Default Color Palette') ?><span class="colour-total-count-section"><?= count($defaultColours); ?></span></h3>
<h3 class="">
<img class="color-manager-section-icon" src="/plugins/ColorManager/Assets/palette-print.svg" alt="<?= t('Default Color Palette') ?>">
<?= t('Default Color Palette') ?> <span class="colour-total-count-section"><?= count($defaultColours); ?></span>
</h3>
</div>
<div class="colour-section">
<ul class="">
Expand Down Expand Up @@ -62,7 +65,10 @@
<hr>

<div class="color-manager-section">
<h3 class=""><?= t('Extra Color Palette') ?> <span class="colour-total-count-section"><?= count($this->task->colorModelExt->getStaticColors()); ?></span></h3>
<h3 class="">
<img class="color-manager-section-icon" src="/plugins/ColorManager/Assets/palette-print-bordered.svg" alt="<?= t('Extra Color Palette') ?>">
<?= t('Extra Color Palette') ?> <span class="colour-total-count-section"><?= count($this->task->colorModelExt->getStaticColors()); ?></span>
</h3>
</div>

<div class="colour-boxes">
Expand Down Expand Up @@ -96,7 +102,10 @@
<hr>

<div class="color-manager-section">
<h3 class=""><?= t('Custom Color Palette') ?><span class="colour-total-count-section"><?= $customColours; ?></span></h3>
<h3 class="">
<img class="color-manager-section-icon" src="/plugins/ColorManager/Assets/color-palette.svg" alt="<?= t('Custom Color Palette') ?>">
<?= t('Custom Color Palette') ?><span class="colour-total-count-section"><?= $customColours; ?></span>
</h3>
</div>

<button class=""><?= $this->modal->small('plus', t('Add Color'), 'ColorManagerController', 'add', ['plugin' => 'colorManager'], false, 'popover') ?></button>
Expand Down

0 comments on commit 901338f

Please sign in to comment.