Refactor using Fable
This commit is contained in:
90 files changed
+2080
-2267
No files matched your search
@@ -33,19 +33,14 @@ Rectangle {
|
||||
}
|
||||
|
||||
// Close button aligned with main header row
|
||||
Button {
|
||||
FlatIconButton {
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 12
|
||||
y: ThemeManager.headerHeight / 2 - height / 2
|
||||
z: 1
|
||||
flat: true
|
||||
contentItem: Text {
|
||||
text: "\ue5cb"
|
||||
font.family: "Material Icons Outlined"
|
||||
font.pixelSize: 24
|
||||
color: DarkTheme.sidebarButtonText
|
||||
}
|
||||
background: Item {}
|
||||
iconText: "\ue5cb"
|
||||
iconSize: 24
|
||||
iconColor: ThemeManager.currentTheme.sidebarButtonText
|
||||
onClicked: sidebar.closeDrawer()
|
||||
}
|
||||
|
||||
@@ -174,8 +169,8 @@ Rectangle {
|
||||
text: modelData.title
|
||||
font.pixelSize: 13
|
||||
color: readingModel.currentChapter === modelData.chapterIndex
|
||||
? ThemeManager.sidebarButtonText
|
||||
: ThemeManager.uiText
|
||||
? ThemeManager.currentTheme.sidebarButtonText
|
||||
: ThemeManager.currentTheme.uiText
|
||||
elide: Text.ElideRight
|
||||
wrapMode: Text.NoWrap
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user