Skip to content

Commit 105a257

Browse files
committed
Add icon and improve Readme
1 parent fbd31db commit 105a257

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
Keypirinha Plugin: QR Code
2-
3-
==========
4-
5-
A Plugin to convert string to QR Code from Keypirinha. You can
1+
A [Keypirinha](https://keypirinha.com) Plugin to convert text to QR Code. You can
62
- copy image generated to clipboard
73
- open in default image viewer
84

5+
### Install
6+
- Install via [Package Control](https://github.com/ueffel/Keypirinha-PackageControl)
7+
- Download from [releases](https://github.com/thisisleobro/Keypirinha-qrcode/releases) and copy to `Keypirinha\portable\Profile\InstalledPackages` for portable mode or `%APPDATA%\Keypirinha\InstalledPackages` for Installed mode
8+
9+
### Usage
10+
Start typing `QR Code` and select. Then just type some text and you will get the options to either copy to clipboard or open in default image viewer
11+
912
![](docs/copy_to_clipboard.gif)
1013
![](docs/open_in_image_viewer.gif)

qrcode/qrcode.png

4.82 KB
Loading

qrcode/qrcode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(self):
9898
super().__init__()
9999

100100
def on_start(self):
101-
pass
101+
self.set_default_icon(self.load_icon('res://qrcode/qrcode.png'))
102102

103103
def _generate_dib_content(self, text):
104104
qrcode = segno.make_qr(text)
@@ -211,7 +211,7 @@ def on_suggest(self, user_input, items_chain=[]):
211211
target=COPY_TO_CLIPBOARD_TARGET,
212212
args_hint=kp.ItemArgsHint.FORBIDDEN,
213213
hit_hint=kp.ItemHitHint.IGNORE,
214-
icon_handle=None
214+
# icon_handle=None
215215
# data_bag=image_uri
216216
),
217217
self.create_item(
@@ -221,7 +221,7 @@ def on_suggest(self, user_input, items_chain=[]):
221221
target=OPEN_IMAGE_TARGET,
222222
args_hint=kp.ItemArgsHint.FORBIDDEN,
223223
hit_hint=kp.ItemHitHint.IGNORE,
224-
icon_handle=None
224+
# icon_handle=None
225225
# data_bag=image_uri
226226
)
227227
])

0 commit comments

Comments
 (0)