-
Notifications
You must be signed in to change notification settings - Fork 1
/
consts.py
57 lines (51 loc) · 1.64 KB
/
consts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright: (C) 2021 Ren Tatsumoto <tatsu at autistici.org>
# License: GNU AGPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html
import os
ADDON_SERIES = "AJT"
DIALOG_NAME = "About"
ANKIWEB_LINK = "https://ankiweb.net/shared/by-author/1344485230"
WEBSITE_LINK = "https://tatsumoto.neocities.org/"
COMMUNITY_LINK = "https://tatsumoto.neocities.org/blog/join-our-community.html"
DONATE_LINK = "https://tatsumoto.neocities.org/blog/donating-to-tatsumoto.html"
TG_LINK = "https://t.me/ajatt_tools"
GITHUB_LINK = "https://github.com/Ajatt-Tools"
IMG_DIR = os.path.join(os.path.normpath(os.path.dirname(__file__)), "img")
CHAT_ICON_PATH = os.path.join(IMG_DIR, "element.svg")
DONATE_ICON_PATH = os.path.join(IMG_DIR, "patreon_logo.svg")
BUTTON_HEIGHT = 32
ICON_SIDE_LEN = 18
STYLES = """
<style>
a { color: SteelBlue; }
h2 { text-align: center; }
body { margin: 0 4px 0; }
</style>
"""
ABOUT_MSG = f"""
{STYLES}
<h2>Ajatt Tools add-ons</h2>
<p>
Thanks so much for using the
<a href="{ANKIWEB_LINK}">AJT</a>
add-on series!
</p>
<p>
If you would like to ensure you don't miss any AJT updates or new releases,
please consider visiting our
<a href="{WEBSITE_LINK}">website</a>,
joining
<a href="{COMMUNITY_LINK}">our community</a>
and following us on
<a href="{TG_LINK}">Telegram</a>!
</p>
<p>
If you want to participate in the development,
explore the <a href="{GITHUB_LINK}">Ajatt Tools GitHub organization</a>.
</p>
<p>
If the add-ons have been useful to you, please consider
<a href="{DONATE_LINK}">supporting my work</a>!
It allows me to put more time and focus into developing them.
Thank you!
</p>
"""