fixing some color pieces

This commit is contained in:
Chris Cochrun 2023-10-05 17:44:07 -05:00
parent cc3f87e6f5
commit 18a976f9bd
3 changed files with 12 additions and 2 deletions

View file

@ -64,6 +64,7 @@ ColumnLayout {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
elide: Text.ElideLeft elide: Text.ElideLeft
text: headerLabel text: headerLabel
color: libraryMouseArea.containsMouse ? Kirigami.Theme.focusColor : Kirigami.Theme.textColor
} }
Controls.Label { Controls.Label {
@ -72,7 +73,8 @@ ColumnLayout {
verticalCenter: libraryLabel.verticalCenter verticalCenter: libraryLabel.verticalCenter
leftMargin: 15} leftMargin: 15}
text: count text: count
color: Kirigami.Theme.disabledTextColor font.pointSize: 9
color: libraryMouseArea.containsMouse ? Kirigami.Theme.focusColor : Kirigami.Theme.textColor
} }
Kirigami.Icon { Kirigami.Icon {
@ -82,6 +84,7 @@ ColumnLayout {
rightMargin: 10} rightMargin: 10}
source: "arrow-down" source: "arrow-down"
rotation: selectedLibrary == libraryType ? 0 : 180 rotation: selectedLibrary == libraryType ? 0 : 180
color: libraryMouseArea.containsMouse ? Kirigami.Theme.focusColor : Kirigami.Theme.textColor
Behavior on rotation { Behavior on rotation {
NumberAnimation { NumberAnimation {
@ -92,7 +95,9 @@ ColumnLayout {
} }
MouseArea { MouseArea {
id: libraryMouseArea
anchors.fill: parent anchors.fill: parent
hoverEnabled: true
onClicked: { onClicked: {
if (selectedLibrary == libraryType) if (selectedLibrary == libraryType)
selectedLibrary = "" selectedLibrary = ""

View file

@ -14,7 +14,8 @@ Item {
color: Kirigami.Theme.backgroundColor color: Kirigami.Theme.backgroundColor
anchors.fill: parent anchors.fill: parent
radius: 10 radius: 10
border.color: control.activeFocus ? Kirigami.Theme.highlightColor : (errorCondition ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.backgroundColor) border.width: 0.5
border.color: control.activeFocus ? Kirigami.Theme.highlightColor : (errorCondition ? Kirigami.Theme.negativeTextColor : Kirigami.Theme.disabledTextColor)
} }
DropShadow { DropShadow {

View file

@ -33,12 +33,16 @@ Item {
text: "Title:" text: "Title:"
} }
Controls.TextField { Controls.TextField {
id: titleId
implicitWidth: 300 implicitWidth: 300
hoverEnabled: true hoverEnabled: true
placeholderText: "Song Title..." placeholderText: "Song Title..."
text: video.title text: video.title
padding: 10 padding: 10
onEditingFinished: updateTitle(text); onEditingFinished: updateTitle(text);
background: Presenter.TextBackground {
control: titleId
}
} }
Controls.CheckBox { Controls.CheckBox {