Plugin icons for the feed buttons (right ui.icons: like, comment, collect, share), preview cards that a theme author attaches and the list of looks shows before a theme is picked, the sample plugins lihont.icons-sticker, lihont.theme-win95 and lihont.theme-sunset with their pictures, docs, SDK, skill and tests for all of it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
10 lines
654 B
Python
10 lines
654 B
Python
# Пример 9: свои значки на кнопках справа в ленте (лайк, комментарии, избранное, поделиться).
|
||
# Картинки (png, gif или webp) лежат в папке files рядом со скриптом. Кнопки остаются на местах и работают как раньше.
|
||
from lihont_ltp import *
|
||
|
||
plugin = Plugin("Стикерные значки", author="Вася", description="Яркие наклейки на кнопках ленты", license="MIT")
|
||
|
||
plugin.icons(like="heart.png", comment="bubble.png", collect="star.png", share="plane.png")
|
||
|
||
plugin.save()
|