Skip to content

Commit

Permalink
Use pallette theme instead of 'hardcoded' color
Browse files Browse the repository at this point in the history
  • Loading branch information
Terence Sambo authored and fredldotme committed Jul 24, 2021
1 parent 210c7a4 commit 21e97c1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qml/main.qml
Expand Up @@ -4,6 +4,7 @@ import QtQuick.Layouts 1.0
import Qt.labs.settings 1.0
import Ubuntu.Components 1.3
import Ubuntu.Components.Popups 1.3
import Ubuntu.Components.Themes 1.3

ApplicationWindow {
id: window
Expand Down Expand Up @@ -77,7 +78,8 @@ ApplicationWindow {
}
Button {
text: qsTr("Ok")
color: UbuntuColors.green
color: theme.palette.normal.positive

enabled: !enterDelayTimer.running
onClicked: {
isoManager.userPassword = entry.text
Expand All @@ -92,7 +94,6 @@ ApplicationWindow {
}
Button {
text: qsTr("Cancel")
//color: UbuntuColors.red
enabled: !enterDelayTimer.running
onClicked: {
PopupUtils.close(dialogue)
Expand Down Expand Up @@ -122,7 +123,8 @@ ApplicationWindow {

Button {
text: qsTr("Ok")
color: UbuntuColors.green
color: theme.palette.normal.positive

onClicked: {
PopupUtils.close(settingsDialogue)
settingsDialogOpen = false
Expand Down

0 comments on commit 21e97c1

Please sign in to comment.