Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The blur doesn't work, it uses transparency only.

Make sure you have the "User Themes" extension turned on.

To install, copy the `Myopia` folder and paste it in `~/.local/share/themes` or `~/.themes`, and select the theme in Gnome Tweaks.
To install, copy the `Myopia` folder within `Variations` and paste it in `~/.local/share/themes` or `~/.themes`, and select the theme in Gnome Tweaks.

### Variations of this theme

Expand All @@ -32,7 +32,7 @@ Make sure to tweak themes inside the original Myopia-Theme repository.

You can customize colors, transparency and other stuff in the file `Settings.scss` (Inside the 'Tweaking' folder). For advanced tweaks, use the Advanced folder.

Then, inside the 'Tweaking' folder, open the terminal and type `./parse.sh`, this will recreate the 'Myopia' folder with your new settings.
Then, inside the 'Tweaking' folder, open the terminal and type `./parse-sass.sh`, this will recreate the 'Myopia' folders in `Variations` with your new settings.

After all of these steps, follow the Installation guide to get your new Myopia customized theme ;)

Expand Down
1 change: 1 addition & 0 deletions Tweaking/Variations/Settings.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "../Settings";
28 changes: 28 additions & 0 deletions Tweaking/parse-sass.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
set -ueo pipefail

if [[ ! "$(command -v sassc)" ]]; then
echo "'sassc' needs to be installed to generate the CSS."
exit 1
fi

SASSC_OPT=('-M' '-t' 'compact')

_SHAPE_VARIANTS=('' '-R')
_ALPHA_VARIANTS=('' '-T')

if [[ -n "${SHAPE_VARIANTS:-}" ]]; then
IFS=', ' read -r -a _SHAPE_VARIANTS <<< "${SHAPE_VARIANTS:-}"
fi

if [[ -n "${ALPHA_VARIANTS:-}" ]]; then
IFS=', ' read -r -a _ALPHA_VARIANTS <<< "${ALPHA_VARIANTS:-}"
fi

echo "== Generating the CSS..."

for shape in "${_SHAPE_VARIANTS[@]}"; do
for alpha in "${_ALPHA_VARIANTS[@]}"; do
sassc "${SASSC_OPT[@]}" "./Variations/Settings$shape$alpha.scss" "../Variations/Myopia$shape$alpha/gtk-3.0/gtk.css"
done
done
18 changes: 0 additions & 18 deletions Tweaking/parse.sh

This file was deleted.

12 changes: 0 additions & 12 deletions Variations/Myopia-RT/parse-sass.sh

This file was deleted.

12 changes: 0 additions & 12 deletions Variations/Myopia-ST/parse-sass.sh

This file was deleted.