Rename Library to History
This commit is contained in:
11 files changed
+102
-102
No files matched your search
+4
-4
@@ -134,9 +134,9 @@ ApplicationWindow {
|
||||
visible: window.currentPage === "settings"
|
||||
}
|
||||
|
||||
LibraryPage {
|
||||
HistoryPage {
|
||||
anchors.fill: parent
|
||||
visible: window.currentPage === "library"
|
||||
visible: window.currentPage === "history"
|
||||
}
|
||||
|
||||
BusyIndicator {
|
||||
@@ -171,7 +171,7 @@ ApplicationWindow {
|
||||
if (window._startupRestore) {
|
||||
window._startupRestore = false
|
||||
var savedPage = uiState.lastPage
|
||||
if (savedPage === "library" || savedPage === "settings")
|
||||
if (savedPage === "history" || savedPage === "settings")
|
||||
window.currentPage = savedPage
|
||||
else
|
||||
window.currentPage = "reader"
|
||||
@@ -277,7 +277,7 @@ ApplicationWindow {
|
||||
book.openFromPath(uiState.lastFilePath)
|
||||
} else {
|
||||
var savedPage = uiState.lastPage
|
||||
if (savedPage === "library" || savedPage === "settings")
|
||||
if (savedPage === "history" || savedPage === "settings")
|
||||
window.currentPage = savedPage
|
||||
window.sidebarOpen = true
|
||||
}
|
||||
|
||||
@@ -62,8 +62,8 @@ Rectangle {
|
||||
|
||||
SideBarButton {
|
||||
iconText: "\ue02f"
|
||||
title: "Library"
|
||||
onClicked: sidebar.navigateTo("library")
|
||||
title: "History"
|
||||
onClicked: sidebar.navigateTo("history")
|
||||
}
|
||||
|
||||
SideBarButton {
|
||||
|
||||
@@ -6,9 +6,9 @@ Rectangle {
|
||||
color: ThemeManager.currentTheme.backgroundDefault
|
||||
|
||||
Text {
|
||||
visible: libraryModel.count === 0
|
||||
visible: historyModel.count === 0
|
||||
anchors.centerIn: parent
|
||||
text: "No books read yet.\nOpen a book to start your library."
|
||||
text: "No books read yet.\nOpen a book to start your history."
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
color: ThemeManager.currentTheme.dimText
|
||||
font.pixelSize: 14
|
||||
@@ -16,12 +16,12 @@ Rectangle {
|
||||
}
|
||||
|
||||
ListView {
|
||||
visible: libraryModel.count > 0
|
||||
visible: historyModel.count > 0
|
||||
anchors.fill: parent
|
||||
anchors.margins: 16
|
||||
spacing: 8
|
||||
clip: true
|
||||
model: libraryModel
|
||||
model: historyModel
|
||||
|
||||
delegate: Rectangle {
|
||||
id: bookRow
|
||||
@@ -92,7 +92,7 @@ Rectangle {
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
background: Item {}
|
||||
onClicked: libraryModel.removeBook(filePath)
|
||||
onClicked: historyModel.removeBook(filePath)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user