| 108 | } |
| 109 | |
| 110 | void OutputWidget::setTheme(const Theme& theme, bool darkMode) |
| 111 | { |
| 112 | _defaultCharFormat.setForeground(theme.textColor.get(darkMode)); |
| 113 | _noticeCharFormat.setForeground(theme.functionColor.get(darkMode)); |
| 114 | _errorCharFormat.setForeground(theme.errorColor.get(darkMode)); |
| 115 | _errorCharFormat.setForeground(theme.errorColor.get(darkMode)); |
| 116 | _infoCharFormat.setForeground(Qt::gray); |
| 117 | _commentCharFormat.setForeground(theme.commentColor.get(darkMode)); |
| 118 | |
| 119 | ui->textBrowser->viewport()->setStyleSheet(theme.styleSheet(darkMode)); |
| 120 | } |
| 121 | |
| 122 | void OutputWidget::scrollToBottom() |
| 123 | { |
nothing calls this directly
no test coverage detected