Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions assets/Attribution.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
All images in this folder (and subfolders) are from fonts.google.com and licensed under the Apache License, Version 2.0.
Discord icon provided by Discord from their brand asset pack https://my.corebook.io/1zObrQ89Q4wHhgFCfYIUhMUvmNf4XjxO/02-logo/download
Icons are made by Daisuke88 on Discord
All other images in this folder (and subfolders) are from fonts.google.com and licensed under the Apache License, Version 2.0.
You can retrieve a copy of the license at https://www.apache.org/licenses/LICENSE-2.0.

Icons are made by Daisuke88 on Discord
Binary file added assets/Discord-Symbol-Blurple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@
import json
import threading

from loguru import logger as log
from gi.repository import Gtk

# Import StreamController modules
from src.backend.PluginManager.PluginBase import PluginBase
from src.backend.PluginManager.ActionHolder import ActionHolder
from src.backend.DeckManagement.InputIdentifier import Input
from src.backend.PluginManager.ActionInputSupport import ActionInputSupport
from src.backend.DeckManagement.ImageHelpers import image2pixbuf

# Import actions
from .settings import PluginSettings
Expand All @@ -16,10 +20,12 @@
from .actions.ChangeTextChannel import ChangeTextChannel
from .actions.TogglePTT import TogglePTT

from loguru import logger as log


class PluginTemplate(PluginBase):
def get_selector_icon(self) -> Gtk.Widget:
_, rendered = self.asset_manager.icons.get_asset_values("main")
return Gtk.Image.new_from_pixbuf(image2pixbuf(rendered))

def __init__(self):
super().__init__(use_legacy_locale=False)
self.callbacks = {}
Expand Down Expand Up @@ -56,6 +62,8 @@ def __init__(self):
self.setup_backend()

def _add_icons(self):
self.add_icon("main", self.get_asset_path(
"Discord-Symbol-Blurple.png"))
self.add_icon("deafen", self.get_asset_path("deafen.png"))
self.add_icon("undeafen", self.get_asset_path("undeafen.png"))
self.add_icon("mute", self.get_asset_path("mute.png"))
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.6.1",
"version": "1.7.0",
"thumbnail": "store/thumbnail.png",
"id": "com_imdevinc_StreamControllerDiscordPlugin",
"name": "Discord",
Expand Down