Skip to content

Commit

Permalink
Fix missing dialog-ok icon
Browse files Browse the repository at this point in the history
* Update resources to a version that has a dialog-ok icon;
* Update `collect-gtk.sh` to list missing icons;

fixes #61
  • Loading branch information
arteme committed Dec 1, 2024
1 parent 11e5c09 commit bcb2323
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 16 additions & 4 deletions build/collect-gtk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ICONS_SRC_DIR=$SRC_DIR/icons
DIR=$1

GTK_THEME="Arc-Darker-solid"
ICON_THEME="Paper"
ICON_THEME="Papirus"
ICONS=(
# gtk
# collected from gtk 3.24 source tree:
Expand Down Expand Up @@ -87,12 +87,24 @@ mkdir -p $DIR/share/themes
cp -r $THEMES_SRC_DIR/$GTK_THEME $DIR/share/themes/

echo "2. icons"
ICONS=$(IFS="|"; echo "${ICONS[*]}")
ICONS_PATTERN=$(IFS="|"; echo "${ICONS[*]}")
mkdir -p $DIR/share/icons/$ICON_THEME
T=$(realpath $DIR/share/icons/$ICON_THEME)
cp $ICONS_SRC_DIR/$ICON_THEME/index.theme $T
(cd $ICONS_SRC_DIR/$ICON_THEME;
find . -type f | egrep "/($ICONS)\." | cpio -pdm $T)
(cd $ICONS_SRC_DIR/$ICON_THEME;
find . -type f | grep -E "/($ICONS_PATTERN)\." | cpio -pdm $T)
# Validate that we actually copied at least one image for every mentioned icon
(cd $T
for i in "${ICONS[@]}"; do
find . -name "$i.*" -print -quit | grep . -q
[[ $? -eq 0 ]] || {
echo "ICON NOT FOUND: $i"
}
done
)



$UPDATE_ICON_CACHE $T

echo "3. settings"
Expand Down

0 comments on commit bcb2323

Please sign in to comment.