~bibledit/bibledit/ubuntu-cloud

« back to all changes in this revision

Viewing changes to personalize/index.cpp

  • Committer: teusjannette at gmail
  • Date: 2018-08-16 10:03:21 UTC
  • Revision ID: teusjannette@gmail.com-20180816100321-0awqc4ci8kunpflz
new upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
  }
126
126
 
127
127
  
 
128
  // Setting for night mode: Update it before generating the header of this page.
 
129
  if (request->query.count ("nightmode")) {
 
130
    bool state = request->database_config_user ()->getNightMode ();
 
131
    request->database_config_user ()->setNightMode (!state);
 
132
  }
 
133
 
 
134
  
128
135
  string page;
129
136
  string success;
130
137
  string error;
437
444
  view.set_variable ("showversetextcreatenote", on_off);
438
445
  
439
446
  
 
447
  // Setting for night mode.
 
448
  on_off = styles_logic_off_on_inherit_toggle_text (request->database_config_user ()->getNightMode ());
 
449
  view.set_variable ("nightmode", on_off);
 
450
 
 
451
  
440
452
  // Enable the sections with settings relevant to the user and device.
441
453
  bool resources = access_logic_privilege_view_resources (webserver_request);
442
454
  if (resources) view.enable_zone ("resources");