yeyushengfan258 / Lyra-icon-theme

A colorful design icon theme for linux desktops
GNU General Public License v3.0
13 stars 1 forks source link

install script with option -a #2

Open csteinforth opened 3 years ago

csteinforth commented 3 years ago

Hi there,

the install script with option -a tries to create subfolders for various colors, but this results in an error that there is no folder colorful-folder.

Christoph

yeyushengfan258 commented 3 years ago

I haven't added any other color options yet, this is just a reserved feature for post uploads of other colors.

b606 commented 2 years ago

Hi ! Thanks for this excellent icon theme. In order to include all the colorful-folder icons, I modified install.sh using the patch below. Best regards. b606

Patch:

diff --git a/install.sh b/install.sh
index 54e0523..2fe81d8 100755
--- a/install.sh
+++ b/install.sh
@@ -133,6 +133,22 @@ install() {
   ln -sf mimes mimes@2x
   ln -sf places places@2x
   ln -sf status status@2x
+  
+  # Copy all colorful-folder icons
+  for foldercolor in 'red' 'orange' 'purple' 'pink' 'rose' 'blue' 'widow' 'yellow'; do
+    for f in ${SRC_DIR}/colorful-folder/folder-${foldercolor}/*.svg ; do
+      cp $f ${THEME_DIR}/places/48/${foldercolor}-$(basename $f)
+    done
+  done
+  # widow -> brown
+  for f in ${SRC_DIR}/colorful-folder/folder-widow/*.svg ; do
+    cp $f ${THEME_DIR}/places/48/brown-$(basename $f)
+  done
+  # main theme -> green
+  for f in ${SRC_DIR}/src/places/48/*.svg ; do
+    cp $f ${THEME_DIR}/places/48/green-$(basename $f)
+  done
+

   cd ${dest}
   gtk-update-icon-cache ${name}${theme}${color}

Note: