mirror of
https://github.com/vinceliuice/WhiteSur-gtk-theme.git
synced 2025-06-04 13:13:04 +00:00
Fixed #1188
This commit is contained in:
parent
6872a8bd86
commit
45d08171b6
@ -670,7 +670,11 @@ install_firefox_theme() {
|
|||||||
local TARGET_DIR="${FIREFOX_THEME_DIR}"
|
local TARGET_DIR="${FIREFOX_THEME_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${colorscheme}" == '-nord' && "${adaptive}" == '-adaptive' ]]; then
|
||||||
|
local theme_type="${adaptive}"
|
||||||
|
else
|
||||||
local theme_type="${darker}${adaptive}${colorscheme}"
|
local theme_type="${darker}${adaptive}${colorscheme}"
|
||||||
|
fi
|
||||||
|
|
||||||
remove_firefox_theme
|
remove_firefox_theme
|
||||||
|
|
||||||
@ -682,11 +686,13 @@ install_firefox_theme() {
|
|||||||
[[ -f "${TARGET_DIR}"/customChrome.css ]] && mv "${TARGET_DIR}"/customChrome.css "${TARGET_DIR}"/customChrome.css.bak
|
[[ -f "${TARGET_DIR}"/customChrome.css ]] && mv "${TARGET_DIR}"/customChrome.css "${TARGET_DIR}"/customChrome.css.bak
|
||||||
cp -rf "${FIREFOX_SRC_DIR}"/customChrome.css "${TARGET_DIR}"
|
cp -rf "${FIREFOX_SRC_DIR}"/customChrome.css "${TARGET_DIR}"
|
||||||
cp -rf "${FIREFOX_SRC_DIR}"/common/{icons,pages} "${TARGET_DIR}/${theme_name}"
|
cp -rf "${FIREFOX_SRC_DIR}"/common/{icons,pages} "${TARGET_DIR}/${theme_name}"
|
||||||
|
|
||||||
if [[ "${colorscheme}" == '-nord' ]]; then
|
if [[ "${colorscheme}" == '-nord' ]]; then
|
||||||
cp -rf "${FIREFOX_SRC_DIR}"/common/titlebuttons-nord "${TARGET_DIR}/${theme_name}"/titlebuttons
|
cp -rf "${FIREFOX_SRC_DIR}"/common/titlebuttons-nord "${TARGET_DIR}/${theme_name}"/titlebuttons
|
||||||
else
|
else
|
||||||
cp -rf "${FIREFOX_SRC_DIR}"/common/titlebuttons "${TARGET_DIR}/${theme_name}"
|
cp -rf "${FIREFOX_SRC_DIR}"/common/titlebuttons "${TARGET_DIR}/${theme_name}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp -rf "${FIREFOX_SRC_DIR}"/common/*.css "${TARGET_DIR}/${theme_name}"
|
cp -rf "${FIREFOX_SRC_DIR}"/common/*.css "${TARGET_DIR}/${theme_name}"
|
||||||
cp -rf "${FIREFOX_SRC_DIR}"/common/parts/*.css "${TARGET_DIR}/${theme_name}"/parts
|
cp -rf "${FIREFOX_SRC_DIR}"/common/parts/*.css "${TARGET_DIR}/${theme_name}"/parts
|
||||||
[[ -f "${TARGET_DIR}"/userChrome.css ]] && mv "${TARGET_DIR}"/userChrome.css "${TARGET_DIR}"/userChrome.css.bak
|
[[ -f "${TARGET_DIR}"/userChrome.css ]] && mv "${TARGET_DIR}"/userChrome.css "${TARGET_DIR}"/userChrome.css.bak
|
||||||
|
@ -339,7 +339,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${firefox}" == 'true' || "${edit_firefox}" == 'true' ]]; then
|
if [[ "${firefox}" == 'true' || "${edit_firefox}" == 'true' ]]; then
|
||||||
|
|
||||||
if [[ "${darker}" == '-darker' && "${adaptive}" == '-adaptive' ]]; then
|
if [[ "${darker}" == '-darker' && "${adaptive}" == '-adaptive' ]]; then
|
||||||
prompt -w "FIREFOX: You can't use 'adaptive' and 'darker' at the same time. \n"
|
prompt -w "FIREFOX: You can't use 'adaptive' and 'darker' at the same time. \n"
|
||||||
prompt -i "FIREFOX: Setting to adaptive only... \n"
|
prompt -i "FIREFOX: Setting to adaptive only... \n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user