Delete ePapirus from scripts and docs

This commit is contained in:
Serhii Yeremenko 2025-03-15 20:50:44 +02:00
parent d9309d6f7f
commit 64d12927eb
No known key found for this signature in database
GPG key ID: AB6D54C1C16D2507
6 changed files with 9 additions and 83 deletions

View file

@ -19,8 +19,6 @@ Papirus icon theme is available in five variants:
- Papirus (base variant)
- Papirus Dark (for dark themes)
- Papirus Light (for light themes)
- ePapirus (for elementary OS and Pantheon Desktop, light theme)
- ePapirus Dark (for elementary OS and Pantheon Desktop, dark theme)
## Contents
@ -54,7 +52,6 @@ You can install Papirus from our official [PPA](https://launchpad.net/~papirus/+
sudo add-apt-repository ppa:papirus/papirus
sudo apt-get update
sudo apt-get install papirus-icon-theme # Papirus, Papirus-Dark, and Papirus-Light
sudo apt-get install epapirus-icon-theme # ePapirus, and ePapirus-Dark for elementaryOS only
```
or download .deb packages from [here](https://launchpad.net/~papirus/+archive/ubuntu/papirus/+packages?field.name_filter=papirus-icon-theme).
@ -82,7 +79,7 @@ Find the install script [here](install.sh) or proceed with command-line instruct
You can set environment variables to control WHERE, WHAT, and FROM WHERE you install Papirus:
- `DESTDIR` - the destination directory for installing icon themes (Defaults to `DESTDIR=/usr/share/icons`)
- `EXTRA_THEMES` - additional icon themes that you want to install alongside the base Papirus icon theme (Defaults to `EXTRA_THEMES="ePapirus ePapirus-Dark Papirus-Dark Papirus-Light"`)
- `EXTRA_THEMES` - additional icon themes that you want to install alongside the base Papirus icon theme (Defaults to `EXTRA_THEMES="Papirus-Dark Papirus-Light"`)
- `TAG` - a branch or tag if you want to install a specific version of the icon theme (Defaults to `TAG=master`)
> [!IMPORTANT]
@ -228,7 +225,6 @@ Also, you can use our [papirus-folders](https://github.com/PapirusDevelopmentTea
## Recommendations
- Papirus users are expected to have Breeze installed if they use Plasma and/or any KDE applications
- The same applies to ePapirus and the Elementary icon theme when using the Pantheon desktop, as the icon parity between the themes are not full
- We recommend the following GTK themes to use with Papirus icons:
- [Arc theme](https://github.com/jnsh/arc-theme)

View file

@ -25,7 +25,7 @@ cat <<- EOF
EOF
: "${DESTDIR:=/usr/share/icons}"
: "${EXTRA_THEMES=ePapirus ePapirus-Dark Papirus-Dark Papirus-Light}"
: "${EXTRA_THEMES=Papirus-Dark Papirus-Light}"
: "${TAG:=master}"
: "${uninstall:=false}"

View file

@ -23,7 +23,7 @@
set -e
# Papirus, Papirus-Dark, Papirus-Light, and ePapirus
# Papirus, Papirus-Dark, and Papirus-Light
add_css_classes() {
# 1. remove class="ColorScheme-*" if currentColor is missing
# 2. remove class="ColorScheme-*" if color property is set
@ -31,7 +31,7 @@ add_css_classes() {
sed -i -r \
-e '/:currentColor/! s/[ ]class="ColorScheme-[^"]+"//g' \
-e '/[^-]color:[^;"]/ s/[ ]class="ColorScheme-[^"]+"//g' \
-e '/([^-]color|fill|stop-color|stroke):(#444444|#dfdfdf|#6e6e6e|#ffffff)/I s/(style="[^"]+")/\1 class="ColorScheme-Text"/' \
-e '/([^-]color|fill|stop-color|stroke):(#444444|#dfdfdf)/I s/(style="[^"]+")/\1 class="ColorScheme-Text"/' \
-e '/([^-]color|fill|stop-color|stroke):#4285f4/I s/(style="[^"]+")/\1 class="ColorScheme-Highlight"/' \
-e '/([^-]color|fill|stop-color|stroke):#4caf50/I s/(style="[^"]+")/\1 class="ColorScheme-PositiveText success"/' \
-e '/([^-]color|fill|stop-color|stroke):#ff9800/I s/(style="[^"]+")/\1 class="ColorScheme-NeutralText warning"/' \
@ -58,8 +58,8 @@ for file in "$@"; do
if grep -q -i '\.ColorScheme-Text' "$file"; then
# the file has a color scheme
if grep -q -i 'color:\(#444444\|#dfdfdf\|#6e6e6e\|#ffffff\)' "$file"; then
# it's Papirus, Papirus-Dark, Papirus-Light or ePapirus
if grep -q -i 'color:\(#444444\|#dfdfdf\)' "$file"; then
# it's Papirus, Papirus-Dark, or Papirus-Light
add_css_classes "$file"
else
echo "'$file' has unknown colors!" >&2

View file

@ -194,7 +194,6 @@ headline "PHASE 5: Copy color folder icons to derivative themes ..."
COLOR_NAMES="${!COLORS[*]}" # get a string of colors
COLOR_REGEX="(${COLOR_NAMES// /|})" # convert the list of colors to regex
DERIVATIVES=(
ePapirus
Papirus-Dark
) # array of derivative icon themes with 16x16 places

View file

@ -2,7 +2,7 @@
Designing icons for Papirus is easy :)
You only need to draw icons for Papirus and then convert colors for ePapirus, Papirus Dark and Papirus-Light using our scripts.
You only need to draw icons for Papirus and then convert colors for Papirus Dark and Papirus-Light using our scripts.
## How to draw icons for Papirus
@ -108,9 +108,9 @@ If your symlinks are in `apps`, `emblems` or `mimetypes` you can continue from s
4. Save the file with the same filename.
5. Repeat it for other sizes.
### 3. Papirus Dark, Papirus Light and ePapirus
### 3. Papirus Dark and Papirus Light
1. Run `convert.sh`. It copies needed icons from `work/Papirus` to `work/Papirus-Dark`, `work/Papirus-Light`, and `work/ePapirus`. It then updates the copies' color schemes.
1. Run `convert.sh`. It copies needed icons from `work/Papirus` to `work/Papirus-Dark`, and `work/Papirus-Light`. It then updates the copies' color schemes.
```shell-session
$ cd tools/work

View file

@ -17,75 +17,6 @@ for theme in "${THEMES[@]##*/}"; do
theme_dir="$SCRIPT_DIR/$theme"
case "$theme" in
ePapirus)
# copy files and symlinks
find "$SOURCE_DIR" -maxdepth 1 -type d | while read -r dir; do
context_dir=$(basename "$dir")
case "$context_dir" in
actions)
mkdir -p "$theme_dir/$context_dir"
find "$SOURCE_DIR/$context_dir" \
-name '*@16x16.svg' -not -name '*-symbolic@16x16.svg' -print0 -o \
-name '*@18x18.svg' -not -name '*-symbolic@18x18.svg' -print0 -o \
-name '*@22x22.svg' -not -name '*-symbolic@22x22.svg' -print0 -o \
-name '*@24x24.svg' -not -name '*-symbolic@24x24.svg' -print0 \
| xargs -0 -i cp -afv '{}' "$theme_dir/$context_dir"
;;
animations)
mkdir -p "$theme_dir/$context_dir"
find "$SOURCE_DIR/$context_dir" \
-name '*@24x24.svg' -not -name '*-symbolic@24x24.svg' -print0 \
| xargs -0 -i cp -afv '{}' "$theme_dir/$context_dir"
;;
devices|places)
mkdir -p "$theme_dir/$context_dir"
find "$SOURCE_DIR/$context_dir" \
-name '*@16x16.svg' -not -name '*-symbolic@16x16.svg' -print0 \
| xargs -0 -i cp -afv '{}' "$theme_dir/$context_dir"
;;
panel)
mkdir -p "$theme_dir/$context_dir"
find "$SOURCE_DIR/$context_dir" \
-name '*@24x24.svg' -not -name '*-symbolic@24x24.svg' -print0 \
| xargs -0 -i cp -afv '{}' "$theme_dir/$context_dir"
;;
esac
done
# convert color scheme
find "$theme_dir" -type f -name '*.svg' -exec sed -i \
-e 's/#444444/#6e6e6e/gI' \
-e 's/#dfdfdf/#ffffff/gI' '{}' \;
;;
ePapirus-Dark)
# copy files and symlinks
find "$SOURCE_DIR" -maxdepth 1 -type d | while read -r dir; do
context_dir=$(basename "$dir")
case "$context_dir" in
actions)
mkdir -p "$theme_dir/$context_dir"
find "$SOURCE_DIR/$context_dir" \
-name '*@16x16.svg' -not -name '*-symbolic@16x16.svg' -print0 -o \
-name '*@18x18.svg' -not -name '*-symbolic@18x18.svg' -print0 -o \
-name '*@22x22.svg' -not -name '*-symbolic@22x22.svg' -print0 -o \
-name '*@24x24.svg' -not -name '*-symbolic@24x24.svg' -print0 \
| xargs -0 -i cp -afv '{}' "$theme_dir/$context_dir"
;;
devices|places)
mkdir -p "$theme_dir/$context_dir"
find "$SOURCE_DIR/$context_dir" \
-name '*@16x16.svg' -not -name '*-symbolic@16x16.svg' -print0 \
| xargs -0 -i cp -afv '{}' "$theme_dir/$context_dir"
;;
esac
done
# convert color scheme
find "$theme_dir" -type f -name '*.svg' -exec sed -i \
-e 's/#444444/#ffffff/gI' '{}' \;
;;
Papirus-Dark)
# copy files and symlinks
find "$SOURCE_DIR" -maxdepth 1 -type d | while read -r dir; do