Skip to content

Commit efe23b0

Browse files
committed
feat: add terminal-style UI with black background and white text
1 parent 21e7e06 commit efe23b0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

build.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#[cfg(windows)]
22
fn main() {
3-
use std::io::Write;
4-
53
let mut res = winres::WindowsResource::new();
64

75
// 设置应用程序信息

src/main.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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

200206
fn 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,

0 commit comments

Comments
 (0)