cleanup: adds prelude module

This commit is contained in:
akshayr-mecha
2025-08-28 11:16:08 +05:30
parent fc96e7a8ac
commit 6564845183
4 changed files with 232 additions and 976 deletions
Generated
+214 -972
View File
File diff suppressed because it is too large Load Diff
+9 -1
View File
@@ -4,7 +4,15 @@ version = "0.1.0"
edition = "2024"
[dependencies]
bevy = "0.16.1"
bevy = { version = "0.16.1", default-features = false, features = [
"bevy_ui",
"bevy_window",
"trace",
"bevy_winit",
"wayland",
"multi_threaded",
] }
lazy_static = "1.5.0"
raw-window-handle = "0.6.2"
smithay-client-toolkit = "0.20.0"
+1 -2
View File
@@ -6,8 +6,7 @@ use bevy::{
window::{WindowCreated, WindowResolution},
winit::WinitPlugin,
};
use bevy_wayland::{input_region::InputRegion, layer_shell::LayerShellSettings, WaylandPlugin};
use smithay_client_toolkit::shell::wlr_layer::{Anchor, Layer};
use bevy_wayland::prelude::*;
const NORMAL_BUTTON: Color = Color::srgb(0.15, 0.15, 0.15);
const HOVERED_BUTTON: Color = Color::srgb(0.25, 0.25, 0.25);
+8 -1
View File
@@ -5,7 +5,7 @@ use smithay_client_toolkit::{
reexports::{
calloop::EventLoop,
calloop_wayland_source::WaylandSource,
client::{globals::registry_queue_init, Connection},
client::{Connection, globals::registry_queue_init},
},
registry::{ProvidesRegistryState, RegistryState},
registry_handlers,
@@ -18,6 +18,13 @@ pub mod layer_shell;
mod output_handler;
mod surface_handler;
pub mod prelude {
pub use crate::WaylandPlugin;
pub use crate::input_region::InputRegion;
pub use crate::layer_shell::{LayerShellSettings, LayerShellWindowSize};
pub use smithay_client_toolkit::shell::wlr_layer::{Anchor, KeyboardInteractivity, Layer};
}
#[derive(Default)]
pub struct WaylandPlugin;
impl Plugin for WaylandPlugin {