print dialog: Fix layout preview drawing

Use the CSS name paper for this as well, and make sure Adwaita
sets a color that makes the text visible in the dark theme as well.
This commit is contained in:
Matthias Clasen 2016-02-03 16:06:05 +01:00
parent a0363e5f0a
commit 0bcd8603eb
4 changed files with 9 additions and 1 deletions

View File

@ -803,6 +803,7 @@ gtk_print_unix_dialog_init (GtkPrintUnixDialog *dialog)
_gtk_print_load_custom_papers (priv->custom_paper_list);
gtk_css_node_set_name (gtk_widget_get_css_node (priv->collate_image), I_("paper"));
gtk_css_node_set_name (gtk_widget_get_css_node (priv->page_layout_preview), I_("paper"));
}
static void

View File

@ -2699,11 +2699,14 @@ levelbar {
printdialog {
paper {
color: $fg_color;
border: 1px solid $borders_color;
background: white;
padding: 0;
&:backdrop { border-color: $backdrop_borders_color; }
&:backdrop { color: $backdrop_fg_color;
border-color: $backdrop_borders_color;
}
}
.dialog-action-box {

View File

@ -3506,10 +3506,12 @@ levelbar {
* Print dialog *
*****************/
printdialog paper {
color: #eeeeec;
border: 1px solid #1c1f1f;
background: white;
padding: 0; }
printdialog paper:backdrop {
color: #949796;
border-color: #1f2222; }
printdialog .dialog-action-box {
margin: 12px; }

View File

@ -3639,10 +3639,12 @@ levelbar {
* Print dialog *
*****************/
printdialog paper {
color: #2e3436;
border: 1px solid #9d9d99;
background: white;
padding: 0; }
printdialog paper:backdrop {
color: #8b8e8f;
border-color: #a5a5a1; }
printdialog .dialog-action-box {
margin: 12px; }