login greeter
git clone https://git.lucas.co/cce-display-manager.git
refactor: update dependencies and rename clear-ui to cce-ui
Cargo.toml | 2 +-
README.md | 4 ++--
src/main.rs | 16 ++++++++--------
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index 4ba9a83..03fda09 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"
[dependencies]
-clear-ui = { path = "../clear-ui" }
+cce-ui = { path = "../cce-ui" }
pam = "0.7.0"
pam-sys = "0.5.6"
libc = "0.2"
diff --git a/README.md b/README.md
index af64f02..ff526ce 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Clear Display Manager
-`cce-display-manager` is a premium GUI display manager greeter built using the `clear-ui` framework, leveraging Wayland via `smithay-client-toolkit` and GPU-accelerated graphics via `wgpu`.
+`cce-display-manager` is a premium GUI display manager greeter built using the `cce-ui` framework, leveraging Wayland via `smithay-client-toolkit` and GPU-accelerated graphics via `wgpu`.
It integrates seamlessly with the rest of the **Clear OS** desktop ecosystem, offering a highly customized login greeter interface that transitions directly into the `clear-computing-environment-client` (River WM) or standard fallback sessions.
@@ -8,7 +8,7 @@ It integrates seamlessly with the rest of the **Clear OS** desktop ecosystem, of
- **Premium Design Aesthetics**: Fully hardware-accelerated dark theme matching the design system of the Clear desktop environment.
- **Session Selector**: Interactive session cyclist allowing selection between the Wayland-based River window manager and a fallback Bash login shell.
-- **Obfuscated Password Fields**: Dedicated custom password widget wrapper around `clear-ui` text inputs.
+- **Obfuscated Password Fields**: Dedicated custom password widget wrapper around `cce-ui` text inputs.
- **Focus Cycle Navigation**: Easily navigate fields using standard `Tab` focus switching keys.
- **Seamless Launch Integration**: Authenticates credentials and starts the session via `/home/lsgalante/Dropbox/Clear/clear-computing-environment-client/start-river.sh`.
diff --git a/src/main.rs b/src/main.rs
index cfdba3a..9e483a6 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -31,10 +31,10 @@ use wayland_client::{
use calloop::{EventLoop, channel};
use calloop_wayland_source::WaylandSource;
-use clear_ui::widget::{
+use cce_ui::widget::{
Button, ContentBg, TextLabel, Element, ElementState, MouseButton, Key, NamedKey, KeyEvent, TextBox
};
-use clear_ui::context::UiContext;
+use cce_ui::context::UiContext;
#[repr(C)]
#[derive(Debug, Clone, Copy, bytemuck::Pod, bytemuck::Zeroable)]
@@ -402,7 +402,7 @@ struct State {
login_btn: Button,
status_lbl: StatusLabel,
session_list: SessionList,
- ui_context: clear_ui::context::UiContext,
+ ui_context: cce_ui::context::UiContext,
font_system: FontSystem,
swash_cache: SwashCache,
@@ -429,7 +429,7 @@ struct State {
impl State {
async fn new(
- wayland_handle: &'static clear_ui::wayland::WaylandSurfaceHandle,
+ wayland_handle: &'static cce_ui::wayland::WaylandSurfaceHandle,
pw: u32, ph: u32,
scale: f64,
compositor_scale: f64,
@@ -463,7 +463,7 @@ impl State {
let shader = device.create_shader_module(wgpu::ShaderModuleDescriptor {
label: Some("Shader"),
- source: wgpu::ShaderSource::Wgsl(clear_ui::SHADER.into()),
+ source: wgpu::ShaderSource::Wgsl(cce_ui::SHADER.into()),
});
let pipeline_layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
@@ -579,7 +579,7 @@ impl State {
login_btn,
status_lbl,
session_list,
- ui_context: clear_ui::context::UiContext::new(),
+ ui_context: cce_ui::context::UiContext::new(),
font_system,
swash_cache,
text_atlas,
@@ -1531,7 +1531,7 @@ fn run_greeter() {
let sys_config = load_system_config();
eprintln!("[cce-display-manager] Loaded system config: {:?}", sys_config);
- let compositor_scale = clear_ui::wayland::detect_scale_factor(&app.output_state);
+ let compositor_scale = cce_ui::wayland::detect_scale_factor(&app.output_state);
eprintln!("[cce-display-manager] Detected compositor scale factor from Wayland: {}", compositor_scale);
let layout_scale = sys_config.scale.unwrap_or(compositor_scale);
eprintln!("[cce-display-manager] Final resolved layout scale factor: {}", layout_scale);
@@ -1547,7 +1547,7 @@ fn run_greeter() {
window.set_min_size(Some((pw, ph)));
window.commit();
- let wayland_handle = Box::leak(Box::new(clear_ui::wayland::WaylandSurfaceHandle {
+ let wayland_handle = Box::leak(Box::new(cce_ui::wayland::WaylandSurfaceHandle {
display_ptr: conn.backend().display_id().as_ptr() as *mut std::ffi::c_void,
surface_ptr: surface.id().as_ptr() as *mut std::ffi::c_void,
}));