mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
0xcolor -> 0xCOLOR
This commit is contained in:
@@ -1106,7 +1106,7 @@ function ReaderView:onBlackLevelUpdate(black_hex, no_notification)
|
||||
self.ui:handleEvent(Event:new("UpdateScrollPageBlackLevel", black_hex))
|
||||
end
|
||||
if not no_notification then
|
||||
Notification:notify(T(_("Black level set to: %1."), string.format("#%x", black_hex)))
|
||||
Notification:notify(T(_("Black level set to: %1."), string.format("#%X", black_hex)))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1116,7 +1116,7 @@ function ReaderView:onWhiteLevelUpdate(white_hex, no_notification)
|
||||
self.ui:handleEvent(Event:new("UpdateScrollPageWhiteLevel", white_hex))
|
||||
end
|
||||
if not no_notification then
|
||||
Notification:notify(T(_("White level set to: %1."), string.format("#%x", white_hex)))
|
||||
Notification:notify(T(_("White level set to: %1."), string.format("#%X", white_hex)))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -111,6 +111,8 @@ describe("ReaderLink module", function()
|
||||
local expected_page_states = {
|
||||
{
|
||||
gamma = 1,
|
||||
black_hex = 0x000000,
|
||||
white_hex = 0xFFFFFF,
|
||||
offset = {x = 17, y = 0},
|
||||
page = 3,
|
||||
page_area = {
|
||||
@@ -126,6 +128,8 @@ describe("ReaderLink module", function()
|
||||
},
|
||||
{
|
||||
gamma = 1,
|
||||
black_hex = 0x000000,
|
||||
white_hex = 0xFFFFFF,
|
||||
offset = {x = 17, y = 0},
|
||||
page = 4,
|
||||
page_area = {
|
||||
|
||||
@@ -71,6 +71,8 @@ describe("Readerview module", function()
|
||||
page = 1,
|
||||
pos = 0,
|
||||
gamma = 1,
|
||||
black_hex = 0x000000,
|
||||
white_hex = 0xFFFFFF,
|
||||
offset = {
|
||||
x = 17, y = 0,
|
||||
h = 0, w = 0,
|
||||
@@ -124,6 +126,8 @@ describe("Readerview module", function()
|
||||
local saved_ctx = {
|
||||
{
|
||||
gamma = 1,
|
||||
black_hex = 0x000000,
|
||||
white_hex = 0xFFFFFF,
|
||||
offset = {x = 17, y = 0},
|
||||
page = 1,
|
||||
page_area = {
|
||||
|
||||
Reference in New Issue
Block a user