File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11#[ cfg( windows) ]
22fn main ( ) {
3- use std:: io:: Write ;
4-
53 let mut res = winres:: WindowsResource :: new ( ) ;
64
75 // 设置应用程序信息
Original file line number Diff line number Diff line change @@ -172,8 +172,8 @@ impl RustWavelogGateApp {
172172 . collect :: < Vec < _ > > ( ) ,
173173 )
174174 . padding ( iced:: Padding {
175- top : 0 .0,
176- bottom : 0 .0,
175+ top : 10 .0,
176+ bottom : 10 .0,
177177 left : 10.0 ,
178178 right : 10.0 ,
179179 } )
@@ -184,6 +184,12 @@ impl RustWavelogGateApp {
184184 Container :: new ( scrollable)
185185 . width ( Length :: Fill )
186186 . height ( Length :: Fill )
187+ . style ( |_| {
188+ iced:: widget:: container:: Style {
189+ background : Some ( iced:: Background :: Color ( Color :: BLACK ) ) ,
190+ ..Default :: default ( )
191+ }
192+ } )
187193 . into ( )
188194 }
189195}
@@ -199,6 +205,7 @@ impl Default for RustWavelogGateApp {
199205
200206fn main ( ) -> iced:: Result {
201207 iced:: application ( "Rust Wavelog Gate" , RustWavelogGateApp :: update, RustWavelogGateApp :: view)
208+ . theme ( |_state| iced:: Theme :: Dark )
202209 . window ( iced:: window:: Settings {
203210 size : iced:: Size {
204211 width : 600.0 ,
You can’t perform that action at this time.
0 commit comments