Skip to content

Commit

Permalink
Minor refactoring - for Mint and MintYZ themes
Browse files Browse the repository at this point in the history
The official mint themes should still work and now i should be able to use the same code for MintYZ

Minor refactoring bugfix
  • Loading branch information
Xmetalfanx committed Feb 8, 2023
1 parent fb00ae4 commit fc1e378
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions functions/universal/tic/themes/f_minty.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function setupThemeLocale() {

## call this to install git theming
function gitExtractMintTheming() {
gitRepo="linuxmint/${repoName}"
gitRepo="${repoSource}/${repoName}"
gitURL="https://github.com/${gitRepo}.git"

# inside of git cloned dir
Expand Down Expand Up @@ -95,8 +95,7 @@ function gitExtractMintTheming() {

if [ "${themeType}" == "themes" ]; then
fancy_message action "Generating Themes"
echo -e "$(gitDownloadedDir)" && exit
cd ${gitDownloadedDir}
cd "${gitDownloadedDir}" && userPrompt
python3 generate-themes.py
userPrompt
fi
Expand All @@ -117,25 +116,28 @@ function mintThemeCurrentGit() {
themeName="Mint Themes"
themeType="themes"
repoName="mint-themes"
repoSource="linuxmint"

gitExtractMintTheming
}

function legacyMintThemeLegacyGit() {
# https://github.com/linuxmint/mint-themes-legacy
themeName="Mint Legacy Themes"
themeType="themes"
repoName="mint-themes-legacy"
gitExtractMintTheming
# https://github.com/linuxmint/mint-themes-legacy
themeName="Mint Legacy Themes"
themeType="themes"
repoName="mint-themes-legacy"
repoSource="linuxmint"

gitExtractMintTheming
}

function MintyIconsGit() {
themeName="Mint-Y Icons"
themeType="icons"
repoName="mint-y-icons"
themeName="Mint-Y Icons"
themeType="icons"
repoName="mint-y-icons"
repoSource="linuxmint"

gitExtractMintTheming
gitExtractMintTheming
}

# End of official Mint themes
Expand All @@ -146,6 +148,8 @@ function mintYZThemeGit() {
themeName="Mint YZ Themes"
themeType="themes"
repoName="mint-yz-theme"
repoSource="SebastJava"


gitExtractMintTheming
}

0 comments on commit fc1e378

Please sign in to comment.