[app] Sync pager opacity with the brightness in night mode
This commit is contained in:
parent
b12d1be404
commit
312cf35bdd
1 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 2015-2020 Jolla Ltd.
|
Copyright (C) 2015-2022 Jolla Ltd.
|
||||||
Copyright (C) 2015-2020 Slava Monich <slava.monich@jolla.com>
|
Copyright (C) 2015-2022 Slava Monich <slava.monich@jolla.com>
|
||||||
|
|
||||||
You may use this file under the terms of BSD license as follows:
|
You may use this file under the terms of BSD license as follows:
|
||||||
|
|
||||||
|
@ -35,6 +35,8 @@ import QtQuick 2.0
|
||||||
import Sailfish.Silica 1.0
|
import Sailfish.Silica 1.0
|
||||||
import harbour.books 1.0
|
import harbour.books 1.0
|
||||||
|
|
||||||
|
import "Books.js" as Books
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
@ -127,6 +129,7 @@ Item {
|
||||||
maximumValue: pageCount > 0 ? pageCount - 1 : 0
|
maximumValue: pageCount > 0 ? pageCount - 1 : 0
|
||||||
leftMargin: Theme.horizontalPageMargin
|
leftMargin: Theme.horizontalPageMargin
|
||||||
rightMargin: Theme.horizontalPageMargin
|
rightMargin: Theme.horizontalPageMargin
|
||||||
|
opacity: Books.contentOpacity(Settings.brightness)
|
||||||
primaryColor: Settings.primaryPageToolColor
|
primaryColor: Settings.primaryPageToolColor
|
||||||
secondaryColor: Settings.primaryPageToolColor
|
secondaryColor: Settings.primaryPageToolColor
|
||||||
highlightColor: Settings.highlightPageToolColor
|
highlightColor: Settings.highlightPageToolColor
|
||||||
|
|
Loading…
Reference in a new issue