gpt4all/gpt4all-chat/qml/MyTabButton.qml
AT 9b978f25e1
Break the explore models view into two. (#3269)
Signed-off-by: Adam Treat <treat.adam@gmail.com>
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
Signed-off-by: Victor <158754254+SINAPSA-IC@users.noreply.github.com>
Co-authored-by: Jared Van Bortel <jared@nomic.ai>
Co-authored-by: Victor <158754254+SINAPSA-IC@users.noreply.github.com>
2024-12-13 17:33:05 -05:00

27 lines
724 B
QML

import QtCore
import QtQuick
import QtQuick.Controls
import QtQuick.Controls.Basic
import mysettings
import mysettingsenums
MySettingsButton {
property bool isSelected: false
contentItem: Text {
text: parent.text
horizontalAlignment: Qt.AlignCenter
color: isSelected ? theme.titleTextColor : theme.styledTextColor
font.pixelSize: theme.fontSizeLarger
}
background: Item {
visible: isSelected || hovered
Rectangle {
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
height: 3
color: isSelected ? theme.titleTextColor : theme.styledTextColorLighter
}
}
}