@@ -63,7 +63,8 @@ struct FixedPageUI {
63
63
// subconsciously determine reading progress; suggested values: #2828aa
64
64
// #28aa28 #aa2828
65
65
Vec<char *>* gradientColors;
66
- // if true, TextColor and BackgroundColor will be temporarily swapped
66
+ // if true, TextColor and BackgroundColor of the document will be
67
+ // swapped
67
68
bool invertColors;
68
69
// if true, hides the scrollbars but retains ability to scroll
69
70
bool hideScrollbars;
@@ -467,11 +468,12 @@ static const FieldInfo gFixedPageUIFields[] = {
467
468
{offsetof (FixedPageUI, windowMargin), SettingType::Compact, (intptr_t )&gWindowMarginInfo },
468
469
{offsetof (FixedPageUI, pageSpacing), SettingType::Compact, (intptr_t )&gSizeInfo },
469
470
{offsetof (FixedPageUI, gradientColors), SettingType::ColorArray, 0 },
471
+ {offsetof (FixedPageUI, invertColors), SettingType::Bool, false },
470
472
{offsetof (FixedPageUI, hideScrollbars), SettingType::Bool, false },
471
473
};
472
- static const StructInfo gFixedPageUIInfo = {
473
- sizeof (FixedPageUI), 7 , gFixedPageUIFields ,
474
- " TextColor \0 BackgroundColor \0 SelectionColor \0 WindowMargin \0 PageSpacing \0 GradientColors \0 HideScrollbars" };
474
+ static const StructInfo gFixedPageUIInfo = {sizeof (FixedPageUI), 8 , gFixedPageUIFields ,
475
+ " TextColor \0 BackgroundColor \0 SelectionColor \0 WindowMargin \0 PageSpacing \0 Gra "
476
+ " dientColors \0 InvertColors \0 HideScrollbars" };
475
477
476
478
static const FieldInfo gWindowMargin_1_Fields [] = {
477
479
{offsetof (WindowMargin, top), SettingType::Int, 0 },
0 commit comments