Initial UI
This commit is contained in:
1 parent
4d52c8cc60
commit
3c0037cfc9
29 files changed
+1367
-2
No files matched your search
@@ -0,0 +1,41 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import Asteria
|
||||
|
||||
Rectangle {
|
||||
gradient: Gradient {
|
||||
GradientStop { position: 0.0; color: Theme.gradientTop }
|
||||
GradientStop { position: 1.0; color: Theme.gradientBottom }
|
||||
}
|
||||
|
||||
Flickable {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 12
|
||||
contentHeight: contentText.implicitHeight
|
||||
clip: true
|
||||
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
policy: ScrollBar.AsNeeded
|
||||
contentItem: Rectangle {
|
||||
implicitWidth: 18
|
||||
radius: 3
|
||||
color: Theme.scrollbarThumb
|
||||
}
|
||||
background: Rectangle {
|
||||
implicitWidth: 18
|
||||
color: Theme.scrollbarTrack
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
id: contentText
|
||||
width: parent.width
|
||||
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
||||
textFormat: Text.RichText
|
||||
font.pixelSize: 16
|
||||
lineHeight: 1.6
|
||||
color: Theme.readingText
|
||||
text: bookController.hasBook ? readingModel.chapterContent : "Open a book to start reading"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user