This website requires JavaScript.
Explore
Help
Register
Sign In
medvedych
/
harbour-books
Watch
1
Star
0
Fork
You've already forked harbour-books
0
Code
Issues
Pull requests
Projects
Releases
1
Packages
Wiki
Activity
01736c1390
harbour-books
/
app
/
qml
/
Books.js
6 lines
91 B
JavaScript
Raw
Normal View
History
Unescape
Escape
[app] Made night mode brightness configurable Brightness control is implemented by rendering content with transparent background, providing background as a separate item behind the content and adjusting opacity of the content item according to the selected brightness.
2020-09-20 19:15:45 +03:00
.
pragma
library
function
contentOpacity
(
brightness
)
{
[app] Added UI to configure night mode brightnesss
2020-10-23 01:21:24 +03:00
return
0.4
+
brightness
*
0.6
[app] Made night mode brightness configurable Brightness control is implemented by rendering content with transparent background, providing background as a separate item behind the content and adjusting opacity of the content item according to the selected brightness.
2020-09-20 19:15:45 +03:00
}
Reference in a new issue
Copy permalink