0xcolor -> 0xCOLOR

This commit is contained in:
keringo
2025-06-26 02:17:21 +03:00
parent 4b333f3a6b
commit 8573c01557
3 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -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 = {

View File

@@ -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 = {