ai chat: adjust msg header style

This commit is contained in:
end-4
2025-10-12 13:13:25 +02:00
parent a0ceed9586
commit c2edd26598
3 changed files with 141 additions and 131 deletions
@@ -32,7 +32,7 @@ Button {
implicitWidth: (root.down && bounce) ? clickedWidth : baseWidth implicitWidth: (root.down && bounce) ? clickedWidth : baseWidth
implicitHeight: (root.down && bounce) ? clickedHeight : baseHeight implicitHeight: (root.down && bounce) ? clickedHeight : baseHeight
property color colBackground: ColorUtils.transparentize(Appearance?.colors.colLayer1Hover, 1) || "transparent" property color colBackground: ColorUtils.transparentize(colBackgroundHover, 1) || "transparent"
property color colBackgroundHover: Appearance?.colors.colLayer1Hover ?? "#E5DFED" property color colBackgroundHover: Appearance?.colors.colLayer1Hover ?? "#E5DFED"
property color colBackgroundActive: Appearance?.colors.colLayer1Active ?? "#D6CEE2" property color colBackgroundActive: Appearance?.colors.colLayer1Active ?? "#D6CEE2"
property color colBackgroundToggled: Appearance?.colors.colPrimary ?? "#65558F" property color colBackgroundToggled: Appearance?.colors.colPrimary ?? "#65558F"
@@ -79,15 +79,23 @@ Rectangle {
anchors.margins: messagePadding anchors.margins: messagePadding
spacing: root.contentSpacing spacing: root.contentSpacing
RowLayout { // Header Rectangle {
spacing: 15
Layout.fillWidth: true Layout.fillWidth: true
implicitWidth: headerRowLayout.implicitWidth + 4 * 2
Rectangle { // Name implicitHeight: headerRowLayout.implicitHeight + 4 * 2
id: nameWrapper
color: Appearance.colors.colSecondaryContainer color: Appearance.colors.colSecondaryContainer
// color: "transparent"
radius: Appearance.rounding.small radius: Appearance.rounding.small
RowLayout { // Header
id: headerRowLayout
anchors {
fill: parent
margins: 4
}
spacing: 18
Item { // Name
id: nameWrapper
implicitHeight: Math.max(nameRowLayout.implicitHeight + 5 * 2, 30) implicitHeight: Math.max(nameRowLayout.implicitHeight + 5 * 2, 30)
Layout.fillWidth: true Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
@@ -232,6 +240,7 @@ Rectangle {
} }
} }
} }
}
Loader { Loader {
Layout.fillWidth: true Layout.fillWidth: true
@@ -8,8 +8,9 @@ GroupButton {
property string buttonIcon property string buttonIcon
property bool activated: false property bool activated: false
toggled: activated toggled: activated
baseWidth: height baseWidth: height
colBackgroundHover: Appearance.colors.colSecondaryContainerHover
colBackgroundActive: Appearance.colors.colSecondaryContainerActive
contentItem: MaterialSymbol { contentItem: MaterialSymbol {
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter