Commit c81b1d69 authored by Sebastian Gottfried's avatar Sebastian Gottfried

Qt5: Custom Lesson Selector Fixes

 * Fix tool button icons
 * Fix delete confirmation / undo toolbar layout
parent 50dd985e
......@@ -171,12 +171,12 @@ Item {
opacity: base.selectedLesson !== null? 1: 0
content: [
ToolButton {
iconSource: "document-edit"
iconName: "document-edit"
text: i18n("Edit")
onClicked: editLesson()
},
ToolButton {
iconSource: "edit-delete"
iconName: "edit-delete"
text: i18n("Delete")
onClicked: deleteLesson()
}
......@@ -204,18 +204,19 @@ Item {
content: [
Label {
text: i18n("'%1' deleted.", undoToolbar.lastDeletedLessonTitle)
anchors.verticalCenter: parent.verticalCenter
},
Item {
width: 5
height: 1
},
ToolButton {
iconSource: "edit-undo"
iconName: "edit-undo"
text: i18n("Undo")
onClicked: undoLessonDeletion()
},
ToolButton {
iconSource: "dialog-close"
iconName: "dialog-close"
text: i18n("Dismiss")
onClicked: confirmLessonDeletion()
}
......
......@@ -28,17 +28,18 @@ Item {
width: contentArea.width + 6
height: contentArea.height + 6
SystemPalette {
id: palette
colorGroup: SystemPalette.Active
}
Rectangle {
anchors.fill: parent
id: background
color: pallete.mid
color: activePalette.mid
opacity: 0.7
radius: 3
SystemPalette {
id: activePalette
colorGroup: SystemPalette.Active
}
}
Behavior on opacity {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment