Skip to content

Conversation

@hongquanli
Copy link
Collaborator

Summary

  • Reduce CSS stylesheet from ~190 lines to ~50 lines
  • Remove unused imports (QGraphicsDropShadowEffect, QPropertyAnimation, etc.)
  • Simplify DropArea with cleaner styling
  • Streamline layout with tighter spacing
  • Keep button icons for visual clarity

Changes

  • CSS: Removed heavy custom styling, rely more on platform defaults
  • Imports: Cleaned up unused Qt imports
  • DropArea: Simplified with class-level style constants
  • Layout: Reduced margins and spacing for cleaner look

Test plan

  • Launch GUI and verify drop area works
  • Test file selection via drag-drop and click-to-browse
  • Verify buttons display correctly with icons
  • Check settings toggles show/hide correctly

🤖 Generated with Claude Code

- Reduce CSS stylesheet from ~190 lines to ~50 lines
- Remove unused imports (QGraphicsDropShadowEffect, QPropertyAnimation, etc.)
- Simplify DropArea with cleaner styling
- Streamline layout with tighter spacing
- Keep button icons for visual clarity

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
hongquanli added a commit that referenced this pull request Jan 4, 2026
- Fix #2: Use os.startfile on Windows instead of shell=True
- Fix #7: Add comment about private method tf._read_tile usage
- Fix #11 & #14: Add explicit clipping before dtype cast for integer types
- Fix #12: Update docstring to accurately describe clipping behavior
- Fix #13: Add comment explaining intentional no-flatfield for raw sampling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@hongquanli hongquanli closed this in ed4e8d4 Jan 5, 2026
@hongquanli hongquanli reopened this Jan 5, 2026
hongquanli and others added 2 commits January 4, 2026 16:39
Consistent with main DropArea implementation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the GUI styling and layout by significantly reducing CSS bloat (from ~190 to ~50 lines), removing unused Qt imports, and introducing cleaner class-level style constants for drop areas. The changes streamline the UI while maintaining all functionality.

  • Simplified CSS stylesheet by removing redundant styling and relying more on platform defaults
  • Cleaned up unused Qt imports (QGraphicsDropShadowEffect, QPropertyAnimation, QMimeData, QFont, QColor, QPalette, QLinearGradient, QEasingCurve)
  • Refactored DropArea and FlatfieldDropArea classes to use maintainable class-level style constants instead of inline multi-line stylesheet strings

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hongquanli hongquanli merged commit e888b23 into main Jan 5, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants