File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- All images in this folder are from https://icons8.com
1+ Twitch icon provided by https://twitch.tv.
2+ All other images in this folder are from https://icons8.com
Original file line number Diff line number Diff line change 33import json
44
55from loguru import logger
6+ from gi .repository import Gtk
67
78# Import StreamController modules
89from src .backend .PluginManager .PluginBase import PluginBase
910from src .backend .PluginManager .ActionHolder import ActionHolder
1011from src .backend .DeckManagement .InputIdentifier import Input
1112from src .backend .PluginManager .ActionInputSupport import ActionInputSupport
13+ from src .backend .DeckManagement .ImageHelpers import image2pixbuf
1214
1315# Import actions
1416from .settings import PluginSettings
2224
2325
2426class PluginTemplate (PluginBase ):
27+ def get_selector_icon (self ) -> Gtk .Widget :
28+ _ , rendered = self .asset_manager .icons .get_asset_values ("main" )
29+ return Gtk .Image .new_from_pixbuf (image2pixbuf (rendered ))
30+
2531 def _add_icons (self ):
32+ self .add_icon ("main" , self .get_asset_path ("glitch_flat_purple.png" ))
2633 self .add_icon ("chat" , self .get_asset_path ("chat.png" ))
2734 self .add_icon ("camera" , self .get_asset_path ("camera.png" ))
2835 self .add_icon ("bookmark" , self .get_asset_path ("bookmark.png" ))
You can’t perform that action at this time.
0 commit comments