Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
13 changes: 2 additions & 11 deletions BetterChannelIcons/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
version = "1.3.7"
description = "Adds an array of new channel icons"

aliucord.changelog.set(
"""
Improved {improved marginTop}
======================

* Discord v126.18
""".trimIndent()
)
version = "1.3.8"
description = "Adds an array of new channel icons"

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
package xyz.wingio.plugins

import android.content.Context
import android.graphics.drawable.Drawable

import androidx.core.content.ContextCompat
import com.aliucord.Logger

import com.aliucord.annotations.AliucordPlugin
import com.aliucord.api.SettingsAPI
import com.aliucord.entities.Plugin

import com.lytefast.flexinput.R

import xyz.wingio.plugins.betterchannelicons.Patches
import xyz.wingio.plugins.betterchannelicons.PluginSettings

@AliucordPlugin
class BetterChannelIcons : Plugin() {

private var pluginIcon: Drawable? = null

companion object {
val logger = Logger("BetterChannelIcons")
lateinit var pluginSettings: SettingsAPI
}

init {
settingsTab = SettingsTab(PluginSettings::class.java).withArgs(settings)
needsResources = true
}

override fun start(context: Context) {
pluginSettings = settings
pluginIcon = ContextCompat.getDrawable(context, R.e.ic_channel_text_white_a60_24dp)

val patches = Patches(patcher)

patches.addChannelAction()
patches.setVoiceIcon()
patches.setTextIcon(resources)
patches.setToolbarIcon(resources)
}

override fun stop(context: Context) {
patcher.unpatchAll()
}

}

This file was deleted.

Loading