printer demo: Fix some invisible text in night mode

This commit is contained in:
Olivier Goffart 2021-02-17 17:48:59 +01:00
parent b680840063
commit 6a3ec0465d
2 changed files with 4 additions and 2 deletions

View file

@ -14,7 +14,7 @@ export global DemoPalette := {
property <color> inactive_page_icon_color: #BDC0D1;
property <color> main_background: #0E133F;
property <color> neutral_box: #BDC0D1; // Black / Tertiary
property <color> neutral_box: #BDC0D1;
property <color> page_background_color: night_mode ? #122F7B : white;
@ -31,7 +31,7 @@ export global DemoPalette := {
// as the combo box or spin box.
property <color> control_outline_color: #FFBF63;
property <color> control_secondary: #6284FF;
property <color> control_foreground: #122F7B;
property <color> control_foreground: night_mode ? white : #122F7B; // FIXME: the night mode color was not part of the design
property <color> primary_push_button_color: #6284FF;
property <color> secondary_push_button_color: #FFBF63; // red in the "green" theme

View file

@ -119,6 +119,7 @@ NarrowPrintQueueElement := Rectangle {
DemoText {
text: queue_item.title;
overflow: elide;
color: DemoPalette.text_foreground_color;
font-weight: 800;
font-size: DemoPalette.base_font_size * 1.125;
width: root.width - 2*parent.padding; // FIXME
@ -232,6 +233,7 @@ WidePrintQueueElement := Rectangle {
DemoText {
text: queue_item.title;
color: DemoPalette.text_foreground_color;
overflow: elide;
font-weight: 800;
font-size: DemoPalette.base_font_size * 1.125;