Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceliuice committed Jun 25, 2023
1 parent 45f1bf7 commit 756b0b6
Show file tree
Hide file tree
Showing 1,414 changed files with 1,474 additions and 12,917 deletions.
47 changes: 43 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi
readonly SRC_DIR=$(cd $(dirname $0) && pwd)

readonly COLOR_VARIANTS=("standard" "black" "blue" "brown" "green" "grey" "orange" "pink" "purple" "red" "yellow" "manjaro" "ubuntu" "dracula" "nord")
readonly BRIGHT_VARIANTS=("" "dark")
readonly BRIGHT_VARIANTS=("" "light" "dark")

if command -v lsb_release &> /dev/null; then
Distributor_ID=$(lsb_release -i)
Expand Down Expand Up @@ -129,7 +129,7 @@ install_theme() {
local -r THEME_NAME="${NAME}${colorprefix}${brightprefix}"
local -r THEME_DIR="${DEST_DIR}/${THEME_NAME}"

if [ -d "${THEME_DIR}" ]; then
if [[ -d "${THEME_DIR}" ]]; then
rm -r "${THEME_DIR}"
fi

Expand All @@ -142,7 +142,7 @@ install_theme() {
# Update the name in index.theme
sed -i "s/%NAME%/${THEME_NAME//-/ }/g" "${THEME_DIR}/index.theme"

if [ -z "${brightprefix}" ]; then
if [[ -z "${brightprefix}" ]]; then
cp -r "${SRC_DIR}"/src/{16,22,24,32,scalable,symbolic} "${THEME_DIR}"

if [[ "$1" != "standard" ]]; then
Expand Down Expand Up @@ -172,7 +172,46 @@ install_theme() {
if [[ "${ICON_VERION}" == 'elementary' || "$DESKTOP_SESSION" == 'xfce' ]]; then
cp -r "${SRC_DIR}/elementary/"* "${THEME_DIR}"
fi
else
fi

if [[ "${brightprefix}" == '-light' ]]; then
local -r STD_THEME_DIR="${THEME_DIR%-light}"

install -d "${THEME_DIR}"/{16,22,24}

cp -r "${SRC_DIR}"/src/16/panel "${THEME_DIR}/16"
cp -r "${SRC_DIR}"/src/22/panel "${THEME_DIR}/22"
cp -r "${SRC_DIR}"/src/24/panel "${THEME_DIR}/24"

# Change icon color for dark theme
sed -i "s/#dfdfdf/#505050/g" "${THEME_DIR}"/{16,22,24}/panel/*.svg

cp -r "${SRC_DIR}"/links/16/panel "${THEME_DIR}/16"
cp -r "${SRC_DIR}"/links/22/panel "${THEME_DIR}/22"
cp -r "${SRC_DIR}"/links/24/panel "${THEME_DIR}/24"

# Link the common icons
ln -sr "${STD_THEME_DIR}/scalable" "${THEME_DIR}/scalable"
ln -sr "${STD_THEME_DIR}/32" "${THEME_DIR}/32"
ln -sr "${STD_THEME_DIR}/16/actions" "${THEME_DIR}/16/actions"
ln -sr "${STD_THEME_DIR}/16/apps" "${THEME_DIR}/16/apps"
ln -sr "${STD_THEME_DIR}/16/devices" "${THEME_DIR}/16/devices"
ln -sr "${STD_THEME_DIR}/16/mimetypes" "${THEME_DIR}/16/mimetypes"
ln -sr "${STD_THEME_DIR}/16/places" "${THEME_DIR}/16/places"
ln -sr "${STD_THEME_DIR}/16/status" "${THEME_DIR}/16/status"
ln -sr "${STD_THEME_DIR}/22/actions" "${THEME_DIR}/22/actions"
ln -sr "${STD_THEME_DIR}/22/devices" "${THEME_DIR}/22/devices"
ln -sr "${STD_THEME_DIR}/22/emblems" "${THEME_DIR}/22/emblems"
ln -sr "${STD_THEME_DIR}/22/mimetypes" "${THEME_DIR}/22/mimetypes"
ln -sr "${STD_THEME_DIR}/22/places" "${THEME_DIR}/22/places"
ln -sr "${STD_THEME_DIR}/24/actions" "${THEME_DIR}/24/actions"
ln -sr "${STD_THEME_DIR}/24/animations" "${THEME_DIR}/24/animations"
ln -sr "${STD_THEME_DIR}/24/devices" "${THEME_DIR}/24/devices"
ln -sr "${STD_THEME_DIR}/24/places" "${THEME_DIR}/24/places"
ln -sr "${STD_THEME_DIR}/symbolic" "${THEME_DIR}/symbolic"
fi

if [[ "${brightprefix}" == '-dark' ]]; then
local -r STD_THEME_DIR="${THEME_DIR%-dark}"

install -d "${THEME_DIR}"/{16,22,24,symbolic}
Expand Down
1 change: 1 addition & 0 deletions links/scalable/apps/F516_VRoidStudio.0.svg
1 change: 1 addition & 0 deletions links/scalable/apps/Lith.svg
1 change: 1 addition & 0 deletions links/scalable/apps/Obsidian.svg
1 change: 1 addition & 0 deletions links/scalable/apps/Viber.svg
1 change: 1 addition & 0 deletions links/scalable/apps/adventure_list.svg
1 change: 1 addition & 0 deletions links/scalable/apps/anagramarama.svg
1 change: 1 addition & 0 deletions links/scalable/apps/app.drey.PaperPlane.svg
1 change: 1 addition & 0 deletions links/scalable/apps/app.getclipboard.Clipboard.svg
1 change: 1 addition & 0 deletions links/scalable/apps/app.lith.Lith.svg
1 change: 1 addition & 0 deletions links/scalable/apps/appimagekit-fluent-reader.svg
1 change: 1 addition & 0 deletions links/scalable/apps/appimagekit-ledger-live-desktop.svg
1 change: 1 addition & 0 deletions links/scalable/apps/appimagekit-yuzu.svg
1 change: 1 addition & 0 deletions links/scalable/apps/applets-template.svg
1 change: 1 addition & 0 deletions links/scalable/apps/arca.svg
1 change: 1 addition & 0 deletions links/scalable/apps/ardour7.svg
1 change: 1 addition & 0 deletions links/scalable/apps/arianna.svg
1 change: 1 addition & 0 deletions links/scalable/apps/autokey-gtk.svg
1 change: 1 addition & 0 deletions links/scalable/apps/brun.svg
1 change: 1 addition & 0 deletions links/scalable/apps/btrbkgui.svg
1 change: 1 addition & 0 deletions links/scalable/apps/butter-desktop.svg
1 change: 1 addition & 0 deletions links/scalable/apps/ch.tlaun.TL.svg
1 change: 1 addition & 0 deletions links/scalable/apps/codes.merritt.adventurelist.svg
1 change: 1 addition & 0 deletions links/scalable/apps/codium.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.baidu.NetDisk.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.discordapp.DiscordPTB.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.expidusos.file_manager.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.fyralabs.Accelerator.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.fyralabs.Aqui.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.fyralabs.Fusebox.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.fyralabs.Kairos.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.fyralabs.Modi.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.fyralabs.Nixie.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.fyralabs.Victrola.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.Johnn3y.Forklift.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.benini.scid.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.emmanueltouzery.hotwire.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.falkTX.Cadence.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.falkTX.Catarina.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.falkTX.Catia.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.falkTX.Claudia.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.lachhebo.Gabtag.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.mrvladus.List.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.naaando.rush.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.nrittsti.NTag.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.ransome1.sleek.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.ryonakano.atlas.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.sdv43.whaler.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.vikdevelop.googlemaps.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.vikdevelop.timer.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.github.vkohaupt.vokoscreenNG.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.google.ChromeDev.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.google.EarthPro.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.identicalsoftware.anagramarama.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.mardojai.Blanket.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.notesnook.Notesnook.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.opera.Opera.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.oppzippy.OpenSCQ30.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.protonvpn.ProtonVPN.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.protonvpn.www.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.streetwriters.notesnook.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.stremio.Service.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.sweethome3d.Desktop.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.sweethome3d.Sweethome3d.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.system76.CosmicLauncher.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.vicr123.the24.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.vicr123.thefile.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.vicr123.thereel.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.vicr123.theshop.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.vicr123.theterminal.svg
1 change: 1 addition & 0 deletions links/scalable/apps/com.vicr123.theweb.svg
1 change: 1 addition & 0 deletions links/scalable/apps/cosmic-settings.svg
1 change: 1 addition & 0 deletions links/scalable/apps/cr3.svg
1 change: 1 addition & 0 deletions links/scalable/apps/crqt.svg
1 change: 1 addition & 0 deletions links/scalable/apps/cs-gestures.svg
1 change: 1 addition & 0 deletions links/scalable/apps/cutefish-calculator.svg
1 change: 1 addition & 0 deletions links/scalable/apps/cutefish-videoplayer.svg
1 change: 1 addition & 0 deletions links/scalable/apps/datcord.svg
1 change: 1 addition & 0 deletions links/scalable/apps/datcord256.svg
1 change: 1 addition & 0 deletions links/scalable/apps/de.shorsh.discord-screenaudio.svg
1 change: 1 addition & 0 deletions links/scalable/apps/dev.k8slens.Lens.svg
1 change: 1 addition & 0 deletions links/scalable/apps/dev.schlaubi.Tonbrett.svg
1 change: 1 addition & 0 deletions links/scalable/apps/dev.shaduri.GSmartControl.svg
1 change: 1 addition & 0 deletions links/scalable/apps/electron20.svg
1 change: 1 addition & 0 deletions links/scalable/apps/electron21.svg
1 change: 1 addition & 0 deletions links/scalable/apps/electron22.svg
1 change: 1 addition & 0 deletions links/scalable/apps/electron23.svg
1 change: 1 addition & 0 deletions links/scalable/apps/epsonscan2.svg
1 change: 1 addition & 0 deletions links/scalable/apps/era.svg
1 change: 1 addition & 0 deletions links/scalable/apps/eu.planete_kraus.Tarot.svg
1 change: 1 addition & 0 deletions links/scalable/apps/fdm.svg
1 change: 1 addition & 0 deletions links/scalable/apps/fr.free.brouits.qspeakers.svg
1 change: 1 addition & 0 deletions links/scalable/apps/funterm.svg
1 change: 1 addition & 0 deletions links/scalable/apps/gabtag.svg
1 change: 1 addition & 0 deletions links/scalable/apps/garuda-downloader.svg
1 change: 1 addition & 0 deletions links/scalable/apps/garuda-gamer.svg
1 change: 1 addition & 0 deletions links/scalable/apps/garuda-network-assistant.svg
1 change: 1 addition & 0 deletions links/scalable/apps/garuda-settings-manager.svg
1 change: 1 addition & 0 deletions links/scalable/apps/garuda-system-maintenance.svg
1 change: 1 addition & 0 deletions links/scalable/apps/gda-control-center-6.0.svg
1 change: 1 addition & 0 deletions links/scalable/apps/gtk-pipe-viewer.svg
1 change: 1 addition & 0 deletions links/scalable/apps/helpman.svg
1 change: 1 addition & 0 deletions links/scalable/apps/info.gmsh.gmsh.svg
1 change: 1 addition & 0 deletions links/scalable/apps/io.beekeeperstudio.Studio.svg
1 change: 1 addition & 0 deletions links/scalable/apps/io.github.JakubMelka.Pdf4qt.svg
1 change: 1 addition & 0 deletions links/scalable/apps/io.github.alainm23.planify.svg
1 change: 1 addition & 0 deletions links/scalable/apps/io.github.alexkdeveloper.radio.svg
1 change: 1 addition & 0 deletions links/scalable/apps/io.github.amit9838.weather.svg
Loading

0 comments on commit 756b0b6

Please sign in to comment.