Set the color scheme to Printing for Print Preview

Authored by ahmadsamir on Feb 5 2019, 12:24 PM.

Description

Set the color scheme to Printing for Print Preview

Summary:
Otherwise the print preview dialog somehow gets the text color from the
current default color scheme; also the user can't change the color scheme
either from the print preview dialog or the "print" dialog launched from
the preview dialog.

BUG: 391678
FIXED-IN: 5.55.0

Test Plan:

  • Change the default color scheme in kate to a dark one, e.g. Breeze dark
  • Open the print preview dialog, note that the text color is the one used in the breeze dark scheme, but the background color is still white

Apply the diff, now the print preview dialog should be using the Printing
color scheme as expected.

Reviewers: cullmann, KTextEditor, dhaumann, mwolff

Reviewed By: KTextEditor, dhaumann, mwolff

Subscribers: kwrite-devel, kde-frameworks-devel

Tags: Kate, Frameworks

Differential Revision: https://phabricator.kde.org/D18163