[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gruvbox-theme 1be12068a8 115/258: add click handler
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gruvbox-theme 1be12068a8 115/258: add click handler |
Date: |
Sat, 1 Jan 2022 01:59:35 -0500 (EST) |
branch: elpa/gruvbox-theme
commit 1be12068a8a116e27e87c23f53f4494923a77428
Author: jasonm23 <jasonm23@gmail.com>
Commit: jasonm23 <jasonm23@gmail.com>
add click handler
---
palette/js/main.js | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/palette/js/main.js b/palette/js/main.js
index 22f31a3587..2e2ec4b9a2 100644
--- a/palette/js/main.js
+++ b/palette/js/main.js
@@ -218,7 +218,7 @@ window.onload=function(){
Vue.component('palette-group', {
props: ['title', 'colors', 'prefix'],
- template: `<div class="palette-group">
+ template: `<div class="palette-group" v-on:click="makeImg">
<h3>{{title}}</h3>
<swatch v-for="swatch in colors"
v-bind:prefix="prefix"
@@ -232,7 +232,17 @@ Vue.component('palette-group', {
</swatch>
<div class="group-separator"></div>
</div>
-`
+`,
+ methods:{
+ makeImg: function(e){
+ html2canvas(e.target, {
+ onrendered: function(canvas) {
+ document.body.appendChild(canvas);
+ },
+ background: undefined
+ });
+ }
+ }
});
Vue.component('swatch', {
- [nongnu] elpa/gruvbox-theme a5f6d037df 255/258: Fix eshell face names and add helm eshell, (continued)
- [nongnu] elpa/gruvbox-theme a5f6d037df 255/258: Fix eshell face names and add helm eshell, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme df6d1a8b13 063/258: Support for Helm noted in README, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme f4035b67ab 073/258: Merge pull request #27 from hoyon/master, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 062071ea1b 076/258: Added full popup support, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 4148d1ff4b 082/258: Match modeline color, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 8776c27ae1 084/258: Merge pull request #35 from Dominionized/patch-1, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 47d34f13b3 085/258: Add preliminary support for setting the contrast. (#40), ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 4008f08cd5 088/258: eval cl or cl-lib when compiling (#42), ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 01a97cf538 102/258: Remove redundant defun, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme e57f494fd9 114/258: 1.12.0, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 1be12068a8 115/258: add click handler,
ELPA Syncer <=
- [nongnu] elpa/gruvbox-theme 4d39894856 110/258: Fix palette in preview, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme e4bc0012f6 131/258: Grouped common functionality of theme variant in single file, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme bb351731fc 135/258: Minor formatting cleanup, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 35b1582284 133/258: Updated copyright notice, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 0207d5b30d 139/258: Deleted duplicate face definitions, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 0f0f472c4d 142/258: Move images to subfolder, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 21c1673622 155/258: Added support for sh-quoted-exec and sh-heredoc, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 80a26e2f5a 165/258: added window-divider face, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme ebd674547d 164/258: Increased contrast between active and inactive mode line face, ELPA Syncer, 2022/01/01
- [nongnu] elpa/gruvbox-theme 4588616cea 166/258: Fix a function name typo, ELPA Syncer, 2022/01/01