mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-06-19 12:13:32 +00:00
feat(gui): theme selection (#122)
* fix: increment pkgrel to 2 for pwsp aur package * feat(gui): implemented theme switching * fix(gui): fixed incorrect colors in light theme * fix(gui): fixed incorrect colors in light theme
This commit is contained in:
committed by
GitHub
parent
798a6d1887
commit
695c83c9e6
@@ -76,16 +76,16 @@ impl SoundpadGui {
|
||||
.map(|s| s.to_string_lossy().to_string())
|
||||
.unwrap_or_else(|| path.to_string_lossy().to_string());
|
||||
|
||||
let mut dir_button_text = RichText::new(name.clone());
|
||||
let mut dir_button =
|
||||
Button::new(RichText::new(name.clone()).atom_max_width(area_size.x))
|
||||
.frame(false);
|
||||
|
||||
if let Some(current_dir) = &self.app_state.current_dir
|
||||
&& current_dir.eq(&*path)
|
||||
{
|
||||
dir_button_text = dir_button_text.color(Color32::WHITE);
|
||||
dir_button = dir_button.selected(true);
|
||||
}
|
||||
|
||||
let dir_button =
|
||||
Button::new(dir_button_text.atom_max_width(area_size.x)).frame(false);
|
||||
|
||||
let dir_button_response = ui.add(dir_button);
|
||||
if dir_button_response.clicked() {
|
||||
dir_to_open = Some(path.clone());
|
||||
|
||||
Reference in New Issue
Block a user