// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-only #include "TitleLabel.h" TitleLabel::TitleLabel(QString text, QWidget *parent) : QLabel(parent) { // Slim section header: navy bold text with a coral accent rule, in place of a heavy 50px // full-width salmon bar. Keeps the salmon identity (the rule) while letting panels breathe. setText(text); QFont f = font(); f.setBold(true); setFont(f); setStyleSheet("QLabel {" " color: #1F3A5F;" " background-color: transparent;" " border-left: 3px solid #FA7268;" " border-bottom: 1px solid #FA7268;" " padding: 3px 6px 3px 8px; }"); setAlignment(Qt::AlignLeft | Qt::AlignVCenter); setFixedHeight(26); }