Set up structure for Phase 5: ReaderPage and ComposePage placeholders, updated MailListPage and Shell for navigation to reader and composer
This commit is contained in:
+24
-5
@@ -81,11 +81,23 @@ ApplicationWindow {
|
||||
}
|
||||
}
|
||||
|
||||
// Main content area with StackView for pages
|
||||
StackView {
|
||||
id: stackView
|
||||
anchors.fill: parent
|
||||
initialItem: MailListPage {}
|
||||
// Define pages
|
||||
MailListPage {
|
||||
id: mailListPage
|
||||
onEmailSelected: {
|
||||
stackView.push(readerPage, { "emailId": emailId })
|
||||
}
|
||||
onComposeRequested: {
|
||||
stackView.push(composePage)
|
||||
}
|
||||
}
|
||||
|
||||
ReaderPage {
|
||||
id: readerPage
|
||||
}
|
||||
|
||||
ComposePage {
|
||||
id: composePage
|
||||
}
|
||||
|
||||
// Placeholder for other pages
|
||||
@@ -99,6 +111,13 @@ ApplicationWindow {
|
||||
id: settingsPage
|
||||
}
|
||||
|
||||
// Main content area with StackView for pages
|
||||
StackView {
|
||||
id: stackView
|
||||
anchors.fill: parent
|
||||
initialItem: mailListPage
|
||||
}
|
||||
|
||||
// Hamburger button to open drawer
|
||||
MenuButton {
|
||||
icon: "menu"
|
||||
|
||||
Reference in New Issue
Block a user