Skip to content
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

UNO api and UI/UX improvements #42

Merged
merged 10 commits into from
Oct 9, 2024
Merged

UNO api and UI/UX improvements #42

merged 10 commits into from
Oct 9, 2024

Conversation

royshil
Copy link
Contributor

@royshil royshil commented Oct 7, 2024

No description provided.

royshil added 10 commits October 4, 2024 09:02
- Added a new script, compile_ui.sh, to compile .ui files to .py files.
- The script takes the directory containing the .ui files as input and outputs the compiled .py files in the same directory.
- The script ensures that the output directory exists before compiling the files.
- Each .ui file in the input directory is compiled using pyside6-uic command and the compiled .py file is named ui_<base_name>.py.
- After compiling all the .ui files, a success message is displayed.
- Update the size and position of the add button in the ResizableRect class.
- Increase the width and height of the add button to 60 and 30 respectively.
- Change the position of the add button to the top left corner of the resizable rectangle.
- Set the z-value of the add button to 4.
- Change the text of the add button from "+" to "Add".
- Increase the font size of the add button text to 20.

Refactor: Update startCreateMiniRect method in ResizableRect class

- Modify the startCreateMiniRect method to accept a QRectF parameter instead of individual position values.
- Use the QRectF parameter to create a new MiniRect object with the specified position, width, and height.
- Update the startCreateMiniRect method call in the mousePressEvent to pass a QRectF object instead of individual position values.

Refactor: Update hoverMoveEvent method in ResizableRect class

- Modify the hoverMoveEvent method to change the brush color of the add button and set the cursor shape based on the mouse position.
- If the mouse is over the add button, change the brush color to a semi-transparent green and set the cursor shape to a pointing hand.
- If the mouse is not over the add button, change the brush color of the add button to solid green.

Refactor: Update TextDetectionTargetMemoryStorage class

- Add "composite_box" to the settings dictionary when storing a text detection target in the TextDetectionTargetMemoryStorage class.
@royshil royshil merged commit 7712abb into main Oct 9, 2024
5 checks passed
@royshil royshil deleted the roy.uno_api_integration branch October 9, 2024 03:13
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.

1 participant