[Themes] Implement chat background image (#64)
* [Themes] hardcode fuyu chat bg * [Themes > BG] listen to theme file * remove .apply() * some uhh misc changes * readd * how * [Global] Minor changes --------- Co-authored-by: Beef <beefers@riseup.net>
This commit is contained in:
parent
ef0b162d3a
commit
20310db733
5 changed files with 40 additions and 10 deletions
|
@ -62,7 +62,7 @@ interface Button {
|
|||
}
|
||||
|
||||
const tabs: Tab[] = [
|
||||
{ id: "message",title: "Message" },
|
||||
{ id: "message", title: "Message" },
|
||||
{ id: "stack", title: "Stack Trace" },
|
||||
{ id: "componentStack", title: "Component", trimWhitespace: true },
|
||||
];
|
||||
|
@ -74,7 +74,7 @@ export default () => after("render", ErrorBoundary.prototype, function (this: an
|
|||
this.state.activeTab ??= "message";
|
||||
const tabData = tabs.find(t => t.id === this.state.activeTab);
|
||||
const errorText: string = this.state.error[this.state.activeTab];
|
||||
|
||||
|
||||
// This is in the patch and not outside of it so that we can use `this`, e.g. for setting state
|
||||
const buttons: Button[] = [
|
||||
{ text: "Restart Discord", onPress: this.handleReload },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue