-
Notifications
You must be signed in to change notification settings - Fork 0
Run duckycoder program #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: joshinhd1 <[email protected]>
|
Cursor Agent can help with this pull request. Just |
Reviewer's GuideThis PR fleshes out the Hypr-Ricer application by adding full configuration support for clipboard and lockscreen, implementing real Hyprland window and animation manager methods with live hyprctl integration, completing ClipboardTab and LockscreenTab UI and system-apply logic, enhancing the PreviewWindow to display debounced live previews of multiple components, and correcting GUI signal wiring for responsive event handling. Sequence diagram for configuration change and live preview updatesequenceDiagram
actor User
participant ClipboardTab
participant Config
participant PreviewWindow
participant GUI
User->>ClipboardTab: Change clipboard settings
ClipboardTab->>Config: Update clipboard config
ClipboardTab->>PreviewWindow: Emit config_changed signal
PreviewWindow->>PreviewWindow: schedule_update()
PreviewWindow->>PreviewWindow: update_preview()
PreviewWindow->>GUI: Emit preview_updated signal
GUI->>GUI: Update status bar
GUI->>Config: Auto-save if enabled
Sequence diagram for applying lockscreen configuration and testing locksequenceDiagram
actor User
participant LockscreenTab
participant Config
participant System
User->>LockscreenTab: Change lockscreen settings
LockscreenTab->>Config: Update lockscreen config
User->>LockscreenTab: Click 'Apply to System'
LockscreenTab->>System: Write config file / script
LockscreenTab->>System: Apply settings
User->>LockscreenTab: Click 'Test Lock'
LockscreenTab->>System: Launch lockscreen
System->>User: Show lockscreen
Class diagram for new and updated configuration classesclassDiagram
class Config {
+WaybarConfig waybar
+RofiConfig rofi
+NotificationConfig notifications
+ClipboardConfig clipboard
+LockscreenConfig lockscreen
+_to_dict()
+_from_dict()
+validate()
}
class ClipboardConfig {
+str manager
+int history_size
+int max_item_size
+bool enable_images
+bool enable_primary_selection
+bool persist_history
+List[str] exclude_patterns
}
class LockscreenConfig {
+str locker
+str background_type
+str background_path
+str background_color
+int timeout
+int grace_period
+bool show_failed_attempts
+str keyboard_layout
+str input_field_color
+str text_color
+str font_family
+int font_size
}
Config --> ClipboardConfig
Config --> LockscreenConfig
Class diagram for Hyprland WindowManager and AnimationManagerclassDiagram
class WindowManager {
+str config_path
+get_window_config()
+set_window_config(config)
+apply_window_config(config)
+set_window_opacity(opacity)
+set_border_size(size)
+set_border_color(color)
+set_gaps(gaps_in, gaps_out)
+toggle_smart_gaps(enabled)
+toggle_blur(enabled)
+set_blur_size(size)
+get_window_list()
+focus_window(window_address)
+close_window(window_address)
+toggle_floating(window_address)
+set_window_opacity_rule(window_class, opacity)
+get_window_rules()
+add_window_rule(rule, window_criteria, version)
+remove_window_rule(rule_pattern)
+get_active_window()
+_reload_hyprland_config()
}
class AnimationManager {
+str config_path
+get_animation_config()
+set_animation_config(config)
+apply_animations(config)
+get_available_curves()
+get_animation_presets()
+apply_preset(preset_name)
+_reload_hyprland_config()
+test_animation(animation_type)
}
Class diagram for enhanced PreviewWindow and preview componentsclassDiagram
class PreviewWindow {
+Config config
+WaybarPreview waybar_preview
+DesktopPreview desktop_preview
+RofiPreview rofi_preview
+NotificationPreview notification_preview
+ClipboardPreview clipboard_preview
+LockscreenPreview lockscreen_preview
+update_preview()
+schedule_update()
+setup_ui()
}
class WaybarPreview {
+update_preview(config)
+setup_ui()
}
class DesktopPreview {
+update_preview(config)
+setup_ui()
}
class RofiPreview {
+update_preview(config)
+setup_ui()
}
class NotificationPreview {
+update_preview(config)
+setup_ui()
}
class ClipboardPreview {
+update_preview(config)
+setup_ui()
}
class LockscreenPreview {
+update_preview(config)
+setup_ui()
}
PreviewWindow --> WaybarPreview
PreviewWindow --> DesktopPreview
PreviewWindow --> RofiPreview
PreviewWindow --> NotificationPreview
PreviewWindow --> ClipboardPreview
PreviewWindow --> LockscreenPreview
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Complete Hypr-Ricer UI functionality by implementing missing configuration, tab logic, Hyprland modules, and an enhanced live preview system.
Summary by Sourcery
Implement complete Hypr-Ricer UI functionality by adding full-featured preview components, tab logic for clipboard and lockscreen settings, new configuration classes, and real Hyprland window and animation managers, while improving event handling, logging, and validation.
New Features:
Enhancements:
Documentation: