Files
LihonT/sdk/lihont-ltp/examples/09_icons.py
cheb0chik 38e7b2551e LihonT 2 Serena alpha 2
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>
2026-11-02 13:08:56 +03:00

10 lines
654 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Пример 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()