mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-10 21:09:13 +00:00
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>
This commit is contained in:
26
gpt4all-chat/qml/MyTabButton.qml
Normal file
26
gpt4all-chat/qml/MyTabButton.qml
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user