Skip to content

Commit 0186fb0

Browse files
authored
Merge pull request #168 from mathoudebine/fix/theme-cleanup
Clean themes by removing unused entries (will be picked from default.yaml)
2 parents fd40db5 + 6087dec commit 0186fb0

File tree

82 files changed

+456
-1833
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+456
-1833
lines changed

.github/workflows/themes-screenshot.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,22 @@ jobs:
3939
run: |
4040
for dir in res/themes/*/
4141
do
42-
# Keep only folder name
43-
theme=`basename ${dir%*/}`
44-
45-
# Setup selected theme in config.yaml
46-
echo "Using theme $theme"
47-
sed -i "/THEME:/c\ THEME: $theme" config.yaml
48-
49-
# Run system-monitor for 5 seconds
50-
python3 main.py > output.log 2>&1 &
51-
sleep 5
52-
killall -9 python3
53-
54-
# Rename screen capture
55-
cp screencap.png screenshot-$theme.png
42+
if test -f "$dir/theme.yaml"; then
43+
# Keep only folder name
44+
theme=`basename ${dir%*/}`
45+
46+
# Setup selected theme in config.yaml
47+
echo "Using theme $theme"
48+
sed -i "/THEME:/c\ THEME: $theme" config.yaml
49+
50+
# Run system-monitor for 5 seconds
51+
python3 main.py > output.log 2>&1 &
52+
sleep 5
53+
killall -9 python3
54+
55+
# Rename screen capture
56+
cp screencap.png screenshot-$theme.png
57+
fi
5658
done
5759

5860
- name: Archive screenshots

0 commit comments

Comments
 (0)