src/store/store.js
/**
   * Set all messages to have no color background.
   *
   * @memberof Store
   */
Set all messages to have no color background.
@memberof Store
Set all messages to have no color background . @memberof Store
@action
  toggleMessagesNoColor() {
    const color = store.theme.palette.background.default;
    if (this.messagesNoColor) {
      for (const [k, v] of Object.entries(this.channelsSheet.classes)) {
        this.channelsSheet.getRule(k).prop("background-color", `${color}`);
      }
    } else {
      for (const [k, v] of Object.entries(this.channelsSheet.classes)) {
        const originalBackgroundColor = this.channelsSheet.getRule(k).style[
          "original-background-color"
        ];
        this.channelsSheet
          .getRule(k)
          .prop("background-color", `${originalBackgroundColor}`);
      }
    }
  }
@ action toggleMessagesNoColor ( ) { const color = store . theme . palette . background . default ; if ( this . messagesNoColor ) { for ( const [ k , v ] of Object . entries ( this . channelsSheet . classes ) ) { this . channelsSheet . getRule ( k ) . prop ( "background-color" , ` ${ color } ` ) ; } } else { for ( const [ k , v ] of Object . entries ( this . channelsSheet . classes ) ) { const originalBackgroundColor = this . channelsSheet . getRule ( k ) . style [ "original-background-color" ] ; this . channelsSheet . getRule ( k ) . prop ( "background-color" , ` ${ originalBackgroundColor } ` ) ; } } }
Set all messages to have no color background.
Set all messages to have no color background .