Skip to content

Commit 5aa9923

Browse files
committed
Update File Explorer UI: Change background color to black and add Color import
1 parent d1ccfff commit 5aa9923

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

File-Explorer/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use druid::widget::{Button, Flex, Label, List, Scroll, TextBox};
22
use druid::{
33
AppDelegate, AppLauncher, Command, Data, DelegateCtx, Env, Lens, Selector, Target,
4-
Widget, WidgetExt, WindowDesc, commands, FileDialogOptions, theme,
4+
Widget, WidgetExt, WindowDesc, commands, FileDialogOptions, theme, Color, // add import for Color
55
};
66
use regex::Regex;
77
use std::path::{Path, PathBuf}; // added Path
@@ -104,7 +104,7 @@ fn build_ui() -> impl Widget<AppState> {
104104
.with_child(search_btn.padding(8.0))
105105
.with_flex_child(Scroll::new(results_list).expand(), 1.0)
106106
.padding(12.0)
107-
.background(theme::WINDOW_BACKGROUND_COLOR)
107+
.background(Color::BLACK) // changed background to black
108108
}
109109

110110
/// Searches files and directories under the given directory whose names match the search term (case-insensitive)

0 commit comments

Comments
 (0)