Skip to content

Commit

Permalink
File browser: Make Folder and file icons visually better distinct (ou…
Browse files Browse the repository at this point in the history
…tlined icon for file), (PR by @wshoy gsantner#2331 fixes gsantner#2186)

(cherry picked from commit 0508b4b)
  • Loading branch information
wshoy authored and elyahw committed Sep 26, 2024
1 parent e029ec7 commit f3756c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void onBindViewHolder(@NonNull FilesystemViewerViewHolder holder, int pos
? descriptionFile.getAbsolutePath() : formatFileDescription(file, _prefApp.getString("pref_key__file_description_format", "")));
}, 60);
holder.image.setColorFilter(ContextCompat.getColor(_context,
isSelected ? _dopt.accentColor : (!file.isFile() ? _dopt.folderColor : _dopt.fileColor)),
isSelected ? _dopt.accentColor : (!file.isFile() ? _dopt.folderColor : _dopt.fileColor)),
android.graphics.PorterDuff.Mode.SRC_ATOP);
if (!isSelected && isFavourite) {
holder.image.setColorFilter(0xFFE3B51B);
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@
<color name="light__primary_text">#212121</color>
<color name="light__secondary_text">#757575</color>
<color name="light__file">#757575</color>

<color name="light__folder">#639BCC</color>

<color name="dark__background">#222222</color>
<color name="dark__background_2">#424242</color>
<color name="dark__primary_text">@color/white</color>
<color name="dark__secondary_text">#9E9E9E</color>
<color name="dark__file">#9E9E9E</color>

<color name="dark__folder">#72B3D9</color>

<color name="ic_launcher_background">#636363</color>
Expand Down

0 comments on commit f3756c3

Please sign in to comment.