lastrodamo/Clocktimer
0
3
Fork
You've already forked Clocktimer
1

Using Qt resources #10

Merged
lastrodamo merged 4 commits from use_qt_resource into master 2025年01月28日 12:41:24 +01:00
Collaborator
Copy link
No description provided.
- Introduced a QString variable `themeName` to store the current theme ("Dark" or "Light") based on the `darkTheme` boolean.
- Simplified setting icons for UI elements by using `themeName` to dynamically build icon paths, reducing code redundancy.
- Updated the logic for setting properties and icons in various methods (`MainWindow`, `on_startStopButton_clicked`, and `abort`) to use the new `themeName` approach.
- Simplified the logic for setting the theme button icon by using a
 single line of code with a ternary operator and string concatenation.
- Introduced a `themeName` variable to store "Dark" or "Light" based
 on the `darkTheme` setting, reducing redundancy in icon path
 construction.
- Removed redundant checks and streamlined the `on_themeButton_clicked`
 method for better readability and maintainability.
- Updated header file to include `themeName` as a private member
 variable.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lastrodamo/Clocktimer!10
Reference in a new issue
lastrodamo/Clocktimer
No description provided.
Delete branch "use_qt_resource"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?