// SPDX-License-Identifier: GPL-3.0-or-later // Copyright 2025 Juan Palacios import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 import "Style.js" as Style TabButton { id: btn implicitHeight: 48 contentItem: Text { text: btn.text font: btn.font color: btn.checked ? Style.Theme.accent : Style.Theme.foreground horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter elide: Text.ElideRight } background: ColumnLayout { anchors.fill: parent spacing: 0 // active accent Rectangle { visible: btn.checked color: Style.Theme.accent Layout.preferredHeight: 2 Layout.fillWidth: true } // content Rectangle { color: btn.hovered ? Style.TabBar.Button.MainFooter.background_alt : Style.TabBar.Button.MainFooter.background Layout.fillWidth: true Layout.fillHeight: true } } }