Use same properties for every terminal level

Initially it was planned to have separate text configuration for every
terminal level. It's not useful, use same properties for every level is
sufficient and visually more consistent.
By consequent every QVector related to these properties was replaced by
a single value.
This commit is contained in:
joshua
2025-03-12 21:48:18 +01:00
parent 2d89d70682
commit 2c1b840f9c
4 changed files with 22 additions and 62 deletions

View File

@@ -162,7 +162,7 @@ void TerminalStripDrawer::paint(QPainter *painter)
//Draw text
painter->save();
text_rect.setRect(0, terminals_text_y, terminal_rect.width(), terminals_text_height);
if (terminals_text_orientation[index_] == Qt::Vertical)
if (terminals_text_orientation == Qt::Vertical)
{
painter->translate(text_rect.bottomLeft());
painter->rotate(270);
@@ -172,7 +172,7 @@ void TerminalStripDrawer::paint(QPainter *painter)
const auto shared_real_terminal{real_terminal_vector[i]};
painter->drawText(text_rect,
shared_real_terminal ? shared_real_terminal->label() : QLatin1String(),
terminals_text_option[index_]);
terminals_text_option);
if (m_preview_draw)
{