Improve button color on solid color background

main
reionwong 4 years ago
parent 44a8797cf4
commit f605403037

@ -17,9 +17,9 @@ Item {
Layout.fillHeight: true
property color backgroundColor: FishUI.Theme.backgroundColor
property color hoveredColor: FishUI.Theme.darkMode ? Qt.lighter(FishUI.Theme.backgroundColor, 1.1)
property color hoveredColor: FishUI.Theme.darkMode ? Qt.lighter(FishUI.Theme.backgroundColor, 1.7)
: Qt.darker(FishUI.Theme.backgroundColor, 1.1)
property color pressedColor: FishUI.Theme.darkMode ? Qt.darker(FishUI.Theme.backgroundColor, 1.05)
property color pressedColor: FishUI.Theme.darkMode ? Qt.lighter(FishUI.Theme.backgroundColor, 1.4)
: Qt.darker(FishUI.Theme.backgroundColor, 1.3)
property color flatBg: FishUI.Theme.highlightColor

@ -37,7 +37,7 @@ Item {
id: label
anchors.fill: parent
horizontalAlignment: Qt.AlignRight
text: historyModel.get(index).text
text: historyModel.count > 0 ? historyModel.get(index).text : ""
elide: Text.ElideMiddle
color: FishUI.Theme.disabledTextColor

@ -48,7 +48,7 @@ FishUI.Window {
Rectangle {
z: -1
anchors.fill: parent
color: rootWindow.background.color
color: FishUI.Theme.secondBackgroundColor
opacity: 0.4
}

Loading…
Cancel
Save