From f3756c39b26a6435298cddc882806e9c8942864d Mon Sep 17 00:00:00 2001 From: wshoy Date: Tue, 16 Jul 2024 20:16:55 +0200 Subject: [PATCH] File browser: Make Folder and file icons visually better distinct (outlined icon for file), (PR by @wshoy #2331 fixes #2186) (cherry picked from commit 0508b4b89c9dd39876d11547aed8d8d58209177b) --- .../opoc/frontend/filebrowser/GsFileBrowserListAdapter.java | 2 +- app/src/main/res/values/colors.xml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/gsantner/opoc/frontend/filebrowser/GsFileBrowserListAdapter.java b/app/src/main/java/net/gsantner/opoc/frontend/filebrowser/GsFileBrowserListAdapter.java index d6403d753d..8821eb1ec3 100644 --- a/app/src/main/java/net/gsantner/opoc/frontend/filebrowser/GsFileBrowserListAdapter.java +++ b/app/src/main/java/net/gsantner/opoc/frontend/filebrowser/GsFileBrowserListAdapter.java @@ -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); diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 5b26adc302..18107cb9a5 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -39,6 +39,7 @@ #212121 #757575 #757575 + #639BCC #222222 @@ -46,6 +47,7 @@ @color/white #9E9E9E #9E9E9E + #72B3D9 #636363