mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-06-19 12:13:32 +00:00
f2dcf2e0fe
Replaced the monolithic `src/gui/draw.rs` with a new `src/gui/views` directory module. The GUI drawing logic is now cleanly separated into distinct files: - `body.rs` - `footer.rs` - `header.rs` - `hotkey_capture.rs` - `hotkeys.rs` - `settings.rs` - `waiting_for_daemon.rs` This organization vastly improves readability and maintainability without altering functionality. All shared helpers are centralized in `src/gui/views/mod.rs` and imports are strictly managed. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
15 lines
369 B
Rust
15 lines
369 B
Rust
use crate::gui::SoundpadGui;
|
|
use egui::{RichText, Ui};
|
|
|
|
impl SoundpadGui {
|
|
pub fn draw_waiting_for_daemon(&mut self, ui: &mut Ui) {
|
|
ui.centered_and_justified(|ui| {
|
|
ui.label(
|
|
RichText::new("Waiting for PWSP daemon to start...")
|
|
.size(34.0)
|
|
.monospace(),
|
|
);
|
|
});
|
|
}
|
|
}
|