-
-
Notifications
You must be signed in to change notification settings - Fork 92
fix(resources): improve theming and cleanup #897
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
Conversation
…rawer theming and remove selection highlighting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ LGTM!
Review Summary
Commits Considered (1)
- 3e4ca45: fix(resources): remove unused drawables and normalize tint, improve drawer theming and remove selection highlighting
Files Processed (30)
- core/main/src/main/java/com/rk/compose/filetree/Drawer.kt (2 hunks)
- core/main/src/main/java/com/rk/compose/filetree/FileTree.kt (8 hunks)
- core/main/src/main/java/com/rk/xededitor/ui/components/FileActionDialog.kt (3 hunks)
- core/main/src/main/java/com/rk/xededitor/ui/screens/settings/support/Support.kt (3 hunks)
- core/main/src/main/java/com/rk/xededitor/ui/theme/Theme.kt (2 hunks)
- core/main/src/main/res/menu/crash_menu.xml (1 hunk)
- core/main/src/main/res/menu/menu_main.xml (1 hunk)
- core/main/src/main/res/menu/navigation_rail_menu.xml (1 hunk)
- core/main/src/main/res/menu/root_file_options.xml (1 hunk)
- core/main/src/main/res/menu/tab_menu.xml (1 hunk)
- core/resources/src/main/res/drawable/animation.xml (1 hunk)
- core/resources/src/main/res/drawable/archive.xml (1 hunk)
- core/resources/src/main/res/drawable/baseline_folder_24.xml (1 hunk)
- core/resources/src/main/res/drawable/baseline_more_vert_24.xml (1 hunk)
- core/resources/src/main/res/drawable/coffee.xml (from core/resources/src/main/res/drawable/coffee_24px.xml) (0 hunks)
- core/resources/src/main/res/drawable/content_paste_24px.xml (1 hunk)
- core/resources/src/main/res/drawable/copy.xml (from core/resources/src/main/res/drawable/content_copy_24px.xml) (0 hunks)
- core/resources/src/main/res/drawable/cut.xml (from core/resources/src/main/res/drawable/round_content_cut_20.xml) (0 hunks)
- core/resources/src/main/res/drawable/delete.xml (1 hunk)
- core/resources/src/main/res/drawable/edit_note.xml (1 hunk)
- core/resources/src/main/res/drawable/editor_text_select_start.xml (1 hunk)
- core/resources/src/main/res/drawable/edittext.xml (1 hunk)
- core/resources/src/main/res/drawable/folder.xml (1 hunk)
- core/resources/src/main/res/drawable/folder_copy_24px.xml (1 hunk)
- core/resources/src/main/res/drawable/git.xml (1 hunk)
- core/resources/src/main/res/drawable/github.xml (1 hunk)
- core/resources/src/main/res/drawable/golang.xml (1 hunk)
- core/resources/src/main/res/drawable/ic_language_c.xml (1 hunk)
- core/resources/src/main/res/drawable/ic_language_cpp.xml (1 hunk)
- core/resources/src/main/res/drawable/ic_language_csharp.xml (1 hunk)
Actionable Comments (0)
Skipped Comments (2)
-
core/main/src/main/java/com/rk/compose/filetree/FileTree.kt [420-426]
possible bug: "Inconsistent selection highlighting removal."
-
core/main/src/main/java/com/rk/xededitor/ui/components/FileActionDialog.kt [179-179]
possible bug: "Incorrect icon selection for copy action."
|
@KonerDev, selection highlighting is good for people who have a condition called ADHD, where people forget things randomly. Selection highlighting indicates what you have previously clicked. |
PR SummaryThis PR significantly refines the application's theming and cleans up unused resources. It removes numerous redundant drawable and menu XML files, normalizes tint and fill colors to use theme attributes like Changes
autogenerated by presubmit.ai |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ LGTM!
Review Summary
Commits Considered (3)
Files Processed (30)
- core/main/src/main/java/com/rk/compose/filetree/Drawer.kt (2 hunks)
- core/main/src/main/java/com/rk/compose/filetree/FileTree.kt (8 hunks)
- core/main/src/main/java/com/rk/crashhandler/CrashActivity.kt (3 hunks)
- core/main/src/main/java/com/rk/libcommons/editor/KarbonEditor.kt (3 hunks)
- core/main/src/main/java/com/rk/tabs/EditorTab.kt (2 hunks)
- core/main/src/main/java/com/rk/xededitor/ui/components/FileActionDialog.kt (3 hunks)
- core/main/src/main/java/com/rk/xededitor/ui/screens/settings/support/Support.kt (3 hunks)
- core/main/src/main/java/com/rk/xededitor/ui/theme/Theme.kt (2 hunks)
- core/main/src/main/res/menu/crash_menu.xml (1 hunk)
- core/main/src/main/res/menu/menu_main.xml (1 hunk)
- core/main/src/main/res/menu/navigation_rail_menu.xml (1 hunk)
- core/main/src/main/res/menu/root_file_options.xml (1 hunk)
- core/main/src/main/res/menu/tab_menu.xml (1 hunk)
- core/resources/src/main/res/drawable/animation.xml (1 hunk)
- core/resources/src/main/res/drawable/archive.xml (1 hunk)
- core/resources/src/main/res/drawable/baseline_folder_24.xml (1 hunk)
- core/resources/src/main/res/drawable/baseline_more_vert_24.xml (1 hunk)
- core/resources/src/main/res/drawable/coffee.xml (from core/resources/src/main/res/drawable/coffee_24px.xml) (0 hunks)
- core/resources/src/main/res/drawable/content_paste_24px.xml (1 hunk)
- core/resources/src/main/res/drawable/copy.xml (from core/resources/src/main/res/drawable/content_copy_24px.xml) (0 hunks)
- core/resources/src/main/res/drawable/cut.xml (from core/resources/src/main/res/drawable/round_content_cut_20.xml) (0 hunks)
- core/resources/src/main/res/drawable/delete.xml (1 hunk)
- core/resources/src/main/res/drawable/edit_note.xml (1 hunk)
- core/resources/src/main/res/drawable/editor_text_select_start.xml (1 hunk)
- core/resources/src/main/res/drawable/edittext.xml (1 hunk)
- core/resources/src/main/res/drawable/folder.xml (1 hunk)
- core/resources/src/main/res/drawable/folder_copy_24px.xml (1 hunk)
- core/resources/src/main/res/drawable/git.xml (1 hunk)
- core/resources/src/main/res/drawable/github.xml (1 hunk)
- core/resources/src/main/res/drawable/golang.xml (1 hunk)
Actionable Comments (0)
Skipped Comments (4)
-
core/main/src/main/java/com/rk/compose/filetree/FileTree.kt [404-406]
performance: "Review artificial delays in click handlers."
-
core/main/src/main/java/com/rk/compose/filetree/FileTree.kt [414-416]
performance: "Evaluate necessity of delay in long click handler."
-
core/main/src/main/java/com/rk/compose/filetree/FileTree.kt [423-425]
maintainability: "Remove redundant Modifier in conditional background."
-
core/main/src/main/java/com/rk/compose/filetree/FileTree.kt [421-426]
readability: "Clarify selection highlighting behavior."
This PR removes unused drawables and normalizes their
tintandfillColorvalues, improves drawer theming and removes selection highlighting.Changes
tintandfillColorvalues to?colorControlNormaland@android:color/whiteScreenshots
Clarification
I commented out the selection highlighting that used to appear when you opened a folder or long pressed on an file.
Maybe there was a deeper meaning behind it, but for me, it was always just unnecessary. Please tell me if this was a mistake.