From 5ee0ba6403f4e891efeed26df1e82680ebd3532f Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 8 Oct 2022 16:44:38 +0200 Subject: [PATCH] GuiLyXFiles: Visually distinguish folders from files (#12584) --- lib/Makefile.am | 1 + lib/images/lyxfiles-folder.svgz | Bin 0 -> 416 bytes src/frontends/qt/GuiLyXFiles.cpp | 3 ++- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 lib/images/lyxfiles-folder.svgz diff --git a/lib/Makefile.am b/lib/Makefile.am index a93df84c30..e863f2c0ab 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -628,6 +628,7 @@ dist_images_DATA1X = \ images/layout-toggle_LyX-Code.svgz \ images/layout-toggle_Section.svgz \ images/lyx.svg \ + images/lyxfiles-folder.svgz \ images/lyxfiles-system.svgz \ images/lyxfiles-user.svgz \ images/lyx-quit.svgz \ diff --git a/lib/images/lyxfiles-folder.svgz b/lib/images/lyxfiles-folder.svgz new file mode 100644 index 0000000000000000000000000000000000000000..d3d36458df4d44cc6935c075d5e723f59bc4dcfb GIT binary patch literal 416 zcmV;R0bl+fiwFP!000000DY57Zi6rohW9ze$Xy$3{0LMbmAdE&+5<#|U?c)jK@j!y zow13-qKZJ+p85Z8{NnI-yL2$uKVv)eC6kF@Q1{7))e)D*=a~U+s6xt66!ovwfRbY6+lXKViJC-*1%g}W^?*0JH Kclear(); QIcon user_icon(getPixmap("images/", "lyxfiles-user", "svgz,png")); QIcon system_icon(getPixmap("images/", "lyxfiles-system", "svgz,png")); + QIcon folder_icon(getPixmap("images/", "lyxfiles-folder", "svgz,png")); QStringList cats; QMap::const_iterator it = files.constBegin(); QFont capfont; @@ -475,7 +476,7 @@ void GuiLyXFiles::updateContents() if (!subcatItem) { subcatItem = new QTreeWidgetItem(); subcatItem->setText(0, subcat); - subcatItem->setIcon(0, file_icon); + subcatItem->setIcon(0, folder_icon); cats << catsave; } subcatItem->addChild(item);