We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b0fd34 commit df4440cCopy full SHA for df4440c
1 file changed
usergui.js
@@ -732,6 +732,24 @@ class UserGui {
732
field.dispatchEvent(event);
733
}
734
735
+ setPrimaryColor(hex) {
736
+ const styles = `
737
+ #header {
738
+ background-color: ${hex} !important;
739
+ }
740
+ .nav-link {
741
+ color: ${hex} !important;
742
743
+ .text-primary {
744
745
746
+ `;
747
+
748
+ const styleSheet = document.createElement("style")
749
+ styleSheet.innerText = styles;
750
+ this.document.head.appendChild(styleSheet);
751
752
753
// Creates an event listener a GUI element
754
event(name, event, eventFunction) {
755
this.document.querySelector(`.field-${name}`).addEventListener(event, eventFunction);
0 commit comments