Skip to content

With the 1.1dev main branch after 19th June 2025, overlay specific... #52

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Syres916
Copy link

…styling would be a great improvement IMHO

After FreeCAD/FreeCAD@e45cf96 was applied in FreeCAD main, this is the result (note the Shape Sketch at the bottom of the scroll area):

Screenshot from 2025-06-21 11-23-21

with this PR applied and the user re-applying the updated Dracula Preference Pack:

Screenshot from 2025-06-21 11-31-03

Note: non-overlay settings are not affected and if needed the overlay file can be slimmed down if required but this is based on Behave-dark-overlay.qss which has been thoroughly tested over many months with the recent fix added for this specific issue.

Copy link

coderabbitai bot commented Jun 21, 2025

📝 Walkthrough

Walkthrough

A new overlay-specific Qt stylesheet, Dracula-overlay.qss, was introduced to provide Dracula-themed visual customization for overlay UI components. The configuration file was updated to reference this stylesheet via a new parameter. Additionally, the package version was incremented from 0.0.6 to 0.0.7.

Changes

File(s) Change Summary
Dracula/Dracula.cfg Added OverlayActiveStyleSheet parameter referencing Dracula-overlay.qss in the MainWindow group.
Dracula/overlay/Dracula-overlay.qss Added new stylesheet defining Dracula-themed styles for overlay tab widgets and related components.
package.xml Updated package version from 0.0.6 to 0.0.7.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Application
    participant Config (Dracula.cfg)
    participant Stylesheet (Dracula-overlay.qss)

    User->>Application: Start application
    Application->>Config: Read configuration parameters
    Config-->>Application: Return StyleSheet, OverlayActiveStyleSheet
    Application->>Stylesheet: Load Dracula-overlay.qss (if overlay active)
    Stylesheet-->>Application: Apply overlay styles
    Application-->>User: Display themed overlay UI
Loading
✨ Finishing Touches
🧪 Generate Unit Tests

❌ Error creating Unit Test PR.

  • Create PR with Unit Tests
  • Commit Unit Tests in branch Overlay_aware
  • Post Copyable Unit Tests in Comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
Dracula/Dracula.cfg (1)

78-80: Validate support for OverlayActiveStyleSheet.
Confirm that the application’s config parser recognizes the new OverlayActiveStyleSheet parameter and applies Dracula-overlay.qss correctly. Update any user-facing documentation or preference UIs to expose this new setting.

Dracula/overlay/Dracula-overlay.qss (2)

1-5: Remove duplicate comment blocks.
The header comment about OverlayTabWidget selectors is duplicated at lines 1–5 and 59–63. Consolidate to a single block to reduce redundancy.

Also applies to: 59-63


36-57: DRY up item styling rules.
Several QTreeView::item blocks under Gui--OverlayTabWidget repeat the same color and background settings. Consider consolidating these into fewer selectors or using a common parent rule to reduce duplication.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 861983e and 83593e6.

📒 Files selected for processing (3)
  • Dracula/Dracula.cfg (1 hunks)
  • Dracula/overlay/Dracula-overlay.qss (1 hunks)
  • package.xml (1 hunks)
🔇 Additional comments (13)
package.xml (1)

5-5: Confirm version bump consistency.
Ensure the package version update to 0.0.7 is reflected in documentation (e.g., README, changelog) and packaging pipelines to avoid mismatches.

Dracula/overlay/Dracula-overlay.qss (12)

14-21: Base widget styling is clear.
The QFrame and QTabWidget::pane rules correctly remove borders and backgrounds for overlay panes.


23-29: Approve transparent view styling.
The QAbstractItemView rules set transparent backgrounds and appropriate padding. This aligns with the overlay design.


31-34: Approve title bar and splitter transparency.
The Gui--OverlayTitleBar and Gui--OverlaySplitterHandle selectors correctly enforce transparency.


65-73: Shadow effect styling is well defined.
The generic Gui--OverlayTabWidget and the #OverlayBottom overrides correctly configure shadow properties.

Also applies to: 75-83


85-89: Approve pane and property editor styling.
The selectors for PropertyEditor and the subsequent QTabWidget::pane pane override are consistent and maintain the visual theme.

Also applies to: 91-94


96-99: Approve content frame rounding.
The QSint--ActionGroup QFrame[class="content"] rule properly applies bottom radius for content panels.


101-111: Approve tab-bar alignment rules.
The padding and alignment for top/bottom and left/right tab bars address layout consistency.


113-115: Approve proxy widget hint styling.
The Gui--OverlayProxyWidget hint color property provides a good contrast for placeholder text.


117-126: Approve tool button border states.
The hover, focus, pressed, and checked border styles for Gui--OverlayToolButton cover all interactive states clearly.

Also applies to: 132-141


143-149: Verify tool button assets and object names.
Multiple Gui--OverlayToolButton selectors reference image URLs and object names (e.g., "OBTN Transparent"). Ensure the image files exist at images_classic/* and the objectName values match the actual widget names in the application.

Also applies to: 151-173


176-184: Validate variable in ComboBox styling.
The selection-background-color: @ThemeAccentColor2; line uses a variable reference. Confirm that the QSS parser supports @ThemeAccentColor2 in this context and falls back gracefully if undefined.


188-195: Approve dock widget list fixes.
The margins, borders, and minimum height settings for lists in the model tab ensure consistent sizing across overlay contexts.

Copy link

coderabbitai bot commented Jun 21, 2025

Note

Unit test generation is an Early Access feature. Expect some limitations and changes as we gather feedback and continue to improve it.


Generating unit tests... This may take up to 20 minutes.

Copy link
Contributor

@brandonbeaumia brandonbeaumia left a comment

Choose a reason for hiding this comment

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

Besides the undeclared variable, looked good to me from all the Overlay-specific testing I did.

color: #bebebe; /* same as regular QComboBox color */
background-color: #232932;
selection-color: white;
selection-background-color: @ThemeAccentColor2;
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't implemented in Dracula, can you please hardcode the relevant color?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, all of the non-overlay code (starting at line 176) looks to be duplicated inside Dracula.qss (likely a fork from Behave in the first place). Should be safe to delete; if you test again after that and don't notice anything off I'll merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants