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"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[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"
|
lazy_static = "1.5.0"
|
||||||
raw-window-handle = "0.6.2"
|
raw-window-handle = "0.6.2"
|
||||||
smithay-client-toolkit = "0.20.0"
|
smithay-client-toolkit = "0.20.0"
|
||||||
|
|||||||
@@ -6,8 +6,7 @@ use bevy::{
|
|||||||
window::{WindowCreated, WindowResolution},
|
window::{WindowCreated, WindowResolution},
|
||||||
winit::WinitPlugin,
|
winit::WinitPlugin,
|
||||||
};
|
};
|
||||||
use bevy_wayland::{input_region::InputRegion, layer_shell::LayerShellSettings, WaylandPlugin};
|
use bevy_wayland::prelude::*;
|
||||||
use smithay_client_toolkit::shell::wlr_layer::{Anchor, Layer};
|
|
||||||
|
|
||||||
const NORMAL_BUTTON: Color = Color::srgb(0.15, 0.15, 0.15);
|
const NORMAL_BUTTON: Color = Color::srgb(0.15, 0.15, 0.15);
|
||||||
const HOVERED_BUTTON: Color = Color::srgb(0.25, 0.25, 0.25);
|
const HOVERED_BUTTON: Color = Color::srgb(0.25, 0.25, 0.25);
|
||||||
|
|||||||
+8
-1
@@ -5,7 +5,7 @@ use smithay_client_toolkit::{
|
|||||||
reexports::{
|
reexports::{
|
||||||
calloop::EventLoop,
|
calloop::EventLoop,
|
||||||
calloop_wayland_source::WaylandSource,
|
calloop_wayland_source::WaylandSource,
|
||||||
client::{globals::registry_queue_init, Connection},
|
client::{Connection, globals::registry_queue_init},
|
||||||
},
|
},
|
||||||
registry::{ProvidesRegistryState, RegistryState},
|
registry::{ProvidesRegistryState, RegistryState},
|
||||||
registry_handlers,
|
registry_handlers,
|
||||||
@@ -18,6 +18,13 @@ pub mod layer_shell;
|
|||||||
mod output_handler;
|
mod output_handler;
|
||||||
mod surface_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)]
|
#[derive(Default)]
|
||||||
pub struct WaylandPlugin;
|
pub struct WaylandPlugin;
|
||||||
impl Plugin for WaylandPlugin {
|
impl Plugin for WaylandPlugin {
|
||||||
|
|||||||
Reference in New Issue
Block a user