Merge pull request #1 from akshayr-mecha/cleanup
cleanup: adds prelude module
This commit is contained in:
Generated
+214
-972
File diff suppressed because it is too large
Load Diff
+9
-1
@@ -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"
|
||||
|
||||
@@ -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
@@ -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,
|
||||
@@ -19,6 +19,13 @@ mod output_handler;
|
||||
pub mod session_lock;
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user