diff --git a/YACReaderLibrary/grid_comics_view.cpp b/YACReaderLibrary/grid_comics_view.cpp index 231ed770..067268b2 100644 --- a/YACReaderLibrary/grid_comics_view.cpp +++ b/YACReaderLibrary/grid_comics_view.cpp @@ -72,6 +72,10 @@ void GridComicsView::setModel(ComicModel *model) ctxt->setContextProperty("borderColor", "#DBDBDB"); ctxt->setContextProperty("titleColor", "#121212"); ctxt->setContextProperty("textColor", "#636363"); + //fonts settings + ctxt->setContextProperty("fontSize", "11"); + ctxt->setContextProperty("fontFamily", "none"); + ctxt->setContextProperty("fontSpacing", "0.5"); #else ctxt->setContextProperty("backgroundColor", "#2A2A2A"); @@ -82,6 +86,10 @@ void GridComicsView::setModel(ComicModel *model) ctxt->setContextProperty("titleColor", "#E6E6E6"); ctxt->setContextProperty("textColor", "#E6E6E6"); ctxt->setContextProperty("dropShadow",false); + //fonts settings + ctxt->setContextProperty("fontSize", "none"); + ctxt->setContextProperty("fontFamily", "none"); + ctxt->setContextProperty("fontSpacing", "0.5"); #endif diff --git a/YACReaderLibrary/qml/GridComicsView.qml b/YACReaderLibrary/qml/GridComicsView.qml index 8ee8de0c..cf300d2f 100644 --- a/YACReaderLibrary/qml/GridComicsView.qml +++ b/YACReaderLibrary/qml/GridComicsView.qml @@ -166,16 +166,18 @@ Rectangle { elide: Text.ElideRight color: titleColor clip: true - font.letterSpacing: 0.5 - font.pointSize: 11 + font.letterSpacing: fontSpacing + font.pointSize: fontSize + font.family: fontFamily } //number Text { anchors {bottom: realCell.bottom; left: realCell.left; margins: 4} text: number?"#"+number:"" color: textColor - font.letterSpacing: 0.5 - font.pointSize: 11 + font.letterSpacing: fontSpacing + font.pointSize: fontSize + font.family: fontFamily } //page icon Image { @@ -189,8 +191,9 @@ Rectangle { anchors {bottom: realCell.bottom; right: pageImage.left; margins: 4} text: has_been_opened?current_page+"/"+num_pages:num_pages color: textColor - font.letterSpacing: 0.5 - font.pointSize: 11 + font.letterSpacing: fontSpacing + font.pointSize: fontSize + font.family: fontFamily } //rating icon Image {