@@ -6,7 +6,7 @@ use crate::app::state::{AppModel, Message};
66use crate :: app:: video_widget:: { self , VideoContentFit } ;
77use crate :: fl;
88use cosmic:: Element ;
9- use cosmic:: iced:: { Background , Color , Length } ;
9+ use cosmic:: iced:: { Background , Length } ;
1010use cosmic:: widget;
1111use tracing:: info;
1212
@@ -30,9 +30,9 @@ impl AppModel {
3030 . height ( Length :: Fill )
3131 . align_x ( cosmic:: iced:: alignment:: Horizontal :: Center )
3232 . align_y ( cosmic:: iced:: alignment:: Vertical :: Center )
33- . style ( |_theme | widget:: container:: Style {
34- background : Some ( Background :: Color ( Color :: BLACK ) ) ,
35- text_color : Some ( Color :: WHITE ) ,
33+ . style ( |theme | widget:: container:: Style {
34+ background : Some ( Background :: Color ( theme . cosmic ( ) . bg_color ( ) . into ( ) ) ) ,
35+ text_color : Some ( theme . cosmic ( ) . on_bg_color ( ) . into ( ) ) ,
3636 ..Default :: default ( )
3737 } )
3838 . into ( ) ;
@@ -102,12 +102,12 @@ impl AppModel {
102102 info ! ( render_count = count, "No frame available in view" ) ;
103103 }
104104
105- // Black canvas placeholder when no camera frame
105+ // Themed canvas placeholder when no camera frame
106106 widget:: container ( widget:: Space :: new ( Length :: Fill , Length :: Fill ) )
107107 . width ( Length :: Fill )
108108 . height ( Length :: Fill )
109- . style ( |_theme | widget:: container:: Style {
110- background : Some ( Background :: Color ( Color :: BLACK ) ) ,
109+ . style ( |theme : & cosmic :: Theme | widget:: container:: Style {
110+ background : Some ( Background :: Color ( theme . cosmic ( ) . bg_color ( ) . into ( ) ) ) ,
111111 ..Default :: default ( )
112112 } )
113113 . into ( )
0 commit comments