chat blocks use theme palette colors instead of hardcoded
This commit is contained in:
parent
873ad9ae23
commit
68e7dfa7c2
31
gui/main.qml
31
gui/main.qml
|
|
@ -185,6 +185,13 @@ ApplicationWindow {
|
||||||
text: modelData.id || ""
|
text: modelData.id || ""
|
||||||
highlighted: (modelData.id === ollie.activeSessionId)
|
highlighted: (modelData.id === ollie.activeSessionId)
|
||||||
onClicked: ollie.activeSessionId = modelData.id
|
onClicked: ollie.activeSessionId = modelData.id
|
||||||
|
contentItem: Label {
|
||||||
|
text: modelData.id || ""
|
||||||
|
color: theme.textColor
|
||||||
|
font.pointSize: theme.fontSize > 0 ? theme.fontSize : Qt.application.font.pointSize
|
||||||
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
leftPadding: 8
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 8; height: 8; radius: 4
|
width: 8; height: 8; radius: 4
|
||||||
|
|
@ -235,7 +242,7 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle { Layout.fillWidth: true; height: 1; color: palette.mid }
|
Rectangle { Layout.fillWidth: true; height: 1; color: theme.midColor }
|
||||||
|
|
||||||
// Chat display — block-based ListView
|
// Chat display — block-based ListView
|
||||||
ScrollView {
|
ScrollView {
|
||||||
|
|
@ -276,14 +283,14 @@ ApplicationWindow {
|
||||||
radius: 3
|
radius: 3
|
||||||
color: {
|
color: {
|
||||||
switch (blockType) {
|
switch (blockType) {
|
||||||
case "user": return "#e3f2fd"
|
case "user": return Qt.lighter(theme.highlightColor, 1.8)
|
||||||
case "assistant": return "#f3e5f5"
|
case "assistant": return Qt.lighter(theme.linkColor, 1.8)
|
||||||
case "reasoning": return "#fff3e0"
|
case "reasoning": return Qt.lighter(theme.midColor, 1.5)
|
||||||
case "call": return "#e8f5e9"
|
case "call": return Qt.lighter(theme.buttonColor, 1.1)
|
||||||
case "tool": return "#fce4ec"
|
case "tool": return Qt.lighter(theme.darkColor, 2.0)
|
||||||
case "error": return "#ffebee"
|
case "error": return Qt.lighter("#e53935", 1.6)
|
||||||
case "info": return "#f5f5f5"
|
case "info": return Qt.lighter(theme.midColor, 1.3)
|
||||||
default: return "#fafafa"
|
default: return theme.baseColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -307,7 +314,8 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
font.pointSize: theme.fontSize > 0 ? theme.fontSize * 0.85 : 11
|
font.pointSize: theme.fontSize > 0 ? theme.fontSize * 0.85 : 11
|
||||||
font.bold: true
|
font.bold: true
|
||||||
opacity: 0.8
|
color: theme.textColor
|
||||||
|
opacity: 0.9
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -323,12 +331,13 @@ ApplicationWindow {
|
||||||
textFormat: Text.PlainText
|
textFormat: Text.PlainText
|
||||||
font.family: theme.fontFamily || "monospace"
|
font.family: theme.fontFamily || "monospace"
|
||||||
font.pointSize: theme.fontSize > 0 ? theme.fontSize : 12
|
font.pointSize: theme.fontSize > 0 ? theme.fontSize : 12
|
||||||
|
color: theme.textColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle { Layout.fillWidth: true; height: 1; color: palette.mid }
|
Rectangle { Layout.fillWidth: true; height: 1; color: theme.midColor }
|
||||||
|
|
||||||
// Input
|
// Input
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
|
||||||
Reference in New Issue