No description provided.
lastrodamo/Clocktimer
Using Qt resources #10
Merged
lastrodamo
merged 4 commits from 2025年01月28日 12:41:24 +01:00
use_qt_resource into master
ilhooq
commented 2025年01月28日 10:52:18 +01:00
ilhooq
added 4 commits 2025年01月28日 10:52:19 +01:00
- 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.
lastrodamo
merged commit c65eec3896 into master 2025年01月28日 12:41:24 +01:00
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
Loading...
Add table
Add a link
Reference in a new issue
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?