mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
printer demo: Fix some invisible text in night mode
This commit is contained in:
parent
b680840063
commit
6a3ec0465d
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue