Skip to content

Commit

Permalink
Merge pull request #168 from mathoudebine/fix/theme-cleanup
Browse files Browse the repository at this point in the history
Clean themes by removing unused entries (will be picked from default.yaml)
  • Loading branch information
mathoudebine authored Feb 19, 2023
2 parents fd40db5 + 6087dec commit 0186fb0
Show file tree
Hide file tree
Showing 82 changed files with 456 additions and 1,833 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/themes-screenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,22 @@ jobs:
run: |
for dir in res/themes/*/
do
# Keep only folder name
theme=`basename ${dir%*/}`
# Setup selected theme in config.yaml
echo "Using theme $theme"
sed -i "/THEME:/c\ THEME: $theme" config.yaml
# Run system-monitor for 5 seconds
python3 main.py > output.log 2>&1 &
sleep 5
killall -9 python3

# Rename screen capture
cp screencap.png screenshot-$theme.png
if test -f "$dir/theme.yaml"; then
# Keep only folder name
theme=`basename ${dir%*/}`
# Setup selected theme in config.yaml
echo "Using theme $theme"
sed -i "/THEME:/c\ THEME: $theme" config.yaml
# Run system-monitor for 5 seconds
python3 main.py > output.log 2>&1 &
sleep 5
killall -9 python3

# Rename screen capture
cp screencap.png screenshot-$theme.png
fi
done

- name: Archive screenshots
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit 0186fb0

Please sign in to comment.